从wamp到xampp的升级之路,wampxampp之路
准备学习php框架Laravel,但PHP版本要求5.4+,目前用的wamp默认版本5.3,所以准备使用xampp,以下为记录
卸载wamp,略过
> ps:注意卸载wamp会删除PHP目前下的文件,因为PHP的扩展redis,memcache也会删除,记得备份,也可重下版本,还有MySQL数据库也记得备份
https://www.apachefriends.org/zh_cn/index.html点此下载软件
启动Apache,MySQL,打开localhost成功安装
配置,因为xampp默认根目录有新的www,因此需要为原来的wamp的www目录配置虚拟域名
编辑httpd.conf ,修改
<Directory /> #AllowOverride none #Require all denied Options All AllowOverride All Order deny,allow Allow from all </Directory>
编辑httpd-vhosts.conf
NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/wamp/www" ServerName vhallapp.com ServerAlias www.vhallapp.com ErrorLog "D:/soft/wamp/apacheerror.log" CustomLog "D:/soft/wamp/apacheaccess.log" common </VirtualHost>
编辑hosts
复制代码 代码如下:
127.0.0.1 www.app.com
5. 下载redis
复制代码 代码如下:
http://pecl.php.net/package/redis/2.2.7/windows下载5.6版本dll文件
6. 编辑php.ini
复制代码 代码如下:
extension=php_redis.dll
7. 打开xdebug
[XDebug] zend_extension = "D:\soft\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "D:\soft\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "D:\soft\xampp\tmp"
8.打开www.app.com
over
以上所述就是本文的全部内容了,希望能够对大家熟悉配置XAMPP有所帮助。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1
Powerful PHP integrated development environment