 |
July 28 '02, 09:42 AM (#1)
|
|
|
bored
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
|
Running Apache, PHP, and MySQL
Here's a simple tutorial on getting the three services working together on Windows NT, 2000, and XP. How to Install Apache, PHP, and MySQL on Windows, step by step
Last edited by filburt1; November 13 '02 at 12:58 AM.
|
|
July 28 '02, 11:33 AM (#2)
|
|
|
Inactive
Join Date: April 2002
Location: Oxford, UK
Posts: 32
|
Windows ME
Hi.
I am trying to get Apache and PHP to work on Win Me, i have got Apache installed and working but i do not know how to get PHP to work with it can anyone help?
Peter
|
|
July 28 '02, 11:42 AM (#3)
|
|
|
bored
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
|
Theoretically it should be the same as in the instructions above, but Apache and certainly MySQL are very unreliable or hard to use on Windows 9x/Me.
|
|
July 28 '02, 12:00 PM (#4)
|
|
|
Inactive
Join Date: April 2002
Location: Oxford, UK
Posts: 32
|
It gives me a Syntex error on line 311
invaild command <Directory>
i have attached the httpd.conf file
Peter
|
|
July 28 '02, 12:06 PM (#5)
|
|
|
bored
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
|
You have to specify an attribute for the directory structure.
My default httpd.conf (called httpd.default.conf, BTW) has this:
Code:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Also, make sure that you installed PHP at d:/programs/php/; that's how it is in the tutorials just because that's where it is on my computer.
Last edited by filburt1; July 28 '02 at 12:07 PM.
|
|
July 28 '02, 03:55 PM (#6)
|
|
|
Inactive
Join Date: April 2002
Location: Oxford, UK
Posts: 32
|
Great
Thanks filburt1  , I have now got it working on my computer
Peter
|
|
July 28 '02, 06:19 PM (#7)
|
|
|
bored
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
|
Cheers...feel free to hang around and keep asking questions
|
|
July 31 '02, 11:49 AM (#8)
|
|
|
Inactive
Join Date: April 2002
Location: Oxford, UK
Posts: 32
|
ok filburt1 will do
Peter
|
|
September 20 '02, 08:34 PM (#9)
|
|
|
bored
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
|
Please note that if you have followed this tutorial a while ago, get the latest version of PHP!
1. Shut down Apache (Start > Run, type "net stop apache")
2. Overwrite all the PHP program files with the latest download (at this posting, 4.2.2)
3. Restart Apache (Start > Run, type "net start apache")
|
|
March 9 '03, 09:35 AM (#10)
|
|
|
WDF Regular
Join Date: March 2003
Location: Hegelsom, The Netherlands
Posts: 104
|
Uh.. exaclty what is this for?
For PHP on your own computer server.. (Like the database on your compu (usually ADSL or cable internet) or PHP on a testing server --> Your own computer?
Is this to test your own written PHP script locally or to put your site on your own server? Cúz' i just upload my files to the server and then i check if it works..
|
|
October 27 '03, 08:37 AM (#11)
|
|
|
"I'm addicted to WDF"
Join Date: May 2003
Location: Wellington, New Zealand
Posts: 188
|
I notice that in the tutorial it states for mysql to use root and "" for testing database stuff locally. My question is what if your server (machine with apache,php,mysql) is actually the internet gateway for your house like mine is. Im reluctant to install MySql if it can be acsessed by someone connecting to it with root and "". There is obviosly a way to configure this option so that there is a password asigned?
|
|
March 24 '04, 06:11 PM (#12)
|
|
|
New Member!
Join Date: March 2004
Posts: 5
|
MySQL should be firewalled from the outside. Just set up your firewall to block connections for port 3306. You can access it on the local machine on address localhost.
Users: Passwords and usernames. You can set it up in the my.cnf . Giving it a root name with the root password is never advisable. Here is a link to the mysql site telling you how to set passwords and usernames http://www.mysql.com/doc/en/Default_privileges.html
As far as the win 9x:
Windows 9x is not a stable enviroment for a production servers. I would recommend going to atleast NTClient+
JaY
|
|
July 13 '04, 02:39 PM (#13)
|
|
|
WDF Senior Member
Join Date: January 2004
Location: A small village near a small city near a small city called Birmingham on a small island called England
Posts: 918
|
Right I followed this tutorial to the word mroeorless (although upon installing apache i put 'localdomain' and 'localhost') and i used a newer version of mysql (4.1.1 methinks) - this is where the problem is.
In the command window i was in "c:\program files\mysql\bin" and i hit "mysqld-net --install" or whatever, and it said the following:
Quote:
The service already exists!
The current service is installed at c:\documents and settings\tom\my documents\mysql-4.1.1-alpha-win\mysql-4.1.1-alpha\bin\mysqld-nt.exe
|
i then typed "net start mysql" and it said:
Quote:
System error 2
The system cannot find the file specified
|
I then looked in this location (i copied the address by word into the address bar into explorer exactly) and it's not found - the apparent 'service' doesn't exist - the error message was right.
So i need to do one of two things, remove the current service or find where it actually is.
Can anybody help? I#'ve been trying to fix this for a few days now and i'm stumped, so is my nerd-friend also
|
|
July 13 '04, 02:42 PM (#14)
|
|
|
WDF Alien Overlord
Join Date: April 2003
Posts: 6,421
|
Try this:
net start mysqld-nt
|
|
July 13 '04, 03:14 PM (#15)
|
|
|
WDF Senior Member
Join Date: January 2004
Location: A small village near a small city near a small city called Birmingham on a small island called England
Posts: 918
|
Quote:
|
The service name is invalid
|
|
|
January 10 '05, 03:59 AM (#16)
|
|
|
WDF Senior Member
Join Date: September 2004
Location: Cape Town
Posts: 845
|
What Apache version am I supposed to download to use with PHP? at www.apache.org they have a bunch of "apache projects" HTTP server, Ant, Jacarta(I know this is for java), Gump etc. etc.
Which one am I supposed to use? thx
|
|
January 10 '05, 09:05 AM (#17)
|
|
|
WDF Veteran Member
Join Date: October 2002
Posts: 1,132
|
Apache server you need is "HTTP Server" http://httpd.apache.org/
|
|
January 10 '05, 10:07 AM (#18)
|
|
|
WDF Senior Member
Join Date: September 2004
Location: Cape Town
Posts: 845
|
Aah, I had a sneaky suspicion it was the HTTP Server. Thanks for the help Nsr81.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Rookie question from a (less than) rookie designer (MySQL, APACHE, PHP)
|
RookDawg |
General Web Design Discussion |
3 |
July 2 '09 10:47 PM |
|
Apache, PHP, MySql and Vista Nightmare
|
dsmflash |
Server Administration Help |
5 |
October 14 '08 11:52 PM |
|
How to Install Apache, PHP, and MySQL on Windows, step by step
|
filburt1 |
Software Articles & Tutorials |
141 |
January 9 '08 01:48 AM |
|
Getting apache, mySQL, and PHP to run..
|
web_designers |
Server Administration Help |
0 |
June 28 '05 12:22 PM |
|
installing apache, php, and mysql
|
fordan |
General Web Design Discussion |
5 |
June 27 '03 10:04 PM |
|
| Advertisement |
|
|
|