How to install php using suse
This article will explain in detail how to use suse to install php, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Suse install php method: 1, install Libxml;2 through "make install", install "php-5.5.14.tar.gz"; 3, copy configuration file; 4, modify Apache2 and configure httpd.conf to support PHP;5, restart Apache.
This article operating environment: linux5.9.8 system, PHP5.5.14 version, DELL G3 computer
How does suse install php in detail?
Install php under suse linux and make apache support php
1. Install Libxml libxml2-2.7.6.zip
# unzip libxml2-2.7.6.zip#. / configure-- prefix=/usr/local/services/libxml2-- with-zlib=/usr/local/services/zlib/ # make # make install
two。 Install php-5.5.14.tar.gz
# tar-zxvf php-5.5.14.tar.gz #. / configure-prefix=/usr/local/services/php/-with-mysql-with-apxs2=/usr/local/services/apache2/bin/apxs-with-libxml-dir=/usr/local/services/libxml2
Note:-- there are no parameters after with-mysql, because mysql is installed using the rpm package
3. Copy configuration fil
# cp php.ini-production / usr/local/services/php/lib/php.ini
And modify short_open_tag = On
4. Modify Apache2 configuration httpd.conf to support PHP
Insert the following in AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps
5. Create a test file with the extension PHP
6. Restart Apache
# / usr/local/services/apache2/bin/apachectl restart on how to install php using suse to share here, I hope the above content can be helpful to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.