[advanced search]
Results from the most recent live auction are here.
18 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Webmaster Tutorials
User Name
Password

Old 09-01-2005, 05:56 AM   · #1
mituozo
NamePros Member
 
Location: Oxford, England
Trader Rating: (0)
Join Date: Aug 2005
Posts: 81
NP$: 6.00 (Donate)
mituozo is an unknown quantity at this point
Tutorial - Install Apache, PHP, Mysql, PhpMyAdmin in 5 mins!

Download the following:
http://prdownloads.sourceforge.net/...up.exe?download

Choose the mirror closest to you.

Install the program.
(Might want to install it to an easy to remember folder)

Go to INSTALL DIRECTORY/apache/conf/ and open httpd.conf in notepad.

Scroll down to:
Code:
DocumentRoot "%A DIRECTORY WILL BE HERE%"

Inbetween the double quotes, remove the current directory and put the directory where you want your php / mysql scripts to go. For example, if all your scripts are in C:\Programming, get that to C:\Programming.

Scroll down a bit further to:
Code:
<Directory "%A DIRECTORY WILL BE HERE%">


Do exactly the same there, make sure it's the same folder as you set 'DocumentRoot' to.

Save the file and close it.

Below is optional, changes PHP settings to not display notices. It's generally a prefererance to do what is listed below.

Next open the /apache/ directory. Open php.ini in notepad.

Scroll down to:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it's automatically initialized to an ; empty string) ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated error message ; E_USER_WARNING - user-generated warning message ; E_USER_NOTICE - user-generated notice message


Just below there there will be a few commented out lines, change:
Code:
;error_reporting = E_ALL & ~E_NOTICE


to

Code:
error_reporting = E_ALL & ~E_NOTICE


Then scroll slightly further and change:
Code:
error_reporting = E_ALL


to

Code:
;error_reporting = E_ALL


Save php.ini and close.

You're done! If easy php was started, right click on the task bar icon and restart it. If you havn't started easy php yet, go to your install directory and double click on "easyphp.exe" a dialogue box should appear, make sure next to both apache and mysql say: "started".

The default mysql information is set to:
Host: localhost
Username: root

To view your PHP scripts, type:

http://localhost/ into the address bar of your chosen browser.

To access PhpMyAdmin go to: http://localhost/mysql/

If you have any problems, feel free to post here.


Please register or log-in into NamePros to hide ads
mituozo is offline   Reply With Quote
Old 09-01-2005, 06:43 AM   · #2
Ericsson
Senior Member
 
Location: Belfast
Trader Rating: (55)
Join Date: Aug 2005
Posts: 1,196
NP$: 5.85 (Donate)
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse
http://localhost just brings up the index of were I installed it.
Also how can people view it, by my ip address?
Ericsson is offline   Reply With Quote
Old 09-01-2005, 07:04 AM   · #3
stscac
A Wealth of Knowledge
 
stscac's Avatar
 
Trader Rating: (45)
Join Date: Aug 2004
Posts: 3,785
NP$: 1200.20 (Donate)
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
I have used XAMPP on every computer that I own and have found it is the best solution. It includes a GUI control panel so (most) interactions with configuration can be done through the GUI.

To go to the XAMPP website, click here.



Originally Posted by Ericsson
http://localhost just brings up the index of were I installed it.
Also how can people view it, by my ip address?


You are going to find your ip address by going to an IP site like http://www.whatismyip.com

Let me know if you have any more questions if there is something else that you should need me assistance with.

-Steve
stscac is offline   Reply With Quote
Old 09-01-2005, 07:20 AM   · #4
mituozo
NamePros Member
 
Location: Oxford, England
Trader Rating: (0)
Join Date: Aug 2005
Posts: 81
NP$: 6.00 (Donate)
mituozo is an unknown quantity at this point
Originally Posted by Ericsson
http://localhost just brings up the index of were I installed it.
Also how can people view it, by my ip address?



People can't view it with this setup via your ip address. http://localhost/ should bring up the index of where you installed it.
mituozo is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows deadserious Webmaster Tutorials 96 05-27-2007 01:24 PM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
Tutorial: How to Install Apache2 MySQL and PHP on Windows deadserious Webmaster Tutorials 35 09-21-2005 09:46 PM
Tutorial: Getting Started With MySQL (The Basics) deadserious Webmaster Tutorials 3 04-18-2004 01:17 PM

Site Sponsors
Find out how! Traffic Down Under Click to Watch Instant Video
Advertise your business at NamePros
All times are GMT -7. The time now is 08:34 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0