Web Design Forums

PHP

Have questions about PHP? Ask them here and our experts will assist you before you know it! You can also find help in the documentation at PHP.net.

Running Apache, PHP, and MySQL



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old July 28 '02, 09:42 AM (#1)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 11:33 AM (#2)
M3PHP is offline
Inactive
 
M3PHP's Avatar
 
Join Date: April 2002
Location: Oxford, UK
Posts: 32
M3PHP
Send a message via AIM to M3PHP Send a message via Yahoo to M3PHP
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 11:42 AM (#3)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 12:00 PM (#4)
M3PHP is offline
Inactive
 
M3PHP's Avatar
 
Join Date: April 2002
Location: Oxford, UK
Posts: 32
M3PHP
Send a message via AIM to M3PHP Send a message via Yahoo to M3PHP
It gives me a Syntex error on line 311

invaild command <Directory>

i have attached the httpd.conf file

Peter
Attached Files
File Type: txt httpd.txt (36.0 KB, 86 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 12:06 PM (#5)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 03:55 PM (#6)
M3PHP is offline
Inactive
 
M3PHP's Avatar
 
Join Date: April 2002
Location: Oxford, UK
Posts: 32
M3PHP
Send a message via AIM to M3PHP Send a message via Yahoo to M3PHP
Great

Thanks filburt1 , I have now got it working on my computer

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 28 '02, 06:19 PM (#7)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
Cheers...feel free to hang around and keep asking questions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31 '02, 11:49 AM (#8)
M3PHP is offline
Inactive
 
M3PHP's Avatar
 
Join Date: April 2002
Location: Oxford, UK
Posts: 32
M3PHP
Send a message via AIM to M3PHP Send a message via Yahoo to M3PHP
ok filburt1 will do

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 20 '02, 08:34 PM (#9)
filburt1 is offline
bored
 
filburt1's Avatar
 
Join Date: July 2002
Location: Maryland, US
Posts: 11,785
filburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to allfilburt1 is a name known to all
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")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 9 '03, 09:35 AM (#10)
Tim 2K is offline
WDF Regular
 
Tim 2K's Avatar
 
Join Date: March 2003
Location: Hegelsom, The Netherlands
Posts: 104
Tim 2K
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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 27 '03, 08:37 AM (#11)
toadeny is offline
"I'm addicted to WDF"
 
toadeny's Avatar
 
Join Date: May 2003
Location: Wellington, New Zealand
Posts: 188
toadeny is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 24 '04, 06:11 PM (#12)
hiloauto is offline
New Member!
 
hiloauto's Avatar
 
Join Date: March 2004
Posts: 5
hiloauto
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 13 '04, 02:39 PM (#13)
tekp is offline
WDF Senior Member
 
tekp's Avatar
 
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
tekp is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 13 '04, 02:42 PM (#14)
Wired is offline
WDF Alien Overlord
 
Wired's Avatar
 
Join Date: April 2003
Posts: 6,421
Wired is just really niceWired is just really niceWired is just really niceWired is just really nice
Send a message via AIM to Wired
Try this:
net start mysqld-nt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 13 '04, 03:14 PM (#15)
tekp is offline
WDF Senior Member
 
tekp's Avatar
 
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
tekp is on a distinguished road
Quote:
The service name is invalid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 10 '05, 03:59 AM (#16)
jbagley is offline
WDF Senior Member
 
jbagley's Avatar
 
Join Date: September 2004
Location: Cape Town
Posts: 845
jbagley is on a distinguished road
Send a message via MSN to jbagley
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 10 '05, 09:05 AM (#17)
nsr81 is offline
WDF Veteran Member
 
nsr81's Avatar
 
Join Date: October 2002
Posts: 1,132
nsr81 is on a distinguished road
Apache server you need is "HTTP Server" http://httpd.apache.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 10 '05, 10:07 AM (#18)
jbagley is offline
WDF Senior Member
 
jbagley's Avatar
 
Join Date: September 2004
Location: Cape Town
Posts: 845
jbagley is on a distinguished road
Send a message via MSN to jbagley
Aah, I had a sneaky suspicion it was the HTTP Server. Thanks for the help Nsr81.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » PHP

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:36 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163