Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,270 Programmers. There are 1,888 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Apache/PHP problem

 
Reply to this topicStart new topic

Apache/PHP problem

Panther85
post 14 Feb, 2008 - 11:02 PM
Post #1


New D.I.C Head

*
Joined: 19 Nov, 2006
Posts: 6



I am trying to set up Apache and PHP on my computer. I installed both on my computer and the book I have now tells me to modify the httpd.conf file. I have to add LoadModule php5_module C:/php/php5apache2.dll and AddType application/x-httpd-php .php .html and PHPIniDir "C:\php\" to the file. I can access the file and type in it but whenever I try to save the file I get the message "Cannot create the C:\Program Files\Apache Group\Apache2\conf\httpd.conf file." I can't figure out why and my book doesn't address this problem. Any help would be appreciated! This is my first experience setting up anything like this so it could be something simple that I am simply overlooking......
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


ahmad_511
post 15 Feb, 2008 - 01:02 AM
Post #2


D.I.C Regular

Group Icon
Joined: 28 Apr, 2007
Posts: 302

I'm not sure but try to stop apache and then edit the file and try to save it then run apache again
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 15 Feb, 2008 - 06:04 AM
Post #3


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,321

Does the directory C:\Program Files\Apache Group\Apache2\conf\ exist?

Try to do a search for the file httpd.conf & see if it got setup somewhere else. Usually "Apache Group" would be the group with the permissions to start/stop/modify the Apache service, & not verbatim "Apache Group".
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Panther85
post 15 Feb, 2008 - 12:33 PM
Post #4


New D.I.C Head

*
Joined: 19 Nov, 2006
Posts: 6

QUOTE(no2pencil @ 15 Feb, 2008 - 06:04 AM) *

Does the directory C:\Program Files\Apache Group\Apache2\conf\ exist?

Try to do a search for the file httpd.conf & see if it got setup somewhere else. Usually "Apache Group" would be the group with the permissions to start/stop/modify the Apache service, & not verbatim "Apache Group".


Yes it exists. That is the file path I took to get to httpd.conf so I know it exists. I also stopped Apache before I tried modifying the file.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

MorphiusFaydal
post 15 Feb, 2008 - 05:02 PM
Post #5


D.I.C Addict

Group Icon
Joined: 12 May, 2005
Posts: 826

Make sure you have write permissions on the file.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 10:34AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month