LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-21-2005, 08:31 AM   #1
Diesel_Fuel
LQ Newbie
 
Registered: Oct 2005
Location: Durham NC
Distribution: CentOS/Gentoo/Slackware
Posts: 3

Rep: Reputation: 0
Exclamation 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.
 
Old 12-21-2005, 08:36 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
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
 
Old 12-21-2005, 09:16 AM   #3
Diesel_Fuel
LQ Newbie
 
Registered: Oct 2005
Location: Durham NC
Distribution: CentOS/Gentoo/Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 12-21-2005, 09:46 AM   #4
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

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

Include /etc/apache/mod_php.conf
 
Old 12-21-2005, 12:09 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
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
 
Old 12-23-2005, 11:34 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are PHP session variables held in memory when you leave a PHP site? Locura Programming 11 11-16-2008 08:37 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration