Home > Article > Backend Development > Detailed explanation of steps to configure PHP server environment
Note that if PHP.ini is placed under C:/WINDOWS (or C:/WINNT), there is no need to configure PHPIniDir Then, open with Notepad: D:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf Add a line at the end of the file: Include conf/extra/httpd-php5.conf The fourth step is to test the PHP server configuration and check whether the PHP environment is successfully established? Restart Apache and open the directory: D:/Program Files/Apache Software Foundation/Apache2.2/htdocs Create a new file: index.php Input content:
Open the browser and check http://localhost or http://127.0.0.1. php server environment setup and configuration (apache and iis two methods) How to build a php server environment Configuring php server environment under ubuntu php and mysql server configuration instructions php class to get server information An alternative way to obtain server-side information using php php code to get server information |