Apache + PHP installation

xiaoxiao2021-03-06  67

Program version Apache_2.0.50-win32-x86-no_ssl.exephp-4.3.6-win32.zip

Installation steps: 1. Install the Apache2. Unzip PHP to C: /PHP3.Apache Configuration Add: loadModule PHP4_Module "D: /php/php4apache2.dll" Add: addtype application / x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc .iz 4. Add a virtual directory alias / mantis / "c: / mantis /" Options Indexes Followsymlinks Allowoverride All ORDER ALLOW, DENY Allow from all 5. Add a test page New file info.php to c: / mantis /, the content is as follows: 6. Open the test page http://localhost/mantis/info.php, showing PHP Some information indicates successful settings! 7. Default page settings: change the settings of the virtual directory to: alias / mantis / "c: / mantis /" Options -indexes FollowSymlinks allowoverride all Order Allow Deny Allow from all is also disabled display directory. Find DirectoryIndex, followed by the server's default home page name, the server will sequentially find these files in the directory and will be displayed first. Add index.php, save, restart. 8. Configure the default language: Apache set the default language to Western European language, find "AddDefaultCharset", change it to GB2312 later. The deployment is restarted. Maybe your browser is still garbled at this time, that is because the browser remembers the settings of this page, empty the history of the browser and cache!

转载请注明原文地址:https://www.9cbs.com/read-119873.html

New Post(0)