Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Programming Help » PHP » Running Apache, PHP, and MySQL RSS

Running Apache, PHP, and MySQL

This thread was started by filburt1 and has been viewed 11140 times, and contains 17 replies, with the last reply made by jbagley.
Post Reply
1
794 points at 99% Donor Moderator Repute WDFplus Member
Posted July 28 '02 at 10:42 AM
      Posts: 11,793
Here's a simple tutorial on getting the three services working together on Windows NT, 2000, and XP. http://www.webdesignforums.net/showt...&threadid=4321
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!
Last edited November 13 '02 at 12:58 AM by filburt1. Reply

Advertisement Register for free to hide these ads and participate in discussions!

2
View M3PHP's reputation
M3PHP, Inactive Home page   Private message  
Posted July 28 '02 at 12:33 PM
      Posts: 32
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

3
794 points at 99% Donor Moderator Repute WDFplus Member
Posted July 28 '02 at 12:42 PM
      Posts: 11,793
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.
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!

4
View M3PHP's reputation
M3PHP, Inactive Home page   Private message  
Posted July 28 '02 at 01:00 PM
      Posts: 32
It gives me a Syntex error on line 311

invaild command <Directory>

i have attached the httpd.conf file

Peter
Attachments File Type: txt httpd.txt (36.0 KB, 61 views)

5
794 points at 99% Donor Moderator Repute WDFplus Member
Posted July 28 '02 at 01:06 PM
      Posts: 11,793
You have to specify an attribute for the directory structure.

My default httpd.conf (called httpd.default.conf, BTW) has this:

<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.
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!
Last edited July 28 '02 at 01:07 PM by filburt1. Reply

6
View M3PHP's reputation
M3PHP, Inactive Home page   Private message  
Posted July 28 '02 at 04:55 PM
      Posts: 32
Thanks filburt1 , I have now got it working on my computer

Peter

7
794 points at 99% Donor Moderator Repute WDFplus Member
Posted July 28 '02 at 07:19 PM
      Posts: 11,793
Cheers...feel free to hang around and keep asking questions
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!

8
View M3PHP's reputation
M3PHP, Inactive Home page   Private message  
Posted July 31 '02 at 12:49 PM
      Posts: 32
ok filburt1 will do

Peter

9
794 points at 99% Donor Moderator Repute WDFplus Member
Posted September 20 '02 at 09:34 PM
      Posts: 11,793
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")
filburt1, Web Design Forums.net founder
Want to advertise on this site?
Site of the Month contest: submit your site or vote for the winner!

10
View Tim 2K's reputation
Tim 2K, WDF Addict! Home page   Private message   E-mail
Posted March 9 '03 at 09:35 AM
      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..
Guess who's back! It's me! Tim 2K

11
7 points at 100%
toadeny, "I'm addicted to WDF" Home page   Private message   E-mail
Posted October 27 '03 at 08:37 AM
      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?

12
View hiloauto's reputation
Posted March 24 '04 at 06:11 PM
      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

13
2 points at 100%
tekp, Must... Post... More...! Home page   Private message   E-mail
Posted July 13 '04 at 03:39 PM
      Posts: 919
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:

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:

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

14
345 points at 100% Donor Moderator Repute WDFplus Member
Wired, Admin and WDF Alien Overlord Home page   Private message  
Posted July 13 '04 at 03:42 PM
      Posts: 6,274
Try this:
net start mysqld-nt
Admin at houseofhelp.com
WDF Resources: The Rules
Founder/Creator/Admin of ZE SECRET PROJECT!

Was another WDF member's post helpful? Click the positive rating button () above the post.

15
2 points at 100%
tekp, Must... Post... More...! Home page   Private message   E-mail
Posted July 13 '04 at 04:14 PM
      Posts: 919
The service name is invalid


16
44 points at 100%
jbagley, Must... Post... More...! Home page   Private message  
Posted January 10 '05 at 03:59 AM
      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

17
View nsr81's reputation WDFplus Member
nsr81, Post Monster Private message   E-mail
Posted January 10 '05 at 09:05 AM
      Posts: 1,132
Apache server you need is "HTTP Server" http://httpd.apache.org/
Sites: Personal | Hosting

18
44 points at 100%
jbagley, Must... Post... More...! Home page   Private message  
Posted January 10 '05 at 10:07 AM
      Posts: 845
Aah, I had a sneaky suspicion it was the HTTP Server. Thanks for the help Nsr81.

Post Reply