LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Slackware 12 PHP? (https://www.linuxquestions.org/questions/linux-server-73/slackware-12-php-584476/)

blmartin777 09-13-2007 02:02 PM

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

Hangdog42 09-14-2007 07:39 AM

I know this is probably screamingly obvious, but did you restart Apache after you modified httpd.conf?

blmartin777 09-14-2007 12:09 PM

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.

Hangdog42 09-14-2007 02:47 PM

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.


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