Paste_Image.png
安装:Custom
Paste_Image.png
安装路径选择
Paste_Image.png
apache目录
Paste_Image.png
成功后,看到浏览器这个OK了
Paste_Image.png
apache内部文件
Paste_Image.png
配置apache.以运行PHP程序 将刚才的网页1base.php放到Apache的htdocs文件中,并通过浏览器“浏览”
Paste_Image.png
发现,根本无法运行php!,需要配置apache了:分2步: 第一步:装载php“模块” --其实就是指php语言包中的一个文件而已 A、首先,将php语言模块,拷贝到计划的目录中来 B、打开apache的配置文件:apache安装位置/conf/httpd.conf 注释:前面+#
Paste_Image.png
第二步:指定php后缀的文件,去“找”该php模块处理(执行):这里基本是固定写法
Paste_Image.png
第三步:重启apache,再次刷新刚才的页面:
Paste_Image.png
检测apache配置语法的命令 错误写法:不加s
Paste_Image.png
apache安装位置/bin/httpd.exe
httpd.exe -t
如果配置文件httpd.conf没有语法错误,就返回:syntax OK 如果有错误,则会提示第几行错误!
强行“拖入”
Paste_Image.png
我的电脑》属性》高级系统设置》高级》环境变量》系统变量》path》编辑 然后,在其中加入刚才的httpd.exe文件所在的完整目录路径,注意使用英文的";"跟以前的内容分开
Paste_Image.png
然后,就可以cmd中直接打开 两种打开方式都行
Paste_Image.png