PHP installation

xiaoxiao2021-03-06  51

Under the premise of installing PHP, Apache must specify --Nable-So or --Nable-module = SOPHP: (PHP-5.0.0) ./ Configure --prefix = / Home / PHP5 --with-apxs2 = / Web / bin / apxs --with-mysql = / var / db / mysql --with-xml --with-config-file-

PATH = / usr / local / lib --with-gd --with-jpeg-dir = / usr / lib --with-zlib-dir = / usr / lib

Plus these parameters --with-gd --with-jpeg-dir = / usr / lib --with-zlib-dir = / usr / lib is to install the Snort invasion scanning system, allowing PHP to support the correct display of graphs ( Graph)

First install apache, back PHP

If the two have this: "LoadModule PHP5_Module Modules / libphp5.so", then fill the following two sentences: addtype application / x-httpd-php .php address / x-httpd-php-source .phps

If the two are completely installed, there is no "loadmodule php5_module modules / libphp5.so" in Apache, just under this directory under the original file of the PHP: PHP-5.0.0 / libs / libphp5.so, take libphp5.so to Apache installed in this directory, and in the Apache master configuration file, httpd.conf plus "LoadModule PHP5_MODULE MODULES / LIBPHP5.SO". Then add two sentences: addtype application / x-httpd-php .phpaddtype application / x-httpd-php-source .phps

Finally, it should be in the form: # Example: # LoadModule foo_module modules / mod_foo.soLoadModule php5_module modules / libphp5.so # AddType application / x-httpd-php .phpAddType application / x-httpd-php-source .phps

In this way, Apache can fully support PHP ^^

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

New Post(0)