In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Suse how to install php environment, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Suse installation method of php environment: 1, install apache;2 through make install, install mysql;3 using mysql non-RPM binary installation package, install php dependent library; 4, install php;5, modify apache configuration file; 6, start apache.
This article operating environment: SUSE Linux Enterprise 15 system, php5.2.6 version, DELL G3 computer.
How does suse install the php environment?
Build apache+php+mysql environment on SuSE Linux
1. Install apache
Apache installation package: httpd-2.2.9.tar.gz, the installation steps are as follows:
1). / configure-- prefix=/usr/local/httpd-2.2.9
2) make
3) make install
two。 Install mysql
Use mysql non-RPM binary installation package directly, such as mysql-5.1.36-linux-i686-glibc23.tar.gz. The specific steps are as follows:
Shell > groupadd mysqlshell > useradd-g mysql mysqlshell > cd / usr/localshell > gunzip
< /path/to/mysql-VERSION-OS.tar.gz | tar xvf -shell>Ln-s full-path-to-mysql-VERSION-OS mysqlshell > cd mysqlshell > chown-R mysql .shell > chgrp-R mysql .shell > scripts/mysql_install_db-- user=mysqlshell > chown-R root .shell > chown-R mysql datashell > bin/mysqld_safe-- user=mysql &
3. Install php dependent libraries
Libxml2,expat,gd,gettext, these dependent libraries are installed using the standard automake installation method.
4. Install php
Php installation package: php-5.2.6.tar.gz, the installation steps are as follows:
1). / configure-prefix=/usr/local/php-5.2.6-- enable-mbstring=LANG-- with-mysql=/usr/local/mysql-- with-gd=/usr/local/gd-- with-gettext=/usr/local/gettext-- with-libxml-dir=/usr/local/libxml2-- with-libexpat-dir=/usr/local/expat-- with-apxs2=/usr/local/httpd/bin/apxs
The parameter-with-apxs2=/usr/local/httpd/bin/apxs is to generate the libphp5.so file, so it is necessary.
2) make
3) make install
When the installation is complete, copy php.ini-dist to / usr/local/php/lib/, and rename it to php.ini. Basically, the installation of PHP is successful. If there is an error in the middle, there is usually no error except when you do not select the right option during configuration.
5. Modify the apache configuration file httpd.conf by adding the following two lines:
AddType application/x-httpd-php .php .phtmlAddType application/x-httpd-php-source .phps
And make sure you have the following sentence in the file that you don't just add after all LoadModule:
LoadModule php5_module modules/libphp5.so
6. Start apache
# / usr/local/httpd/bin/apachectl restart
After reading the above, have you mastered how suse should install the php environment? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.