LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-13-2007, 02:02 PM   #1
blmartin777
Member
 
Registered: Sep 2003
Distribution: Slackware 12
Posts: 52

Rep: Reputation: 15
Slackware 12 PHP?


I need a little help. I am running slackware 12 on my laptop , new install and new to slackware, and I am starting to work with html and php. I set up apache and php so I could use them @ http://localhost locally and check what I am working on. html files work just fine. It is php that I am having a problem with. I have php installed and I edited the apache config file in slackware to include mod_php.conf and the Directory Index to include index.php as stated in the documentation I read. I also edited the mod_php.conf to the recommended settings (so I thought). If I run a php web page that I have now working on another server. It shows all the html stuff fine but the php code is in plain text in the background of the page. Also I tried to set a test.php file and that didn't anything at all.

I must be missing something. Any ideas

Thanks
Brandon
 
Old 09-14-2007, 07:39 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
I know this is probably screamingly obvious, but did you restart Apache after you modified httpd.conf?
 
Old 09-14-2007, 12:09 PM   #3
blmartin777
Member
 
Registered: Sep 2003
Distribution: Slackware 12
Posts: 52

Original Poster
Rep: Reputation: 15
Don't worry I don't take offense to that. I have been known to forget a time or two. But to answer your question yes I did restart apache.
 
Old 09-14-2007, 02:47 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
OK, then it is time to make sure that PHP is complaining as much as possible. In your php.ini file, make sure that error_reporting is set to E_ALL and that display_errors=On. That should put errors into your Apache log files and display them in your browser. Hopefully that will turn up some clues as to what is going wrong.
 
  


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
Slackware and PHP gawain Slackware 5 02-09-2007 10:48 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
PHP with Slackware fuelinjection Linux - General 3 06-09-2004 07:08 AM
Slackware 9 PHP doppelganger Slackware 1 04-22-2003 01:38 PM


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