Shoutbox

Installing PHP + MySQL on a windows machine? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Installing PHP + MySQL on a windows machine? (/showthread.php?tid=44495)

Installing PHP + MySQL on a windows machine? by Mike on 05-10-2005 at 08:19 PM

Hello.

I was wondering, how can I install PHP and MySQL on my computer so, i can test various scripts such as forums.

I think, I saw before a tool that installed PHP + MySQL for you, but i don't remember its name... :-/
Do you know its name...?

By the way, do I need to install Apache too to run scripts like forums? :$


Thanks! [Image: attachment.php?pid=458977]:wave:


RE: Installing PHP + MySQL on a windows machine? by Dempsey on 05-10-2005 at 08:21 PM

I use EasyPHP

Installs Apache, PHP, MySQL, PHPMyAdmin


RE: Installing PHP + MySQL on a windows machine? by Jhrono on 05-10-2005 at 08:36 PM

I recommend Appserv and EasyPHP too...
(both install apache, php, mysql + phpmyadmin[i don't like phpmyadmin :P] )

quote:
Originally posted by Mike2

By the way, do I need to install Apache too to run scripts like forums?


Apache is the server :)...it's what makes thinks available, either on the net or on a lan...Mysql is a database system, compatible with apache servers(and others..) and installing the php package, gets your apache server to interpretate php scripts :)
RE: Installing PHP + MySQL on a windows machine? by Mike on 05-10-2005 at 09:10 PM

I downloaded & installed EasyPHP...

But, when I go to http://127.0.0.1 I see an empty page!

And also, when I try to use the configurate menu on easyphp, it opens my browser going to http://127.0.0.1 ...

Do I need to configurate anything else?

Or should I try my luck with AppServ?

Thanks! :)


RE: Installing PHP + MySQL on a windows machine? by Dempsey on 05-10-2005 at 09:13 PM

is easyPHP running in your system tray?  Does it have a black E with either a red or green dot?

Try double clicking it to open and see it if says Started for Apache


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-10-2005 at 09:18 PM

Yeah.

On the taskbar, there is an "e" with a small red dot flashing on the bottom right corner.

When I double click it, it says that Apache and MySQL is started...


RE: Installing PHP + MySQL on a windows machine? by Dempsey on 05-10-2005 at 09:21 PM

And you still just see an empty page?  Do you have any other programs that that run their own webservers?  such as FeedReader or Shareaza?


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-10-2005 at 09:25 PM

Well, I just uninstalled Firebird (a database server) because when I was starting EasyPHP it said that apache could not start because another program was using the port.
I uninstalled Firebird, restarted EasyPHP and it apache didnt throw any error... 8-)

Well, I will now try restarting my computer to see if that solves the problem...

And, I dont think I'm running any program that has its own webserver... :-/


RE: Installing PHP + MySQL on a windows machine? by Ezra on 05-10-2005 at 09:30 PM

I always like to use PHPTriad, because you don't have to install it, just unzip it and configure and you're good to go, especially good if you don't have enough rights to install things.


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-10-2005 at 09:47 PM

Bah, I restarted my computer and it still displays a blank page... :(

I will try my luck now with AppServ...

quote:
Originally posted by Ezra
I always like to use PHPTriad, because you don't have to install it, just unzip it and configure and you're good to go, especially good if you don't have enough rights to install things.
Thank you, but I hate configurating :P
Do you have to make big changes or small changes?
RE: Installing PHP + MySQL on a windows machine? by Ezra on 05-10-2005 at 10:00 PM

small changes, it runs without configuration.


RE: Installing PHP + MySQL on a windows machine? by KeyStorm on 05-10-2005 at 11:03 PM

I think you should give Xampp a try. It doesn't need installation apart from setting up a service on XP, works flawlessly everytime I have installed it and is well documented. I can't tell about the other apps mentioned, but I tried quite some packages alike and this was by far the best. :)

Btw: It comes configured out of the box. It includes phpMyAdmin (also configured) and several other server applications. If you want to set up some passwords for your servers, you just have to run a command and you will be prompted to set them up individually, so you don't need to open any config files (apart from phpMyAdmin, in which you will need to specify the new username and password you set up for the MySQL server.)


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-11-2005 at 02:19 PM

Thank you Keystorm, I installed Xampp and I think its good :)
I configurated and it works fine... :)

But... I have a little question... :$

How can I add a new database so I can install a forum...? *-)

Thanks!


RE: Installing PHP + MySQL on a windows machine? by KeyStorm on 05-11-2005 at 02:23 PM

Just get to phpMyAdmin (from localhost/xampp/index.php left menu). And from its homepage you'll find a little form to add a new database.


RE: Installing PHP + MySQL on a windows machine? by John Anderton on 05-11-2005 at 02:26 PM

Try easy php @ http://www.easyphp.org/ .... i use it to test stuff :P
Configs pretty easy ... there is a site which tells u what to do .... it was  "open a can of whoop ass website" ^o)
Ill try to get the link tho :D


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-11-2005 at 02:28 PM

I tried that but, it doesn't request me a username & password for the database... :-/


RE: Installing PHP + MySQL on a windows machine? by Dempsey on 05-11-2005 at 02:34 PM

quote:
Originally posted by John Anderton
Try easy php @ http://www.easyphp.org/ .... i use it to test stuff :P
Configs pretty easy ... there is a site which tells u what to do .... it was  "open a can of whoop ass website" ^o)
Ill try to get the link tho :D
If you read the thread, about half of the posts are about Mike2 having already tried EasyPHP unsucesfully, he's now trying another package...
RE: Installing PHP + MySQL on a windows machine? by KeyStorm on 05-11-2005 at 02:38 PM

quote:
Originally posted by Mike2
I tried that but, it doesn't request me a username & password for the database... :-/
This is because you left the "config" option in phpMyAdmin configuration. Set that to 'cookie' or 'http' to get asked for username and password.

Also, the database does not require to have any user and password. When you're requested for the username and password of your database (in a script installation) you have to specify username and pass of the MySQL server.
RE: Installing PHP + MySQL on a windows machine? by Mike on 05-11-2005 at 02:54 PM

Hmmmm ... thanks...

One last question I hope...

Do I put the scripts on the htdocs folder?

And what do I do with the other files?


RE: Installing PHP + MySQL on a windows machine? by KeyStorm on 05-11-2005 at 03:00 PM

the htdocs folder is the public folder (unless you make internal Apache specifications otherwise). You must place all your script and html files in there.

What 'other' files do you mean?


RE: Installing PHP + MySQL on a windows machine? by Mike on 05-11-2005 at 03:12 PM

And do I delete the files in the htdocs that are there?
Wont there be any conflicts with the scripts I install?

quote:
Originally posted by KeyStorm

What 'other' files do you mean?
I mean that the files that are in there :P
RE: Installing PHP + MySQL on a windows machine? by KeyStorm on 05-11-2005 at 03:50 PM

Well, people could access your xampp page if you didn't. There's no harm in it, but it may waste useless b/w. And no, files are not going to conflict. Just make sure you replace the index.html/index.php file in htdocs by the main page script.