SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
well.. just installed slackware 10.0 and need to get the php working..
enabled php in the httpd.conf but get a blank screen when trying to open any php file i made..
also tryed editing the mod_php.conf as shown on chilos page
restarted the httpd a few times..
but didn't help either.. still blank when trying to view my php pages..
to test php, just make a php file with one line...
<?php phpinfo(); ?>
if you made a php file, you may have programming errors that causing your file not to show up. if you have a php error log setup, you might want to check, or set your php.ini (in /etc/apache) to make errors show up on the webpage. (recommended for testing environments, don't use that on a productions server)
just delete your old apache and php files! they're old and vouln. When you install apache and php again, be sure to put everything in /usr/local/apache that makes thing hell a lot easier as you have everything in one place.
you don't need to uninstall things just get the newest packages from slackware-current and do an upgrade pkg...
sooooooooooo much easier.
the php error log setup is in php.ini you'll have to configure it, and create the blank error file with the name and path you specified in php.ini and then give the error log the right permissions. why don't you post your apache.conf too, so we can see what the problem is (make sure you leave out ip addresses and anything else of the sort that i wouldn't recommend showing to the public)
ok whatever, i find apache much easy to maintain the way it is... im just trying to save the person alot of trouble of trying to delete everything, when my way takes 3 secs and saves alot of pain. the only thing you really need to know about the default installation of apache is that the conf files are in /etc/apache the logs are in /var/log/apache and the default document root is in /var/www
leaving the default makes it much easier to keep up with installations with slackware packages. especially if you use great tools like swaret or slaptget etc leaving default also saves alot of trouble when using server managers such as webmin etc... If your way is easier for you great. but i tried that way when i was just starting, i ended up with alot of trouble with things in the long run.
well.. i didn't really solve the problem.. and I had to get mysql & php fast.. so I installed XAMPP..
but I think.. that the thing I did wrong was.. that I have to change the reading and writing rights for the php files I make.. or else they wont work?
Last edited by MeGoesSlack; 01-21-2005 at 08:03 AM.