Home Backend Development PHP Tutorial 从wamp到xampp的升级之路_PHP

从wamp到xampp的升级之路_PHP

May 30, 2016 pm 02:59 PM
wamp xampp

准备学习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>
Copy after login

编辑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>
Copy after login

编辑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"

Copy after login

8.打开www.app.com
over

以上所述就是本文的全部内容了,希望能够对大家熟悉配置XAMPP有所帮助。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Teach you to create a virtual host and run php projects (phpstudy + wamp) Teach you to create a virtual host and run php projects (phpstudy + wamp) Aug 07, 2022 pm 03:17 PM

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.

XAMPP encountered PHP execution exception? Troubleshooting tips to help XAMPP encountered PHP execution exception? Troubleshooting tips to help Mar 12, 2024 pm 03:21 PM

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 [Summary] Reasons and solutions why WAMP cannot parse PHP files Mar 22, 2023 am 10:38 AM

​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 The solution to the problem that XAMPP cannot execute PHP is revealed Mar 12, 2024 pm 06:39 PM

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.

A brief analysis of the solution to the problem of garbled PHP files in WAMP environment A brief analysis of the solution to the problem of garbled PHP files in WAMP environment Mar 22, 2023 am 09:30 AM

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.

Create a local web server using PHP and XAMPP Create a local web server using PHP and XAMPP May 11, 2023 pm 05:19 PM

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

How to modify the php.ini file in wamp How to modify the php.ini file in wamp Mar 20, 2023 pm 03:33 PM

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.

What should I do if xampp cannot execute php? What should I do if xampp cannot execute php? Mar 23, 2023 am 09:17 AM

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.

See all articles