Forums

PHP

This topic is locked

Test Server for PHP

Posted 16 Jul 2003 02:39:40
1
has voted
16 Jul 2003 02:39:40 Danny Carrone posted:
how do i set up the test server. when i try to select a database, i get an error...i am new to MX and learning...thx!!!

Danny

Replies

Replied 17 Jul 2003 14:09:56
17 Jul 2003 14:09:56 Iain Stewart replied:
Can you explain more ?
What Operating System are you using ?
Take it you are using PHP and MYSQL ?

You want to install PHP and MYSQLADMIN you will also have to have a web server running, like IIS on win2000 or XP

You can manage MYSQL through a console but i use a program called DBTools and MYSQLFront very handle apps free downloads.


Iain

head hurts, 'mental note to self, stop banging head !'
Replied 17 Jul 2003 16:56:18
17 Jul 2003 16:56:18 Danny Carrone replied:
MySQL comes with a perfectly good command line tool for interacting with the database, but a far more popular and user friendly option is to use the phpMyAdmin program.
It's a set of PHP scripts that form a front end into your database. Grab the latest version from www.phpmyadmin.net and extract the contents of the archive into a directory that is accessible via your web server. This would either be a directory within the document root of your server (defaults of C:\inetpub\wwwroot for IIS or C:\Program Files\Apache Group\Apache\htdocs for Apache), or a virtual folder within your web server.

At this point you can fire up your web browser and point it at the phpMyAdmin folder - on my machine this is localhost/phpmyadmin/.

ok...i am on xp...i ran the set up for mysql on my machine and phpmyadmin. i am beginning to uderstand...i have to create the same inviroment on my machine as what i would connect to online....

i get the command prompt to come up and then type the mysql command and it works but when i point my browser to localhost.myphpadmin i get a detect network settings page....so i am doing something wrong.....

thx again.....
Danny


Dan the Man
Replied 17 Jul 2003 18:02:43
17 Jul 2003 18:02:43 Iain Stewart replied:
Are you running IIS on XP its an add on from the win xp cd ?

You need to have your files installed to the folder
c:\inetpub\wwwroot\site folder

site folder being were you have install the php file of your web site.

to use you would open a web browser and type in

localhost/site folder/file.php

were file.php would be the name of the file with the php scripts accessing your mysql database, does this make sense ?

keep in mind this will only work with IIS installed on your system.


Iain

head hurts, 'mental note to self, stop banging head !'
Replied 17 Jul 2003 19:20:07
17 Jul 2003 19:20:07 Danny Carrone replied:
I need to install IIS....blah, my cd is messed up and have to borrow...thx man, big help.....i understand so far....
Danny

Dan the Man
Replied 18 Jul 2003 11:01:08
18 Jul 2003 11:01:08 Iain Stewart replied:
No problem, if you need anymore help just continue this thread


Iain

head hurts, 'mental note to self, stop banging head !'
Replied 20 Jul 2003 00:05:20
20 Jul 2003 00:05:20 Danny Carrone replied:
ok...got everything up and runniing and i get a 4034...it tells me i am not authorized to see the page....

the server is up and running. i checked it...so i got that right....
i appreciate the help...thx
Danny

Dan the Man
Replied 20 Jul 2003 00:19:48
20 Jul 2003 00:19:48 Danny Carrone replied:
ok, i am wrong...it goes to the directory but trys to save the index.php file insted of opening it in explorer...
Danny

Dan the Man
Replied 20 Jul 2003 10:46:57
20 Jul 2003 10:46:57 Danny Carrone replied:
well i figured it out...i didnt have php installed...dur...all working...thx
Danny

Dan the Man

Reply to this topic