NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page Tutorial - Install Apache, PHP, Mysql, PhpMyAdmin in 5 mins!

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-01-2005, 05:56 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Aug 2005
Location: Oxford, England
Posts: 81
mituozo is an unknown quantity at this point
 



Tutorial - Install Apache, PHP, Mysql, PhpMyAdmin in 5 mins!


Download the following:
http://prdownloads.sourceforge.net/q...p.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.
????: NamePros.com http://www.namepros.com/webmaster-tutorials/120136-tutorial-install-apache-php-mysql-phpmyadmin.html

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
????: NamePros.com http://www.namepros.com/showthread.php?t=120136

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.
mituozo is offline  
Old 09-01-2005, 06:43 AM   #2 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
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 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  
Old 09-01-2005, 07:04 AM   #3 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,803
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.
????: NamePros.com http://www.namepros.com/showthread.php?t=120136

-Steve
stscac is offline  
Old 09-01-2005, 07:20 AM THREAD STARTER               #4 (permalink)
NamePros Member
Join Date: Aug 2005
Location: Oxford, England
Posts: 81
mituozo is an unknown quantity at this point
 



Originally Posted by Ericsson
http://localhost just brings up the index of were I installed it.
????: NamePros.com http://www.namepros.com/showthread.php?t=120136
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  
Closed Thread


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


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

 
All times are GMT -7. The time now is 12:54 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger