Forum Moderators: coopster
When I try to start apache with the windows services it tells me that this is not a ms program and I can't run it.
If I try to start it with the apache start I get the following error: Cannot load the c:/php5/php5apache2.dll
(there are still other things to install, however I need to get this working first before I proceed any further)
I have went over this numerous times and checked all the code on the files and all appear to be ok. If anyone has any suggestiosn I would sure appreciate some guidance on this.
start the setup and enter your network domain (localhost) and your PC name in the server name field.
then on the next screen select apache to run as a windows service for all users.
if you had selected to run it manually then make sure your server name / pc name was correct otherwise it might give problem.
by the way you can try a one-in-all software like xamp (google xamp) which will install php, mysql, apache and other stuff automatically.
I had even uninstalled and reinstalled both and am still not having any luck.
Before I installed php5 the task bar icon stated that apache was running. However after I went into the http.conf and restarted, the apache won't start.
So my saturday was spent trying to figure things out, double checking for typo's and I don't see any.
I'm going crazy with this as everything was explained really great in the book I was following.
They don't suggest the xamp as they stated that the php is limited with it? IF anyone has any information on how that program has worked for them, I would be more than happy to go with it if it would make things easier for installing.
I'm very frustrated at this point!
Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin [webmasterworld.com]
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]
you could try WAMP5
I installed it on a few friends PC (XP pro) that were not able to deal with the "one package at a time way"
and it always worked as touched by a magic wand!
let us know
cheers
What I did was shut down all antivirus and my firewall, enabled the windows firewall. The unblock box came up as illustrated in the book I am following on this. I unblocked this as shown.
I'm still getting the error regarding the .dll.
Henry0,
I am frustrated, and I know I could try the wamp5 or xamp, however, I would like to know why this isn't working as it should be after following all the information step by step, and even a few other things from the apache site.
I'm going to go over the http.conf again and see if I have any typos and the php.ini as well.
Thanks for the replies everyone I do appreciate this. I do want to resolve this and find out what is blocking or keeping this from runing.
4~css
Please check one more thing, do you have any anti virus installed? if that is blocking apache to run as a service e.g if it asked you for the first time if you want to allow apache access and you, by mistake, has cancelled it or blocked it and now it is not allowing to run?
after you install apache did you try something like http;//localhost/ in the browser?
try to run apache and then ctr + alt + del and click on processes tab and see if you can locate apache in it...
in case of anti virus check its settings and find if apache is in the blocked list.
also as J said, try to check the path of your installation.
It has to have something to do with the .dll.
When I install apache, type in local host, everything works fine. I get the "It works page" when I type in localhost into the browser.
This morning I decided to test this and see if it is causing a problem. I commented out the line that is giving me the problem, and apache started to run?
The error report when it shows states that the syntax is wrong and that it can't load the C:/php5/php5apache2.dll.
I have tried putting this in several different ways to see if it is how I have it typed in, but nothing is working with it.
The path for the .dll is correct, I have checked it out several times. I also re-copied the .dll from the download and replaced the one in the file. Even if I test it and put one of the other .dlls in the http.conf it states that it can't find that one either.
I have uninstalled and reinstalled several times, and each time apache works until I do the http.conf with the one line of code in it for this .dll.
I have viewed the tutorials and it appears that I have things correct. I'm getting ready to print both of them so that I can read through them better.
phparion,
I had shut off my antivirus, I use agv, I also use start up monitor which asks permission for things to run and gave it permission to start when the computer starts. I shut down my firewall, and then went to MS's firewall so that I could unblock it (MS apparently blocks this since it isn't a MS product, and if I try to start from services it states that it isn't a MS product and won't let it start, yet it is in the unblock list)
Also, I'm not sure why the books don't approve of the xamp with the reason they give. This is all new to me, so I'm not familar with any of this. I know I could just uninstall and install one of the other products, but, does that help me to learn how to problem solve? ;)
Thanks for all the replies. At this point it appears to be the http.conf that is the problem with the one line of code, and apache isn't finding the dll for some strange reason.
4~css
Resolution:
LoadModule php5_module C:/php5/php5apache2_2.dll
Since this is apache2.2.4, the php5apache2.dll won't work. You need the php5apache2_2.dll in the code. Once this was placed into the http.conf, the apache started to work immediatly.
I found this on php architect's site.
4~css
(gotta love a resolution don't you?! ;) )
I figured something was up with the .dll as if I commented it out, apache worked. Put it back in, and the error would appear, so that was the problem. Resolving it was the next step.
My initial thought process was it was corrupt which is why I decided to google it.
Funny isn't it? We bang our heads, and the answer was so simple!
Thanks to everyone for their help with this. I really appreciate the time you all put into trying to help me resolve this.:)
4~css!
hate to point this out, but im sure thousands will agree with me that you are far better off running your XAMPP on linux.
I know not everyone has linux or would even know how to work it but it just seems to work full stop.
Have you ever heard of a program called VMWare?
It allows you to run a Virtual Machine on your system,
which acts like a normal machine (ie. appears on network, has internet access, etc)
There is a free version called VMWare Player, which doesn't let you create, but lets you use these virtual machines.
On their site they also have vmware appliances,
which is a fancy way of saying pre-built virtual machines.
One of these virtual appliances is a linux install with XAMPP already configured and ready to server your pages.
The beauty of these things is that you can move them from one machine to the next no problem.
These days ALL of my work is in a virtual machine.
I have XP on my main computer running VMWare.
Nothing else, which means my XP runs lightning fast!
All my design work is on a Windows 98 virtual machine
(i chose windows 98 cos i had an original cd, but i could have had another xp)
so dreamweaver, photoshop, all my work tools are on this win98 machine.
I upload my sites to another virtual machine running linux with XAMPP, being my testing server.
Like i say, i can move the virtual machines to any computer running vmware player and all of a sudden they are now the server. no configuring required, so if hardware fails or some other disaster/change happens, it is not a problem
Just thought you should know about this because when i first started i had xampp over xp, but it wasn't very good :-)
I'm at the point where I am trying to figure out how to install phpmyadmin on the computer. I have a gig of ram on here, so the computer runs pretty good.
I haven't noticed any slow down whatsoever since I installed the apache on here. XP pro with sp2. Runs like a dream for me.
If anyone has any advice for installing phpmyadin, I would appreciate it as it looks greek to me right now. :)
[apachefriends.org...]
I know there are packages out there, but I wanted to do this from scratch so that I could learn this stuff.
Just like with coding, I code by hand. I prefer to know the workings of things and how to get them going, even if it does take me a little bit to figure out, search and ask. All part of the learning process.
And I do appreciate the link that you provided. Who knows, if I ever format, next time I might go with something easier, however, this was fun. It is a rush to get it working. ;)