Welcome to Geeklog, Anonymous Saturday, September 07 2024 @ 08:36 pm EDT
Geeklog Forums
Anyone get url_rewrite to work with php running as php-cgi?
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
For security reasons, my server requires php to be run as php-cgi. I accomplish this by placing
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?
Text Formatted Code
AddType php-cgi phpinto 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?
8
8
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
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
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.
http://lists.evolt.org/archive/Week-of-Mon-20040426/158445.html
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.
10
14
Quote
All times are EDT. The time is now 08:36 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content