Hello everyone, here is a quick how-to on how to install php on windows. I guess you already have apache installed and running as well as mysql.
We come to us:
- Unpack php in c: \\ php (or wherever as long as you remember the path)
- Rename the file php.ini-dist to php.ini
- Move the file php5ts.dll in c: \\ windows
- change the configuration of Apache (usually httpd.conf) by adding LoadModule directives in the queue to the following block:
LoadModule php5_module "c: / php/php5apache2.dll"
AddType application / x-httpd-php. php
PHPIniDir "c: / php"
- Rename the file php.ini-dist to php.ini
- Move the file php5ts.dll in c: \\ windows
- change the configuration of Apache (usually httpd.conf) by adding LoadModule directives in the queue to the following block:
LoadModule php5_module "c: / php/php5apache2.dll"
AddType application / x-httpd-php. php
PHPIniDir "c: / php"
also add
DirectoryIndex index.php
- Restart apache
- libmysql.dll Copy from c: \\ php to c: \\ windows
- Set the following properties in the php.ini
DirectoryIndex index.php
- Restart apache
- libmysql.dll Copy from c: \\ php to c: \\ windows
- Set the following properties in the php.ini
extension_dir = "c: \\ php \\ ext" extension = php_mysql.dll
Our installation is complete. Now we go into the document root of Apache (usually htdocs) and create the index.php page. Inside insert the following script:
If now we load the page from a browser can check the flight operation of our php and works included allows us to control all forms installed.
0 comments:
Post a Comment