安装APACHE_PHP教程

WBOY
Freigeben: 2016-07-21 15:57:40
Original
770 Leute haben es durchsucht

先把机器安的IIS停掉(如果启动了的话,因为默认安装APACHE使用也是80端口,不停掉会有冲突)
在APACHE的官方网站下载到apache_2.2.3-win32-x86-no_ssl,双击安装,安装时最好不要装好有空格的路径下可以安到c:\apache2下
启动APACHE在IE里打入http://localhost 如果看到一个页面上面写着it works说明APACEH运行正常
2.安装PHP5
在PHP的官方网站下载到php-5.2.0-Win32.zip,解压缩后把目录名改为php,复制到C:\
把php目录下的php.ini-dist改名为php.ini复制到c:\windows(或:\winnt视操作系统而定),把php5ts.dll和libmysql复制到c:\windows\system32下
3.让APACHE可以运行PHP程序
修改c:\apaceh2\conf\httpd.conf文件
在#LoadModule ssl_module modules/mod_ssl.so的下一行加上

**(注意如果你的APACHE是2.2版本的加上下面这句)
LoadModule php5_module c:/php/php5apache2_2.dll
(注意如果你的APACHE是2.0版本的加上下面这句)
LoadModule php5_module c:/php/php5apache2.dll
在AddType application/x-gzip .gz .tgz的下一行加上
AddType application/x-httpd-php .php
保存
写一下最简单的PHP页面,里面只有一行代码

保存为test.php把这个文件放到 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/317825.htmlTechArticle先把机器安的IIS停掉(如果启动了的话,因为默认安装APACHE使用也是80端口,不停掉会有冲突) 在APACHE的官方网站下载到apache_2.2.3-win32-x86-no_ssl,双...
Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!