search
HomeBackend DevelopmentPHP TutorialWampServer Version 25 bug modification

To do PHP development, you need to install the PHP operating environment. For convenience, many integrated environments can be downloaded online. Recently, I found some bugs using WampServer Version 2.5. I would like to share how to modify them. Experts please stop by.

1. echo date('Y-m-d H:i:s');

You will find that the output time is different from the system time. Open php.ini, search for date, and modify the following code:

date.timezone = ASIA/ shanghai

  Save and restart Apache. (This is a little knowledge, not a BUG)

2. Open httpd.conf through the shortcut in the lower right corner, and you will find that this version of Apacheconfiguration file does not wrap automatically

Solution: Find the location of the Apacheconfiguration file directory, open the httpd.conf file in the EditPlus tool, then copy and paste it into the one without line breaks, and save it. Restart OK.

3. After clicking the directory on the localhost homepage, you will find that the jump path is wrong. Look at the link and find that localhost is missing

Solution: Open index.php in the www directory, search for suppress_localhost, and modify the found line of code to the following Code:

  $projectContents .= '

  • '.$file. '
  • ';

     Note (plus localhost/), OK.

    The above introduces the WampServer Version 25 bug modifications, including shortcuts and Apache content. I hope it will be helpful to friends who are interested in PHP tutorials.

    Statement
    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
    mysql为什么连接不上localhostmysql为什么连接不上localhostAug 10, 2023 pm 02:55 PM

    mysql连接不上localhost的原因有mysql服务未启动、mysql端口被占用和MySQL配置文件问题。详细介绍:1、在Windows系统中,可以通过在命令提示符下输入“services.msc”来打开服务管理器,然后找到mysql服务,确保其状态为“运行中”。在Linux系统中,可以使用“services.msc”命令来检查和控制服务状态;2、可以通过打开命令等等。

    图文详解apache2.4+php8.0的安装配置方法图文详解apache2.4+php8.0的安装配置方法Dec 06, 2022 pm 04:53 PM

    本文给大家介绍如何安装apache2.4,以及如何配置php8.0,文中附有图文详细步骤,下面就带大家一起看看怎么安装配置apache2.4+php8.0吧~

    Linux apache怎么限制并发连接和下载速度Linux apache怎么限制并发连接和下载速度May 12, 2023 am 10:49 AM

    mod_limitipconn,这个是apache的一个非官方模块,根据同一个来源ip进行并发连接控制,bw_mod,它可以根据来源ip进行带宽限制,它们都是apache的第三方模块。1.下载:wgetwget2.安装#tar-zxvfmod_limitipconn-0.22.tar.gz#cdmod_limitipconn-0.22#vimakefile修改:apxs=“/usr/local/apache2/bin/apxs”#这里是自己apache的apxs路径,加载模块或者#/usr/lo

    apache版本怎么查看?apache版本怎么查看?Jun 14, 2019 pm 02:40 PM

    查看​apache版本的步骤:1、进入cmd命令窗口;2、使用cd命令切换到Apache的bin目录下,语法“cd bin目录路径”;3、执行“httpd -v”命令来查询版本信息,在输出结果中即可查看apache版本号。

    nginx,tomcat,apache的区别是什么nginx,tomcat,apache的区别是什么May 15, 2023 pm 01:40 PM

    1.Nginx和tomcat的区别nginx常用做静态内容服务和代理服务器,直接外来请求转发给后面的应用服务器(tomcat,Django等),tomcat更多用来做一个应用容器,让javawebapp泡在里面的东西。严格意义上来讲,Apache和nginx应该叫做HTTPServer,而tomcat是一个ApplicationServer是一个Servlet/JSO应用的容器。客户端通过HTTPServer访问服务器上存储的资源(HTML文件,图片文件等),HTTPServer是中只是把服务器

    超细!Ubuntu20.04安装Apache+PHP8环境超细!Ubuntu20.04安装Apache+PHP8环境Mar 21, 2023 pm 03:26 PM

    本篇文章给大家带来了关于PHP的相关知识,其中主要跟大家分享在Ubuntu20.04 LTS环境下安装Apache的全过程,并且针对其中可能出现的一些坑也会提供解决方案,感兴趣的朋友下面一起来看一下吧,希望对大家有帮助。

    localhost打不开怎么办localhost打不开怎么办Nov 07, 2023 pm 02:47 PM

    解决办法:1、检查服务器的运行状态,并确保它正在监听正确的端口;2、尝试暂时禁用防火墙或安全软件,然后重新尝试访问localhost;3、检查操作系统的hosts文件,确保localhost的解析正确;4、尝试重启网络适配器或重新配置网络连接;5、尝试更改本地服务器使用的端口,或关闭其他占用相同端口的程序;6、尝试在hosts文件中手动添加对应的IP地址和域名等等。

    php站用iis乱码而apache没事怎么解决php站用iis乱码而apache没事怎么解决Mar 23, 2023 pm 02:48 PM

    ​在使用 PHP 进行网站开发时,你可能会遇到字符编码问题。特别是在使用不同的 Web 服务器时,会发现 IIS 和 Apache 处理字符编码的方法不同。当你使用 IIS 时,可能会发现在使用 UTF-8 编码时出现了乱码现象;而在使用 Apache 时,一切正常,没有出现任何问题。这种情况应该怎么解决呢?

    See all articles

    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 agoBy尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. Best Graphic Settings
    2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. How to Fix Audio if You Can't Hear Anyone
    2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    EditPlus Chinese cracked version

    EditPlus Chinese cracked version

    Small size, syntax highlighting, does not support code prompt function

    MinGW - Minimalist GNU for Windows

    MinGW - Minimalist GNU for Windows

    This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    PhpStorm Mac version

    PhpStorm Mac version

    The latest (2018.2.1) professional PHP integrated development tool

    SublimeText3 Linux new version

    SublimeText3 Linux new version

    SublimeText3 Linux latest version