Installing Apache2 Php5 Mysql 5 And Phpmyadmin On Windows

Active2 years, 10 months ago
  1. How to manually install Apache, PHP and MySQL on Windows? Ask Question. Thus avoiding you having to install slow web-based tools such as PHPMyAdmin if you aren't comfortable with using the command line client. Installing apache, php5 on windows 7 64 bit [production] 0.
  2. 2 Installing MySQL 5. Apache2 Configure database for phpmyadmin with. CentOS 6.7 January 5, 2017; Installing Apache2 With PHP5 And MySQL.
  3. How to Install Apache 2.4 MySQL and PHP on Windows Server 2012 R2. MySQL 5.6.19 and PHP 5.5.13 on Windows Server 2012 R2. Only change i made was not install.
  4. Installing PHP, MySql and Apache on windows. Ask Question. Step By Step Process to Setup Apaache,PHP,Mysql,phpMyAdmin and XDebug. 1)How to install Apache.

In this tutorial I am going to show you how to install PHP 5.4.30, Apache 2.4.9, MySQL 5.6.19 and phpMyAdmin 4.2.2 on a Windows 7 machine. This is a standard set of software that is required for PHP development. How to manually install Apache, PHP and MySQL on Windows? Thus avoiding you having to install slow web-based tools such as PHPMyAdmin. Installing apache, php5. Installing phpMyAdmin is a quick process and once installed, we can create databases, tables, mysql users, as well as setting privileges for mysql users for particular tables or databases. Web Server Before installing phpMyAdmin, we should have already installed a webserver such as Apache or IIS.

Its my first time working with Apache,PHP,MySql. I downloaded and installed the latest package of these 3. Now I checked with apache and the index.html works. Now I replaced the index.html with some php script to check if my php works or not. When opened the html page again I see the php code directly. It seems it does not work. following is how my php code looks like.

when I open my index.php , I see the above code itself. Can anybody let me know whats wrong and how can i fix it?

Surjya Narayana PadhiSurjya Narayana Padhi
3,53522 gold badges66 silver badges107 bronze badges

5 Answers

Check your apache httpd.conf file for some commented out code that looks like this

and further down the file, this..

Mike VormwaldMike Vormwald

it seems there is some problem in the installation. use WAMP as stefan and dessus or XAMPP. i recomand u to use XAMPP its bundled with APACHE, MYSQL, File Zilla Server, Mercury for mail. Easy to Install and Use . http://www.apachefriends.org/en/xampp.html

Bhavesh GanganiBhavesh Gangani
2,4174 gold badges32 silver badges62 bronze badges

Another vote for WampServer. Once you have a working server, it's then easier to poke around with configurations files and then learn Apache/PHP configuration that way.

Martin BeanMartin Bean
26.2k20 gold badges98 silver badges173 bronze badges

use wamp! it's easy and fast :)

personally, i use an old version from 2007, 1.7.4, it can be found here: http://sourceforge.net/projects/wampserver/files%2FWAMP5/

the good thing about using an old version is that your code will work on old machines, and many servers out there have old versions of php and mysql.

the bad thing about using an old version is that your code might not work on new machines, and some machines out there have new versions of php and mysql.

davogotlanddavogotland
2,4591 gold badge11 silver badges18 bronze badges

Step By Step Process to Setup Apaache,PHP,Mysql,phpMyAdmin and XDebug.

1)How to install Apache

2)Setup PHP for Apache

3)Install & Configure MySQL to use with PHP

4)Setup XDebug for Debugging

5)phpMyAdmin

Note:In this tutorial my Server Folder is located on F:Server

How to install Apache

1)There are two ways to install apache either install the old version of apache httpd (Compatible with Windows XP) from httpd.apache.org/download.cgi or get the latest apache build zip from www.apachelounge.com/download/ .

2)I will show how to configure apache from the zip version downloaded from apachelounge.com/download/ .

3)Click on Additional + VC9 on the left of the page.

4)Download the 2.4.x zip build with OpenSSL 0.9.8.

5)Create a folder with a name Server on location where .

6)My Location is F:Server

7)Extract the Apache24 from apache zip to the Server folder.

8)Now Goto config folder in Apache and open httpd.config in any text editor.

9)Find(Ctrl + F) and replace each and every instance of 'c:/Apache24' and change it to your apache location in my case its f:/Server/Apaache24.

ServerRoot 'c:/Apache24' with ServerRoot 'f:/Server/Apache24'

DocumentRoot 'c:/Apache24/htdocs' with DocumentRoot 'f:/Server/Apache24/htdocs'

with

ScriptAlias /cgi-bin/ 'c:/Apache24/cgi-bin/' with ScriptAlias /cgi-bin/ 'f:/Server/Apache24/cgi-bin/'

with

8)Now run the Command Prompt (with Administrator Rights) .

9)On Command Prompt go to the location Server/Apache24/bin .

10)Inside the Bin folder type 'httpd -k install' to install the Apache service and then press Enter.

11)To start the Apache Server simply type in 'httpd -k start' and then press Enter.

12)Restart Your Computer

13)Now Open the Bin folder and double click on the ApacheMonitor.exe and Start Apache

14)Now Goto localhost if you see page 'It Works' then Apache is sucessfully installed on you computer.

Mysql 5 Download Open Source

If you see a page that says 'It works!' then the Apache server has been installed successfully.

Setup PHP for Apache

1)Goto windows.php.net/download/ download the php-5.4.x-Win32-VC9-x86.zip.

Crack de operation flashpoint resistance torrent. 2)Create a folder named php inside Server folder.

3)Extract all files from php-5.4.x-Win32-VC9-x86.zip to php folder in the Server.

4)Now Goto config folder in Apache and open httpd.config in any text editor.

5)Find(Ctrl + F) the LoadModule scroll down until last LoadModule and Paste the following

LoadModule php5_module 'f:/Server/php/php5apache2_4.dll'.

6) Find(Ctrl + F) the AddType scroll down until last AddType and Paste the following

AddType application/x-httpd-php .php .

7)Add the PHP location to the end of the httpd.conf file. For example, at the end of the file, add the following: PHPIniDir 'Your PHP Location'.

You may wish to check out the Handbook section on installing Drupal. Tm, Ok, I went back and reviewed again. • or to post comments. There is an assumption by the Drupal installation that your environment (WIMP, in your case) is set and verified. I use phpmyadmin to verify; if I can install it without errors and can manage the databases, I am (usually) good to go. Install mysql module php windows hosting 2008.

localhost/info.php

8)In the php folder rename the php.ini-development to php.ini and open it in Text Editor.

9)Find(Ctrl + F) the display_errors, and make sure the value is set to On.

10) Find(Ctrl + F) the extension_dir = './' and change it to extension_dir = 'F:Serverphpext' .

11)Restart Apache Server.

12)Create a file 'phpinfo.php' in htdocs folder in Apache with follwoing content:

13)Goto localhost/phpinfo.php

extension_dir = './'

14)Right Click MyComputer Click Propertes

15)Click Environment Variables

16)Add Your php folder location at the end of the path

17)Restart Your Computer.

Install & Configure MySQL to use with PHP

1)Goto dev.mysql.com/downloads/mysql/ download the zip or installer version.

2)Install MySQL

3)Click Next

4)Select Complete & click Next

5)Click Finsh

6)Click Standard Configuration

7)Click Next

8)Enter the password for mySQL

9)Goto MySQL Command Line and enter the password.

12)Open the php.ini file and find the line: ;extension=php_mysql.dll remove the semi-colon.

and find the line: ;extension=php_mysql.dll

phpMyAdmin

1)Goto config folder in Apache and open httpd.config in any text editor.

Windows

2) Find(Ctrl + F) the line DirectoryIndex index.html add index.php.

3)Open php.ini file in the Server Folder and Uncomment the mbstring and mysqli extension.

3)Goto phpmyadmin.net/ Download the latest phpMyAdmin-4.0.8-english.zip.

4)Extract it to phpMyAdmin folder in htdocs.

5)Restart the Apache Server. Dell photo aio printer 966 driver for windows 10.

6)Goto localhost/phpMyAdmin/

Setup XDebug for Debugging

1)Goto http://xdebug.org/download.php from your browser and download the

php_xdebug-2.x.x-5.4-vc9 Thread Safe 32 bit version. Hp officejet 5610 series driver windows 7.

2)Copy and Paste it to the extension folder in the php.

3)Copy & Paste the following line of code at the end of php.ini file .

[XDebug]

Installing Apache2 Php5 Mysql 5 And Phpmyadmin On Windows

;; Only Zend OR (!) XDebug

zend_extension='Your Location of Xdebug'

xdebug.remote_enable=true

Mysql 5.5 Command Line Client

xdebug.remote_host=localhost

xdebug.remote_port=10000 Attachment using ajax php scripts.

xdebug.remote_handler=dbgp

4)Restart Apache Server.

Installing Apache2 Php5 Mysql 5 And Phpmyadmin On Windows 7

5)Goto to localhost/phpinfo.php scroll down to see if xDebug is installed

falsarella
10.1k7 gold badges55 silver badges96 bronze badges

Mysql 5.7 Download

RushikeshRushikesh

Php 5.2

Not the answer you're looking for? Browse other questions tagged phpwindowsapache or ask your own question.