[ltp] [OT] Help re: php / Apache

Pablo Vera linux-thinkpad@linux-thinkpad.org
Mon, 07 Apr 2008 07:57:36 -0500


I always configure Apache using its own configuration file "httpd.conf", 
you can find it in:

 <apache installation path>/conf

open it and look for the following lines:

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a 
DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so

LoadModule php5_module        modules/libphp5.so

and make sure that the line above is there without a comment # at the 
begining.

Pablo
_____________________________________________________________________



Jeffrey Franc-Law wrote:
> Firstly, I apologize that this email is off topic, however i am 
> DESPERATE.  I am in Italy on business, to present my computer 
> software, and somehow I have broken my apache/php interface.
>
> Obviously I have tried the usual google route first, but I can't fix 
> this!
>
>
> Suse 10.2 on X60.  php has been working fine for a year.
>
> I was adjusting the HTTP services using YAST.  I was having a problem 
> with not being able to find "localhost" when not attached to the 
> internet.  I tried to change "host" tab to set localhost as the default.
>
> Suddenly, I lost all php function.  When I hit a .php page, it asks me 
> if I want to download it.  I have tried EVERYTHING.  Including 
> returning all network settings to previous, reinstalling apache2, 
> reinstalling php, and going back to yast to ensure php is enabled.  
> The etc/sysconfig/apache2 clearly shows php in its list of modules.  
> Apache works otherwise.  PHP is clearly installed, I can run scripts 
> from the command line.  Tried different browsers:  same problem.
>
> I am absolutely DESPERATE as this is ruining my academic career by the 
> moment----on sabbatical to work on my software and it's dead.
>
> Thanks in advance for any advice!
>
> ciao,
> jeffrey
>