Welcome to Geeklog Wednesday, November 22 2017 @ 08:30 pm EST


Status: offline

Turias

Forum User
Full Member
Registered: 20/10/2003
Posts: 807
For security reasons, my server requires php to be run as php-cgi. I accomplish this by placing

PHP 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?

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

Status: offline

Turias

Forum User
Full Member
Registered: 20/10/2003
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.

Status: offline

ragortue

Forum User
Newbie
Registered: 03/03/2015
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?

All times are EST. The time is now 08:30 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