Install apache2.2.22 configuration php5.4 (Specific procedure)

Source: Internet
Author: User
Tags ini

Modify apache2.2/httpd.conf configuration file so that Apache can parse PHP files

#修改监听端口
Listen 8011

#在LoadModule的最后一段后面添加下面一句话
LoadModule php5_module "E:/lamp/php5.4/php5apache2_2.dll"

#修改服务器网站目录为 e:/lamp/www
DocumentRoot "E:/lamp/www"
#同时还有一个地方要改
<directory "E:/lamp/www" >

#在 <ifmodule dir_module> inside the index.html before adding index.php, that is, the default first to open index.php, if not to open again index.html
<ifmodule dir_module>
DirectoryIndex index.php index.html
</IfModule>

#添加可执行的文件在 AddType application/x-gzip gz. tgz Add the following two words
AddType application/x-httpd-php. php. phtml
Phpinidir "e:/lamp/php5.4"

modifying php5.4/php.ini-production configuration Files
First rename the Php.ini-production file to PHP.ini

; set PHP's extension library path, find; Extension_dir = "ext", add the following sentence below
Extension_dir = "E:/lamp/php5.4/ext"

; Open the PHP extension library
; Extension=php_gd2.dll
; Extension=php_mbstring.dll
; Extension=php_mysql.dll
; Extension=php_mysqli.dll
Remove the semicolon before the four sentences above

Set the session temporary save path, find; Session.save_path = "/tmp", add the following sentence below (path can be set freely)
Session.save_path = "E:/lamp/php5.4/session_temp"

; The same cookie temporarily saves the path
Session.cookie_path = "E:/lamp/php5.4/session_temp"

After the configuration is complete, the E:lampphp5.4ext directory
Php_mysql.dll and Php_mysqli.dll
Two files are copied and pasted into the "C:windowssystem32" directory,
If your operating system is win7x64 bit, copy and paste it into the "c:windowssyswow64" directory.

OK, now reboot your Apache and see if it's going to work.
Test run phpMyAdmin and see if you can run. If it works, it's done.

Note: The MySQL installation method is not available here. Before the installation of MySQL, their own other Baidu go.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.