Saturday, November 5, 2011

Installing step Apache Web Server, PHP, MySQL


Step - Installing step
Apache Web Server, PHP, MySQL

1. Installing Apache
Once you get the source Apache, can be directly installed by following the instructions at each step. In installing the Apache Web server under windows, things to note is the httpd.conf configuration only.

That need to be edited in httpd.conf include:
- ServerName, ie information about the name servers used
- DocumentRoot, ie information about where the web files that we place
- AddType and ScriptAlias, which is used to support other scripts such as php.



Examples can be seen in the httpd.conf file cthhttpd.txt

2. Installing PHP
Installing PHP a little more complicated than Apache. Once you get the source, copy the file - php file into a special folder like C: \ php3.
The next step is to edit the file php3.ini-dist. Just like httpd.conf, this file must be set and the save with the name php3.ini.
Things that need to be edited in php3.ini include;
- Upload_tmp_dir, contained the name of the folder where we store the web
- Extension_dir, contained the name of the folder where you save the file php3

Examples can php3.ini diliha in cthphp3ini.txt

Once completed, we still have to edit the registry on our windows. This can be done by going into Regedit.exe and change the settings. But this is not recommended because it can cause instability if an error occurs.
The easiest way is to install php_iis_reg.inf contained in the php folder earlier.

3. Installing MySQL
Installing MySQL as easy to install apache. Once the source is obtained, we can directly install by clicking setup.exe. By following the instructions given, MySQL will be installed on your computer.
The thing to note is that upon entering the system we have set the username and password.

mysql> mysql mysql
mysql> delete from user where User = '' AND Host = 'localhost';
mysql> quit
bye
c: \ mysql \ bin \ mysqladmin reload
c: \ mysql \ bin \ mysqladmin-u name password passworduser

Good luck!

No comments:

Post a Comment