Posted on: 06/22/04 11:37am
By: Turias
For security reasons, my server requires php to be run as php-cgi. I accomplish this by placing
AddType php-cgi php
into my .htaccess file. When I don't do this, many parts of Geeklog do not function correctly, such as anything requiring use of the exec() command, among others.
Up until now, this hasn't been a problem.
I would like to be able to use url-rewrite, but whenever I activate it in the config.php file, I get the following error when trying to load a rewritten URL:
No input file specified.
Removing the .htaccess line fixes this, but introduces many other, unacceptable problems.
Has anyone gotten url_rewrite to work on their server when not using php as an apache module?
Anyone get url_rewrite to work with php running as php-cgi?
Posted on: 06/22/04 03:26pm
By: Dirk
My hosting service is running PHP as a CGI - and url_rewriting works just fine there.
I'll send you a link to the phpinfo() output ...
bye, Dirk
Anyone get url_rewrite to work with php running as php-cgi?
Posted on: 06/22/04 05:26pm
By: Turias
Thanks, Dirk. It turns out my host (Dreamhost) hasn't set a flag in their php.ini needed to fix this problem with php-cgi, apache, and mod_rewrite. I was able to get most of the details from the following thread I found from Google:
http://lists.evolt.org/archive/Week-of-Mon-20040426/158445.html[*1]
So, it seems that I have two options:
1) Compile php myself and run it from my user directory
2) Get Dreamhost to fix it in their php.ini file.
Thanks again.
Re: Anyone get url_rewrite to work with php running as php-cgi?
Posted on: 05/30/15 07:15pm
By: ragortue
It turns out my host (Dreamhost) hasn't set a flag in their php.ini needed to fix this problem with php-cgi, apache, and mod_rewrite.
Sorry to bump this up but is this still the case recently?
