shroomos Posted October 9, 2008 Share Posted October 9, 2008 HI, please excuse my possibly noob question. I am trying to install LAMP to a centos 5 machine (apache 2.2.) Everything seems to have installed ok, and I have tried adding lines into the httpd.conf file to get it to read PHP. I cant remember the exact lines, but one was a "Load Module" and another was "Addtype application", and also a "directoryindex" line. Anyway, after making these alterations, I am still not able to load the php test page. DO i need to do anything else? can someone tell me the corrected modifications to make to the http.conf file? thanks Also... the php installation seems to have both php 4 and 5... is php 5 back compatible, or do i need both? do i then need to modify the httpd.conf file for both? Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/ Share on other sites More sharing options...
CroNiX Posted October 9, 2008 Share Posted October 9, 2008 Did you restart Apache after altering the httpd.conf? No you don't need both, you should just use php5. Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660477 Share on other sites More sharing options...
shroomos Posted October 9, 2008 Author Share Posted October 9, 2008 yes, i did restart apache... which has also caused some confusion, as it seems fickle about restarting if incorrect lines have been entered into the .conf (ie. wont start), but playing around with a few peoples lines, it now starts ok, but with the same results. Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660482 Share on other sites More sharing options...
trq Posted October 9, 2008 Share Posted October 9, 2008 How exactly did you install php? If you used the packages provided via yum there should be no need to modify your httpd.conf file. Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660582 Share on other sites More sharing options...
shroomos Posted October 9, 2008 Author Share Posted October 9, 2008 yes, I installed via yum, although... for this installation, i installed the apache and mysql via the os installer. Although, previously, i tried to install all via yum. Either way, when PHP was installed, it did not write to the httpd.conf file. I dont suppose the order in which they are installed would matter? Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660591 Share on other sites More sharing options...
trq Posted October 9, 2008 Share Posted October 9, 2008 Pardon my ignorance but, what exactly is the os installer? I'm a Debian user. The order in which the components where installed does not matter, though if they where all done via yum any dependency issues and configuratiosn ought be taken care of. That is assuming yum does helf the job of apt-get which I'm sure it should. Either way. For us to be able to help you were going to need to see what modifications you made to what files. Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660597 Share on other sites More sharing options...
shroomos Posted October 9, 2008 Author Share Posted October 9, 2008 sorry, all i meant was that i installed those services during the installation of the os. In regards to knowing what lines I have added to the httpd.conf file... it might be easier to assume that I havnt modified it at, as I have an unmodified backup of the file. Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660653 Share on other sites More sharing options...
shroomos Posted October 9, 2008 Author Share Posted October 9, 2008 so, i take it, all i need to do to install php is "yum install php", will that install and run it?? Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-660768 Share on other sites More sharing options...
shroomos Posted October 11, 2008 Author Share Posted October 11, 2008 i have installed xampp which has solved my problem, thanks Quote Link to comment https://forums.phpfreaks.com/topic/127635-solved-how-to-add-php-to-httpdconf/#findComment-662618 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.