Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:20 am EST

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

Text Formatted Code
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 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.
 Quote

Status: offline

ragortue

Forum User
Newbie
Registered: 03/03/15
Posts: 11
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?
 Quote

All times are EST. The time is now 07:20 am.

  • 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