Hello,
I have been struggling for a couple hours now with serving jpg's with a python cgi site. For some reason the images always come out distorted.
Here is my code:
print('Content-type: image/jpg\n')
path = 'C:\\Users\\Admin\\Documents\\image.jpg'
print file(path, 'rb').read()
This post describes a nearly identical problem, howeve...
When I try to start Apache with
[PHP_APC]
extension = php_apc.dll
[apc]
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
in php.ini, it fails. I have the php_apc.dll in the ext directory.
Using Apache 2.2.17 and PHP ...
Is there a way to get mod_geoip working when Apache 2.2 is running in fcgid mode?
I just installed it but get the following php error when I try a test:
Fatal error: Call to undefined function apache_note() in /var/www/abc.com/geoip/index.php on line 4
...
EDIT @mootinator has done awesome work with this. See his answer below.
Since I wasn't clear in specifying my exact URI, it may still help people who are looking for something similar. My URI is more like: 9/Here-is-some-text/unwatch
...in which case you need mod_rewrite rules that look a little more like this:
RewriteEngine on
Rewrit...
We have an Apache (Redhat 4.6, Apache 2.0.52, libxml2 2.6.16) as a reverse proxy. Authentification and most of the functionality is o.k.
But on SharePoint2010-side he has minor problems:
- Pulldown menu doesn't work
- List editings menu has errors
There seems as Reverse proxy can't extract the hard coded of the SharePoint Server within ...
I've never come across this before, but for some strange reason i am getting a Segmentation Fault when running a specific query in Django. On reading up about Segmentation Faults, it seems it might have something to do with the version of Expat that Apache and Python use (and that they are different), what i am unsure about though, is wh...
Hello,
Do I need to restart httpd after changes in the httpd.conf file for changes to take effect?
Thanks
Jean
...
Hi, I'm having some trouble with Apache's mod_rewrite. One of the things I'm trying to get it to do is hide some of my implementation details, so that, for example, the user sees the URL http://www.mysite.com/login but Apache responds with the page at http://www.mysite.com/doc_root/login.php instead (preferably without showing the user t...
Hi..
My purpose is to setup a forum in php just locally on my Windows 7 machine to test how it works.
I have installed Apache HTTP Server and PHP v5 successfully. Then I downloaded and extracted the phpbb-forum software and put it in my root folder. Then I realized that I needed some kind of database so I downloaded and installed MySQ...
I have an OSQA (python / django q&a application) installation serving 8 different sites. The sites are all in development, receiving minimal traffic. The server is a virtual private server with 512 mb of ram.
Apache is only serving dynamic pages with mod_wsgi behind Nginx. I can't stop Apache consuming more and more memory with each req...