Admin Reports

25 Jan, 2008

Quick Tip: Adding mySQL and PHP to Your Windows Path

Posted by: BSchwarz In: Quick Tips

Here is a quick tip showing you how to add mySQL and PHP to your Windows Server path. Many people ask how to do this and while it is included in the Installing mySQL and Installing PHP tutorials I thought I would make it easier for everyone to get the information.

Lets get to it.

First thing to do is right click My Computer and select Properties:

Start advanced-tab.GIF

Select Advanced tab and you’ll see what is shown in figure 2 above. Now click Environment variables button.

environment-variables.GIF add-to-path.GIF

In the bottom box select Path as shown in figure 1 above. Click edit. You’ll get a box like figure 2 above with path highlighted. Click into the box at the end of the path and add:

;C:\path\to\mysql\bin for mySQL

;C:\path\to\php for PHP

Don’t forget the leading ” ; ” when adding the paths. Those are the path seperators.

That’s all there is to it. If you have any question post a comment. If you need one on one help visit the forum.


3 Responses to "Quick Tip: Adding mySQL and PHP to Your Windows Path"

1 | BSchwarz

January 25th, 2008 at 10:32 AM

Avatar

I hope this tip is helpful. Post a comment and let me know if it was.

2 | Demono

February 27th, 2009 at 5:16 PM

Avatar

Should we also add any of the filetypes into ‘PATHEXT’ variable such as .PHP and .PL? If so, are there any other types that should be added?

3 | BSchwarz

March 2nd, 2009 at 8:15 PM

Avatar

No. You do that with IIS manager.

Comment Form

About

Admin Reports is a resource for forum and server admins geared towards admins that run communities on Windows Servers and IIS.

You will find tutorials, tips and tricks to tweak your Windows server, howto and reviews of forum software packages.

Advertisement

 

September 2010
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
27282930  

Who is Online

Users: 5 Guests