300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > Windows 平台搭建 PHP 集成开发环境

Windows 平台搭建 PHP 集成开发环境

时间:2019-07-18 00:01:43

相关推荐

Windows 平台搭建 PHP 集成开发环境

Windows 平台搭建 PHP 集成开发环境

安装xampp

XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。XAMPP 的确非常容易安装和使用:只需下载,解压缩,启动即可。

官网地址

点击下载window版本的安装包,下载完成后点击安装 next -> next -> … 完成安装 ,打开软件:

打开Apache服务出现问题:

Apache启动提示

10:33:43 [Apache] Problem detected!

10:33:43 [Apache] Port 80 in use by “Unable to open process” with PID 4!

10:33:43 [Apache] Apache WILL NOT start without the configured ports free!

10:33:43 [Apache] You need to uninstall/disable/reconfigure the blocking application

10:33:43 [Apache] or reconfigure Apache and the Control Panel to listen on a different port

10:33:43 [Apache] Problem detected!

10:33:43 [Apache] Port 443 in use by “”C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe” -u “C:\ProgramData\VMware\hostd\config.xml”” with PID 5728!

10:33:43 [Apache] Apache WILL NOT start without the configured ports free!

10:33:43 [Apache] You need to uninstall/disable/reconfigure the blocking application

10:33:43 [Apache] or reconfigure Apache and the Control Panel to listen on a different port

解决办法:

系统提示80端口和443端口被占用,通过修改配置文件可以选择未被占用的端口:

1.在\ xampp\apache\conf目录下 ,打开httpd.conf,将里边的80端口全部改成一个未被占用的端口,比如8088

2.在 \ xampp\apache\conf\extra目录下 ,打开httpd-ssl.conf ,将文件里的443端口全部换成一个未被占用的端口,比如4431

注意:xampp根目录下有两个个文件properties.ini和xampp-control.ini 里面也涉及到端口的配置,不过我这里没有改动,仅仅改动上面文件的端口就可以正常启动服务了。

打开服务成功后,在浏览器输入http://localhost:8088/ ,这里8088是我配置的端口号,能正确打开该地址说明服务正常。

安装PhpStorm

PhpStorm是一个轻量级且便捷的PHP IDE,其旨在提高用户效率,可深刻理解用户的编码,提供智能代码补全,快速导航以及即时错误检查。

官网地址

下载安装都很简单就不多说了。它是一款收费软件,在我大中华这都不是事…

打开IDE,open一个存在的项目:

这里htdocs项目是xampp自带的一个项目,打开项目如下:

修改index.php

<?phpecho 'hello PHP!';?>

在浏览器打开http://localhost:8088/

到此,整个集成开发环境搭建完毕,接下来由你尽情的玩耍吧!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。