Turn off PHP completely
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > Turn off PHP completely




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Turn off php completely  
Shabam


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

I just installed Fedora 2 running Apache 2.  I'd like to completely shut of
PHP on the server.  However there's nothing in the httpd.conf file regarding
it, so I'm unable to.  I'm not looking to just shut it off for one virtual
host.  I want it off completely.

How do I do this?








[ Post a follow-up to this message ]



    Re: Turn off php completely  
Chris Morris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:09 AM

"Shabam" <blislecp@hotmail.com> writes:
> I just installed Fedora 2 running Apache 2.  I'd like to completely shut o
f
> php on the server.  However there's nothing in the httpd.conf file regardi
ng
> it, so I'm unable to.  I'm not looking to just shut it off for one virtual
> host.  I want it off completely.

If there's nothing at all in the httpd.conf file (don't forget to
check files included by it) then I'm surprised if php works - either
there'll be a line to add the PHP4 apache module, or there'll be a
line to associate .php with the php CGI binary.

If you can't find that, other options:

Look for /usr/bin/php4 or /usr/bin/php or /usr/lib/cgi-bin/php or
wherever Fedora puts it (sorry, not familiar with Fedora), find out what
package it's from, and uninstall that package. If that package happens
to be Apache 2, you have a few options.
1) Disable CGI in general. Might be overkill.
2) Chmod 000 the php binary.
3) Change to a distribution that has Apache and php as separate packages.
4) Remove the package and then compile Apache2 from the original sources.

--
Chris





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:26 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register