LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-09-2004, 01:07 AM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
PHP with Slackware


Hi All,

I'm using slackware 9.1, apache is working fine, but I also thought that php would be running too, as when I enter 'php -v' I get a version number.

I have changed the default web server folder....
from : /var/www/htdocs/
to : /var/www/public_html/

Do I have to change a setting in a file to tell php which folders to run from.

Hope someone can help me.

Thanks

Shaun
 
Old 06-09-2004, 01:55 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Is your Apache configuration aware of PHP? Create a file with the contents below and call it info.php:
Code:
<?php
    phpinfo();
?>
Put it in a web accessible directory (in the Apache document root, perhaps?) and access it through your browser. If PHP is setup correctly you will find a long page with information about the PHP environment and related settings.

If it doesn't render the page I suggest you browse the PHP manual which includes very verbous installation information - what needs to be in your httpd.conf and so on.

Håkan
 
Old 06-09-2004, 06:41 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Look towards the default httpd.conf file that comes with apache and slack. You'll see the php lines to uncomment in order to enable php. After uncommenting it to load the php.conf file, you can edit that file which is in the same directory as httpd.conf file in /etc/apache/

Once all said and done, simply restart apache.
 
Old 06-09-2004, 07:08 AM   #4
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
Ok, I've uncommented that line, but there is not php.conf file in the /etc/apache/ folder.

There is a mod_php.conf

Last edited by fuelinjection; 06-09-2004 at 07:09 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring php in Slackware 10.1 ankscorek Linux - Software 7 08-15-2005 08:16 PM
Slackware and PHP animeresistance Slackware 7 03-26-2005 09:05 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 12:44 PM
Slackware 9 PHP doppelganger Slackware 1 04-22-2003 01:38 PM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration