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 |
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> Code:
<IfModule mod_dir.c> Code:
#Include /etc/apache/mod_php.conf Code:
Include /etc/apache/mod_php.conf You're all set now :) |
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(); ?> 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 :) |
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.
|
Quote:
Cheers, and keep us updated on your progress. |
All times are GMT -5. The time now is 06:57 PM. |