Jump to content

Slackware - Apache [solved]


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...