Forum Moderators: coopster

Message Too Old, No Replies

Installing PHP 5 on apache 2.2 for windows

         

whatson

2:27 am on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can anyone suggest some really easy guidelines of how to install php5 on apache 2.2 with mysql. It is driving me crazy!

STeeL

2:36 am on Feb 9, 2009 (gmt 0)

10+ Year Member



Did you try WAMP? All you have to do is download it and click "Next" couple times.

[wampserver.com...]

whatson

2:47 am on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Awesome, does that mean I dont have to set up anything? Is this like the dreamweaver of php?

STeeL

3:58 am on Feb 9, 2009 (gmt 0)

10+ Year Member



Unless you run into some problems, it should install just like regular program. You will get apache2 php5, mysql5 and phpMyAdmin installed and configured. After installation is completed there will be new tray icon which you can use to start/stop/restart the server.

When the server is started, you can access your website here: [127.0.0.1...]

whatson

5:34 am on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could not get it working. Not sure where to start really, and that ip address didnt show anything.

STeeL

5:43 am on Feb 9, 2009 (gmt 0)

10+ Year Member



Did you get any errors during install? Did you start the server? What color is your WAMP icon in system tray?

tbarbedo

7:39 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



Inside WAMP directory, localte the 'www' folder and delete index.php

Then open up your browser and type it 'http://localhost' and you should see all of the contents of your 'www' directory.

whatson

9:31 pm on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, I thought that was the folder to view the pages, but when I put in [localhost...] I get a page with nothing on it, not even in the source code. The index.php file is the only one in the folder.

The WAMP icon is yellow and says its online.
Any ideas?

STeeL

9:54 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



You can try suggestions in this post: [wampserver.com...]

If that doesn't work, I would suggest opening new topic in WAMP support forum

tbarbedo

10:00 pm on Feb 9, 2009 (gmt 0)

10+ Year Member



The reason why you get a page with nothing on it is because you have no files in the directory.

The index.php is just there to be there and you need to delete it to see a directory listing....

Try deleting the index.php file and just put a test.txt file in that directory and you should be able to see it when you type [localhost...] into your browser.

henry0

10:12 pm on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What do you see when doing a simple click on the icon?
If you cannot start or restart from there
then since it's such a imple install, I will remove the whole thing and do a fresh new install
to include a new d-load.

BTW you are sure that you d-loaded the one related to your OS, if I rem correctly you might also have a choice between 32 and 64 bit

whatson

10:15 pm on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I worked out the issue, it was something to do with port 80 (doesnt mean much to me) but running skype was stopping it working I guess, so I closed skype and now it seems to be going.
Thank you

whatson

10:39 pm on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, now I cannot seem to confirm the mysql server connection with my test. It says its running, any ideas? Sorry, I am really noob.

henry0

11:21 pm on Feb 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That should be an easy one
assuming it runs fine
open phpMyadmin
choose privilege
create a new user (don't use "root" as it could be a bad habit!) remember password & username.
grant the user "all privileges"
create a DB
add any table
insert anything
do a simple query (using your password and username)
it should work
Anyway, if you may open phpMyadmin and create a DB
but the rest does not work for you
then the way you are writing your query is wrong

otherwise
grab/copy a DB you are presently using
and copy a query in phpMyadmin
that should also proof that all is 100% OK

<edit> OOOPPPSSS! forgot
hope you did not delete "root" user
if you ever do it, you'll need reinstalling</edit>