LinuxQuestions.org
Review your favorite Linux distribution.
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 04-23-2005, 06:40 PM   #1
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
slack apache and php


I have installed both apache and php while installing slackware. Apache does not seem to be configured with php support. Do I have to reconfig apache or can I just make changes to the httpd.conf? If so, what do I need to add. I was hopeing that when I installed it from the cd it would go ahead and configure apache with php support but I guess not. Thanks in advance.
 
Old 04-23-2005, 06:47 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
there's a "search" function on the lower right of the forum page to search this forum.

look what it found.....

http://www.linuxquestions.org/questi...apache+and+php

maybe this good howto will have the answers.

egag
 
Old 04-23-2005, 07:12 PM   #3
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
vi /etc/apache/httpd.conf


Near the end, uncomment:

Include /etc/apache/mod_php.conf

That'll do it
 
Old 04-23-2005, 07:13 PM   #4
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
There's a line at the bottom of /etc/apache/httpd.conf that you need to uncomment to enable PHP support. You may also want to add index.php as a directory index, about 2/3 the way down the file.

The php.ini file is in the same folder.

After uncommenting the line run this command as root

apachectl restart
 
Old 04-23-2005, 07:40 PM   #5
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Worked like a charm. Sometimes too long in front of the keyboard does strange things to the brain. I did a search and never saw that tutorial... Thanks
 
  


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
Cannot See info.php in Apache 1.3.33 Slack 10 grimlaur Slackware 3 02-05-2005 03:27 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
Slack 9.1 apache + php Greg21 Slackware 2 01-23-2004 12:22 PM
Apache+php problem in Slack 9.0 raypen Slackware 2 06-05-2003 04:27 PM

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

All times are GMT -5. The time now is 01:05 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