This document provides instructions for installing Apache web server, PHP, MySQL, and PHPMyAdmin on a Windows system. Key steps include downloading and extracting the necessary files, creating directories for the web server files and web pages, configuring Apache's httpd.conf file to point to the correct locations, installing and configuring PHP and enabling PHP modules, setting up MySQL during installation, and extracting PHPMyAdmin files to complete the installation. Once completed, the basic LAMP stack and PHPMyAdmin will be installed and accessible at specified URLs.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
85 views
Create Apache Web Server
This document provides instructions for installing Apache web server, PHP, MySQL, and PHPMyAdmin on a Windows system. Key steps include downloading and extracting the necessary files, creating directories for the web server files and web pages, configuring Apache's httpd.conf file to point to the correct locations, installing and configuring PHP and enabling PHP modules, setting up MySQL during installation, and extracting PHPMyAdmin files to complete the installation. Once completed, the basic LAMP stack and PHPMyAdmin will be installed and accessible at specified URLs.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
Download Setup File
Apache Server (work on windows 7 and later) - Visual C++ Redistributable for Visual Studio 2012: download - Apache: download (choose the latest VC11 win32 version) PHP - Php for Windows: download (choose the latest VC11 x86 TS version) MySQL - MySQL for Windows: download (choose 5.5.17 x86 MSI version) PHPMyAdmin - phpMyAdmin Source: download
2. Install (recommend) Create these directory: C o Web Server apache mysql php temp E o Web
- Install vcredist_x86.exe - Extract the apache setup file, copy all content in the sub folder (like Apache24) to C:\Web Server\apache - Go to C:\Web Server\apache\conf\ and open httpd.conf, Change the ServerRoot value to "C:/Web Server/apache" Set the ServerName value as localhost:80 Change the DocumentRoot value to E:/Web In Directory tag, change attribute from "c:/Apache24/htdocs" to E:/Web, in this tag, change AllowOverride from None to All Add index.php to DirectoryIndex Create file index.html in E:/Web, with any content as html page - Open the Command Prompt with admin, type the following command: cd /d C:\Web Server\apache\bin httpd.exe -k install httpd.exe -k start - Open web browser and go to address http://localhost/ to see the result. - Extract all content in downloaded php source to C:\Web Server\php
- In the httpd.conf still opened, add this code to end of file: AddType application/x-httpd-php .php LoadModule php5_module "c:/Web Server/php/php5apache2_4.dll" PHPIniDir "c:/Web Server/php" Notice: On the second code, the name php5apache2_4.dll can be different depend on php version, just open c:/Web Server/php directory to see the exact name of the module. - Open C:\Web Server\php directory, rename php.ini-recommended or php.ini-development to php.ini - Open php.ini file and add these code to end of file: doc_root = "e:\Web"; session.save_path = "c:\Web Server\temp"; extension_dir = "C:\Web Server\php\ext"; - With the command prompt still open, type: httpd.exe -k restart to restart apache server. - Create file phpinfo.php in E:/Web, with content <?php phpinfo(); ?>, then go to web browser and go to http://localhost/phpinfo.php to see result - Start setup mysql, choose Program Files directory as C:\Web Server\mysql, the type of installation can be Sever only - In file php.ini, uncomment these module (delete ; at beginning of line) ;extension=php_mbstring ;extension=php_mysql.dll ;extension=php_mysqli.dll - Restart apache server to take effect - Extract all content on phpMyAdmin source to E:\Web folder\phpmyadmin, in this folder, rename file config.sample.inc.php to config.inc.php. - Go to address http://localhost/phpmyadmin/ to log on.