LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Need some help with PHP (https://www.linuxquestions.org/questions/slackware-14/need-some-help-with-php-395244/)

Diesel_Fuel 12-21-2005 08:31 AM

Need some help with PHP
 
Well, I have 10.2 installed on my server, and a few nights ago when I tried to use the phpsysinfo page I had just uploaded, to my surprise PHP was not working. According to Webmin, the PHP package is installed, and there is a php.ini in my httpd configuration folder. I have a feeling that I need to add something to httpd.conf or something like that in order to get PHP to work. I am running Apache 1.3.33, and Webmin says that PHP version 4.4.0 is installed. I don't need the latest versions, I just want the stuff to work. Any help would be greatly appreciated. Thanks in advance.

Alien Bob 12-21-2005 08:36 AM

And you did not think to open /etc/apache/httpd.conf in an editor and look for the string "php"????
Everything is well documented there.

Eric

Diesel_Fuel 12-21-2005 09:16 AM

Well, I sense a little bit of "you stupid newbie" in that post, but anyway, I sure don't see any documentation in my httpd.conf file. I checked it before I even thought of coming here. I will be more than happy to post it once this stupid "You Cannot Post URL's Until You Have Made More Than 5 Posts" thing goes away... Anyone else wanna give me some more helpful advice?

pnellesen 12-21-2005 09:46 AM

In your http.conf file, near the bottom, there "should" be a line like this (possibly commented out):

Include /etc/apache/mod_php.conf

Alien Bob 12-21-2005 12:09 PM

Taken from Slackware 10.2 /etc/apache/httpd.conf starting with line 1018:

Code:

# By default, all external Apache modules are disabled.  To enable a particular
# module for Apache, make sure the necessary packages are installed.  Then
# uncomment the appropriate Include line below, save the file, and restart
# Apache.  Note that some modules may need additional configuration steps.  For
# example, mod_ssl requires a site certificate which you may need to generate.
#
# Lastly, if you remove a module package, be sure to edit this file and comment
# out the appropriate Include line.

# ==> mod_php configuration settings <==
#
# PACKAGES REQUIRED:  openssl-solibs (A series) and/or openssl (N series),
#                    mysql (AP series), gmp (L series), mhash (L series),
#                    and apache (N series)
#
#Include /etc/apache/mod_php.conf

It even tells you which additional packages you must have installed.

Remove the # from the last line shown here and restart apache.
Stupid newbie... no (I do not know anything about your experience), but you definitely have your eyes in your pockets.

Eric

XavierP 12-23-2005 11:34 AM

Eric - a little more tact is called for here. It may not be that the OP isn't looking closely, it may be that they don't understand what they are looking at. Basically, everything apart from the last sentence of your post is fine.


All times are GMT -5. The time now is 10:20 AM.