PHP5 installation details

zhaozj2021-02-16  74

Take the PHP for Apache as cgi binary method as an example, I like this way. Take the installation directory C: / PHP as an example; [1] Remove the original PHP installation directory, unzip PHP-5.0.0-win32.zip to C: / PHP rename php.ini-dist for php.ini (with php4 Like) [2] Modify the httpd.conf file of Apache. Remove the original sentence of the original statement with PHP4. Use the following line instead: scriptalias / php / "c: / php /" addtype application / x-httpd-php .phpaction application / x-httpd-php "/ php-) modified PHP In .ini, remove the extension = php_mysql.dll ";", the default is that it is the same if the PHP for apache as module is true. Modify apache's httpd.confloadModule php5_module c: /php/php5apache.dlladdmodule mod_php5.caddtype application / x-httpd-php .php But copy all DLL files to c: /winnt/system32, php.ini with PHP . EXE has tried two ways to Winnt. PHP4 written program can run!

For Apache2 settings: 1, do not addModule MOD_PHP5.C2, loadModule php5_module c: / php/php5apache2.dll, is php5apache2.dll3, you need to put the DLL file under the PHP directory (the following file does not have to copy: php5Activescript.dll, php5apache.dll PHP5APACHE_HOOKS.DLL, PHP5APACHE2.DLL, PHP5IPI.DLL, PHP5NSAPI.DLL) Thank you for your directory (98, ME is system):

I have been tested. no problem!

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

New Post(0)