LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-04-2004, 08:02 PM   #1
j0217995
Member
 
Registered: Jan 2003
Location: Grand Rapids, Michigan, USA
Distribution: Kubuntu
Posts: 71

Rep: Reputation: 15
PHP and Apache -- Config question


Ok I'm kinda new to Slackware. I installled off the Slackware 9 CD set I bought a long time, just never had a chance to get it up and working. I just did an install of everything, I clean it up and remove packages as I figure out what I want to do with this box. I downloaded swaret and updated it following a post from this forum.

I have since installed Webmin and am fairly comfortable working in it. Now I'm trying to setup PhpMyAdmin and get that working. I know using GUI tools to get myself working until I can master CLI. So how do i know I have Apache compiled w/ PHP support and working correctly? Does it assume that on installation of the package or do i have to look for another package?

Pardon the stupid question
 
Old 11-04-2004, 08:38 PM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
If you've gotten Apache and PHP off a mirror, they should be ready to be used in a production/test environment.

You just have to enable it.

If you insist on using Webmin or whatever config tool, I suggest you stop reading this post now and wait for someone else to show you how. But if you want to find out an easier way to to do it, by all means keep on reading.

Here's the steps (to be done as root):

a) Open /etc/apache/httpd.conf with your favourite text editor.

b) Look for this section:
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>
and change it to:
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php
</IfModule>
c) Find this line:
Code:
#Include /etc/apache/mod_php.conf
and uncomment it as follows (just remove the leading hash):
Code:
Include /etc/apache/mod_php.conf
d) Restart apache by running /etc/rc.d/rc.httpd restart

You're all set now
 
Old 11-04-2004, 08:43 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
The easiest way to tell if you have php set up correctly is to create a "test.php" file in your web root directory that contains just:

Code:
<?php phpinfo(); ?>
then browse to http://server/test.php
If you see a blank page, it's not set up properly. If you see a bunch of PHP information about settings and modules - it's working
 
Old 11-05-2004, 06:26 AM   #4
j0217995
Member
 
Registered: Jan 2003
Location: Grand Rapids, Michigan, USA
Distribution: Kubuntu
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for all the help.... It helped me learn something else new. I think thats what I enjoy so much about learning Linux, it seems like there will always be something new to learn.
 
Old 11-05-2004, 10:09 AM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Quote:
Originally posted by j0217995
Thanks for all the help.... It helped me learn something else new. I think thats what I enjoy so much about learning Linux, it seems like there will always be something new to learn.
Of course! Learning is a life long journey... and rest assured, while you're in Linuxland, there's always someone who will help you along the way.

Cheers, and keep us updated on your progress.
 
  


Reply



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
apache config files and php waynejkruse10 Linux - Software 8 12-05-2006 09:40 PM
Apache config for PHP (not working) Thanotos Slackware 2 11-30-2005 12:52 AM
help with apache php mysql config slinky2004 Linux - General 3 03-22-2005 07:36 PM
php or apache config problem mattkat Linux - Software 2 04-30-2003 06:25 PM
RH8 Modifying Default Apache / PHP config p4ck37p1mp Linux - General 4 02-10-2003 10:09 PM

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

All times are GMT -5. The time now is 08:58 PM.

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