ianw1974 Posted October 5, 2005 Report Share Posted October 5, 2005 I've built a Slackware machine, and have Apache working, as the test page appears. I've extracted squirrelmail to /var/www/htdocs and edited the line in the httpd file so that index.php is supported as a document. However, when I try to view it, all I get shown in the browser is the code within the index.php, and not actually able to see it how it should be. I installed PHP4, using installpkg, and have no idea where to turn next. Any ideas? I'm new to all this webstuff, so is giving me a bit of headache. I'm using webmin to make all my changes, etc. Quote Link to comment Share on other sites More sharing options...
jlc Posted October 6, 2005 Report Share Posted October 6, 2005 http://www.squirrelmail.org/wiki/QuickAndDirty Did you try this? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 6, 2005 Author Report Share Posted October 6, 2005 Just going to try it now :P Not come across that. I did this morning build an LE2005 installation, and urpmi'd everything I needed, and it worked a treat. Nice and easy :P Just a shame my organisation wants to use Slackware instead! I'll give it a go and post back what happens next. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 6, 2005 Author Report Share Posted October 6, 2005 Nope, didn't work. I still get the php code displayed as text in the browser, instead of it actually loading the page correctly. I have a funny feeling that I have some sort of dependency problem or something. I'll have to see if I can convince them to use Mandriva instead :P Either that, or figure out what's gone wrong and try and fix it somehow. Quote Link to comment Share on other sites More sharing options...
jlc Posted October 6, 2005 Report Share Posted October 6, 2005 in your httpd.conf, look for a line similar to this: Include /etc/apache/mod_php.conf If you have something like that, uncomment it and restart apache I think slackware still calls it /etc/apache/mod_php.conf If not, it might be like my fedora box /etc/httpd/conf.d/php.conf Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 6, 2005 Author Report Share Posted October 6, 2005 Cool, I'll give that a shot tomorrow, and let you know how I get on. I decided to wipe it today and start again in case I got into some sort of dependency nightmare. Will update tomorrow, and many thanks :P Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 7, 2005 Author Report Share Posted October 7, 2005 Update: Many thanks, that uncommenting of the line sorted it out, although I did have to add two lines for: LoadModule php4_module libexec/apache/libphp4.so AddModule mod_php4.c I had added these previously, and it didn't work. Then, as soon as I uncommented the line you mentioned, all worked a treat! I added the MIME types too later, as per the PHP documentation on their website, but they never mentioned anything about this Include line, unless I was blind and missed it! :P Many thanks!!! :P Quote Link to comment Share on other sites More sharing options...
jlc Posted October 7, 2005 Report Share Posted October 7, 2005 (edited) B) Edited October 7, 2005 by cybrjackle Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.