Dynadot โ€” .com Registration $8.99

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

Spaceship Spaceship
Watch

mituozo

Established Member
Impact
2
Download the following:
http://prdownloads.sourceforge.net/quickeasyphp/easyphp1-8_setup.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. :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
http://localhost just brings up the index of were I installed it.
Also how can people view it, by my ip address?
 
0
•••
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.

:)

Ericsson said:
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
 
0
•••
Ericsson said:
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. :)
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back