Forum Moderators: coopster

Message Too Old, No Replies

Apache on windows xp pro

windows not letting service start

         

4css

9:52 pm on May 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have installed apache and php on windows xp pro according to the directions in the blog design solutions book. I did all the changes in the php.ini file as well as the http.conf file. Restarted my computer.

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.

phparion

4:05 am on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



to install apache on windows xp you need to download .msi package from apache official site.

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.

4css

9:46 am on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi phparion
I did as you stated. Downloaded the apachie and installed according to how you described. The book next states to install PHP without the installer and it gives directions on what to fix on the http.conf. I did as it staed, rechecked all day yesterday.

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!

jatar_k

11:34 am on May 20, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could try these threads from our Library [webmasterworld.com]

Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin [webmasterworld.com]
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]

henry0

12:24 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In case you become frustrated with trials
even when trying jatar_k suggestions
which are indeed very good (for a good reason!) :)

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

4css

1:46 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Jatar_K
I did review the articles through searching the forum yesterday. It appears that I have things correct. However, the error that I keep getting is that it can't load the php5apache.dll. It is in the php5 folder so I don't understand why it isn't working out?

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

jatar_k

2:07 pm on May 20, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if it can't load it I wonder if it is a path problem

or possibly there is more than one set of files after trying a few times

I've had to scour my cpu to remove everything when trying multiple installations

4css

3:41 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did a regedit and checked for things after I uninstalled, so I don't think that is an issue.

It keeps doing the same thing that it did on first install. Same error.

I'm determined to figure this out.

henry0

4:39 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Once I had a similar problem with the DLL
I resolved it by setting it in Apache out of PHP
(don't ask why!)
It might be related to a Win problem

Also,
for a while disregard your tutorial
and compare your actual setting to the settings/configs jatar_k and I suggested in both tutorials.

phparion

6:19 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have no idea why did your book says that xamp or wamp define php limits, because both includes even extra packages that you would have to install manually for manual php installation. but above any other thing your installation should work and to use xamp or wamp is no more important for at least me as I want to see the solution of your problem to learn myself.

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.

henry0

8:09 pm on May 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a good point if you go to localhost as per pharion you should see something like:
"if you see this; then you're OK!"
if not then Apache is not responding properly

4css

12:04 pm on May 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Guys,
Thank you for all of your replies.

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

4css

12:16 pm on May 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did some searching on google in case the .dll might have been corrupt. I came across numerous threads with people having the same problem.

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?! ;) )

colandy

12:16 pm on May 21, 2007 (gmt 0)

10+ Year Member



I would suggest that you visit wamp's web site (wampserver.com) as they have an automated install that I've used many times on both XP and Vista.

It will install Appache, PHP, mySQL, myphpadmin, sqllitemanager. All worked first time no editing required.

jatar_k

12:18 pm on May 21, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



nice work 4css, I didn't know that

4css

12:36 pm on May 21, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks jatar_k,

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!

delboy1978uk

12:46 pm on May 22, 2007 (gmt 0)

10+ Year Member



good to see you got it working eventually.

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 :-)

4css

1:25 pm on May 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi delboy1978uk
Thanks for your advice, I do appreciate it. I think for now I'll go this route with the apache on here like it is.

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. :)

delboy1978uk

4:21 pm on May 22, 2007 (gmt 0)

10+ Year Member



in that case i would install XAMPP for windows ,
which has Apache, MySQL, PHP, Perl, PHPMyAdmin, FTP Server etc all in one package, works really well (for on a windows platform)

[apachefriends.org...]

4css

4:59 pm on May 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi delboy1978uk,
I have totally managed to install everything that I needed.

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. ;)