安装apache2.2.22配置php5.4(具体操作步骤)
修改 apache2.2/httpd.conf 配置文件,让apache能够解析php文件
#修改监听端口
Listen 8011
#在LoadModule的最后一段后面添加下面一句话
LoadModule php5_module "E:/LAMP/php5.4/php5apache2_2.dll"
#修改服务器网站目录为 E:/LAMP/www
DocumentRoot "E:/LAMP/www"
#同时还有一个地方要改
#在
DirectoryIndex index.php index.html
#添加可执行的文件在 AddType application/x-gzip .gz .tgz 后面添加下面两句话
AddType application/x-httpd-php .php .phtml
PHPIniDir "E:/LAMP/php5.4"
修改 php5.4/php.ini-production 配置文件
先将php.ini-production文件重命名为php.ini
;设置php的扩展库路径,找到 ; extension_dir = "ext",在下面添加以下一句话
extension_dir = "E:/LAMP/php5.4/ext"
;开启php扩展库
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;将上面四句话前面的分号去掉
;设置session临时保存路径,找到;session.save_path = "/tmp",在下面添加以下一句话(路径可以自由设置)
session.save_path = "E:/LAMP/php5.4/session_temp"
;同样cookie临时保存路径
session.cookie_path = "E:/LAMP/php5.4/session_temp"
配置完之后,再将 E:LAMPphp5.4ext 目录下的
php_mysql.dll 和 php_mysqli.dll
两个文件复制粘贴到“C:WindowsSystem32”目录中,
如果你的操作系统是win7x64位的,则复制粘贴到“C:WindowsSysWOW64”目录中。
ok,现在重启一下你的apache,看看是不是能用了。
测试运行一下phpmyadmin,看看能不能运行。如果能正常运行,则大功告成了。
注意:这里没有提供mysql的安装方法。之前没有安装mysql的话,自己另外百度去吧。

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

1. First open DingTalk. 2. Open the group chat and click the three dots in the upper right corner. 3. Find my nickname in this group. 4. Click to enter to modify and save.

If you have successfully downloaded the installation file of Baidu Netdisk, but cannot install it normally, it may be that there is an error in the integrity of the software file or there is a problem with the residual files and registry entries. Let this site take care of it for users. Let’s introduce the analysis of the problem that Baidu Netdisk is successfully downloaded but cannot be installed. Analysis of the problem that Baidu Netdisk downloaded successfully but could not be installed 1. Check the integrity of the installation file: Make sure that the downloaded installation file is complete and not damaged. You can download it again, or try to download the installation file from another trusted source. 2. Turn off anti-virus software and firewall: Some anti-virus software or firewall programs may prevent the installation program from running properly. Try disabling or exiting the anti-virus software and firewall, then re-run the installation

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

Douyin Blue V certification is the official certification of a company or brand on the Douyin platform, which helps enhance brand image and credibility. With the adjustment of corporate development strategy or the update of brand image, the company may want to change the name of Douyin Blue V certification. So, can Douyin Blue V change its name? The answer is yes. This article will introduce in detail the steps to modify the name of the enterprise Douyin Blue V account. 1. Can Douyin Blue V change its name? You can change the name of Douyin Blue V account. According to Douyin’s official regulations, corporate Blue V certified accounts can apply to change their account names after meeting certain conditions. Generally speaking, enterprises need to provide relevant supporting materials, such as business licenses, organization code certificates, etc., to prove the legality and necessity of changing the name. 2. What are the steps to modify the name of corporate Douyin Blue V account?

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

The WeChat clone function of Huawei mobile phones means that you can log in to two WeChat accounts on your mobile phone at the same time, and can realize the isolated use of the two WeChat accounts. This feature can help users manage work and personal life more conveniently and avoid confusion. The following will introduce in detail how to operate WeChat avatar on Huawei mobile phones. Step 1: Enter the phone settings. First, open the home screen of your Huawei phone, find the "Settings" application on the desktop, and click to enter. Step 2: Find the "Double Open Apps" function in the settings interface, slide down to find the "Double Open Apps" option, and click to enter

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple
