从wamp到xampp的升级之路_PHP
准备学习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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This article involves two PHP integrated environments, both of which contain mysql + apache + php. The function of phpstudy is more powerful than wamp, and it is very simple and easy to use.

In the technical field, XAMPP is a commonly used development environment tool. It integrates software such as Apache, MySQL, PHP and Perl, and can help developers quickly build a local server environment. However, sometimes when using XAMPP, you will encounter PHP execution exception problems, which may cause problems in development work. This article will share some troubleshooting techniques to help readers solve the problem when XAMPP encounters PHP execution exceptions. 1. Check the PHP error log. First, when the P in XAMPP
![[Summary] Reasons and solutions why WAMP cannot parse PHP files](https://img.php.cn/upload/article/202303/22/2023032211181758796.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
WAMP is a free and open source web server software package that allows users to build a web server environment on Windows operating systems. However, when users try to run PHP files in WAMP, they may encounter unresolved errors. In this article, we will explore the reasons and solutions for why WAMP cannot parse PHP files.

The solution to the problem that XAMPP cannot execute PHP is revealed. Specific code examples are needed. XAMPP is a very commonly used integrated development environment tool during website development or local testing. However, sometimes during the installation and configuration of XAMPP, you may encounter the problem that XAMPP cannot execute PHP, resulting in the website being unable to run normally. This article mainly provides a detailed introduction to the solution to the problem that XAMPP cannot execute PHP, including specific code examples. I hope it can help people who encounter similar problems.

In the process of using WAMP as a local server environment, the problem of garbled PHP files sometimes occurs. This kind of problem will not only affect our code writing, but also affect the normal operation of our website. In this article, we will introduce some methods to solve garbled PHP files in WAMP.

With the continuous development of computer technology, the use of Web servers has become an indispensable part of people's daily lives. For programmers or web developers, using a local server is essential when developing and testing websites. PHP is a very popular scripting language for web development, and XAMPP is a commonly used server suite among developers. In this article, we will explain how to create a local web server using PHP and XAMPP. 1. Download and install XAMPP before starting to create this

Wampserver is a software package that can install Apache, PHP and MySQL on Windows computers. Develop and test PHP websites on your local computer easily with Wampserver. During the development process, we may need to modify the PHP configuration file php.ini. This article will introduce how to modify the php.ini file in Wampserver.

For users who use XAMPP for PHP development or debugging, they often encounter some problems, such as problems during the installation and configuration process, or running problems during use. Among them, one of the most common problems is that XAMPP cannot execute PHP. This problem may involve various factors, and today we will introduce some common solutions.
