Hi,

Can I get some help installing PHP on my machine? A while back, I had it working. I was using Microsoft IIS as a server, and I was testing my PHP files by putting them in the wwwroot directory. Something has happened since then because I cannot run php script any more. I have not deliberatly uninstalled anything...

I decided to try installing apache, I ran the install wizard and installed it, but I still can't get phpinfo or anything else to generate. Is there something else that I need to be doing to get Apache working?

Thanks,

Rum

Recommended Answers

All 4 Replies

Concerning your IIS trouble... you say it was working then unexpectedly stopped working. Probably your easiest route is to get that working again. Can you browse to http://localhost and see any files? If you create a default.htm or index.htm in your wwwroot folder, do you see it? If not, your problem may simply be that IIS is not running. Right-click My Computer, choose Manage, then expand Services in the tree. You'll see an entry for IIS. Open it, right click the default web server and start it.

If you want to install Apache and configure it for PHP (something I highly recommend), then check out my WAMP HOWTO at www.troywolf.com/articles.

Thanks for the help, I have got PHP working again with Apache now! I am wondering something though, I believe the version of Apache that I downloaded is a later version than the one you used in the tutorial and I think in my version there is a couple of things that are different. For instance, I am having trouble changing my root directory to "C:\www". My version does not have a httpd.conf file, only a httpd and a httpd.default file, so I tried changing the default directory in both of those files, but it doesn't work. It's alright though, I am glad to have it working!

I would like to compliment you on the nice work you have done on the tutorials you have written. One thing that sets your tutorial aside is detail. I appreciate the way you lay everything out in a step by step process. Also your writing makes sense, alot of tutorials I have read in the past are loaded with amiguous statements that make no sense.

Thanks again,

Rum

My version does not have a httpd.conf file, only a httpd and a httpd.default file, so I tried changing the default directory in both of those files, but it doesn't work. It's alright though, I am glad to have it working!

What version did you download exactly? I'll check it out. In any case, the conf files have always ended in the ".conf" extension. These conf files traditionally live in a "conf" dir under the Apache root dir and subdirs of the conf dir. It may be that you have to create the httpd.conf by copying the httpd.default, but I don't know. I'll check it out for you if you tell me what version. In any case, I'm positive you can change your webroot via a conf file.

I would like to compliment you on the nice work you have done on the tutorials you have written. One thing that sets your tutorial aside is detail. I appreciate the way you lay everything out in a step by step process. Also your writing makes sense, alot of tutorials I have read in the past are loaded with amiguous statements that make no sense.
Thanks again

Thank you very much. That HOWTO gets a lot of hits, but I rarely get feedback. I tried to write it so that somebody who is at least familiar with working with Windows directories and editing text files could install a working WAMP system. Then I go on to provide a few simple code examples to test the configuration and get you started developing. I should take the time to go through it again myself and update it with any minor changes in the package installations.

httpd-2.0.55-win32-src is the version I couldn't find a .conf file in the conf directory.

Also I was just curious about something else, how come there is an Apache and an Apache 2 folder in the program directory. I just thought it was interesting that these folders have the same contents.

Thanks,

Rob

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.