Now open a browser and type it works! will be displayed on the screen.ġ. Open a command prompt and go to c:\Apache24\bin directory and type httpd -k installĥ. Change #ServerName ServerName localhostĤ. Unzip files to C:\Apache24\ directory and open nf file.ģ. In this step we install APACHE, download Apache Lounge. Steps to install and setup Apache on Windowġ. After Applying configuration your MYSQL server is ready to use. On next screen for windows service Click Next and click execute then wait for a while for the system to apply configurationĩ. Now in next step enter your root password and click next.Ĩ. Go to the folder where MySQL is installed and inside the bin directory.Ĭ:\Myfolder\MySQL\MySQL Server 5.7. Do set a root password that you will remember because you will need it later to login to the database. You will be prompted for basic configuration. This installer will install MySQL and all its dependencies. Install MySQLĭownload the msi installer from the MySQL downloads page Open a web browser and go to If you see a page with your PHP version and details then the isntallation was successfull. In my case, C:\Myfolder\Apache24\htdocs\test.php and inside the file put the following code: Make a new file called test.php in your document root folder. If you just see a blinking cursor then configuration was successful and HTTP server has been launched. Issue the command httpd to start HTTP server again.Īgain if the configuration is wrong it will throw error messages. Press ^Z at the command window that was used to launch httpd. LoadModule php5_module "c:/Myfolder/php/php5apache2_4.dll" Go to Apache conf directory and edit nf to add the following lines at the end. In this example I used PHP 5.6 VC11 Thread Safe 64-bit php-5.6.17-Win32-VC11-圆4.zip.ĭownload and extract to your preferred location Eg: C:\Myfolder\php Go for the Thread Safe version because Non Thread Safe does not have Apache DLL. Install PHPĭownload the PHP binary of required version from PHP for Windows Download page Open a web browser and go to You should be able to see the default welcome page. Minimize the command window, do not close it, because closing will terminate the server session. If you see just a blinking cursor that means the command was successful and HTTP server was launched. If there are errors in the nf file these will show up with corresponding line numbers. Open a command prompt and navigate to bin folder inside Apache24 and run command httpd Note: The format of nf file is slightly different on different versions of Apache. Open the file nf with a text editor.Įdit the file to point SRVROOT to directory where Apache is installed.ĭocumentRoot "c:/Myfolder/Apache24/htdocs" In my example I am using 64-bit VC11 binariesĪpache 2.4.18 Win64 VC11 zip file is named httpd-2.4.18-圆4-vc11.zipĭownload and extract to C:\Apache24 or your preferred location, say, C:\Myfolder\Apache24 Configure Apacheįind conf directory inside the folder where Apache is installed Eg: C:\Myfolder\Apache24\conf The previous VC11, VC10 builds are listed on the left. The latest version at the time of writing this article is Apache 2.4 VC14 which is built with the latest Visual Studio C++ 2015. You may install the required VC++ redistributable from Microsoft Developer tools website Install Apacheĭownload Apache binary zip file from Apache Lounge. You can check the VC++ version on your computer from Control Panel → Programs. It is important to check if the build of Apache, PHP and MySQL matches your operating system (64 bit or 32 bit) as well as the VC++ version (VC14, VC11, VC10 etc). However if you want to match your development environment to that of the actual webserver where your site will be hosted, you may want to manually install each of the components. If you want to do web development on your local PC or laptop you may use a development environment like WAMP (Windows equivelent of Linux LAMP) or XAMPP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |