Home > Backend Development > PHP Tutorial > Tutorial on quickly installing php/mysql_PHP in Redhat

Tutorial on quickly installing php/mysql_PHP in Redhat

WBOY
Release: 2016-07-13 17:32:40
Original
1097 people have browsed it

Make sure to use the system's own apache (the most popular WEB server platform on Unix platform) , and find out all MySQL (the best combination with PHP) and php from the installation CD (as the current mainstream development language)-MySQL(the best combination with PHP) rpm package starting with , and then run
#rpm -ivh MySQL (The best combination with PHP) *.rpm php (as the current mainstream development language) -MySQL (The best combination with PHP) *. rpm; MySQL(The best combination with PHP)_install_db; service MySQL(The best combination with PHP) start

apache(Unix The most popular WEB server platform) + php(as the current mainstream development language):
[1] Install the all the component of "Web Server" group. If you have not installed "httpd" or if the php(as the current mainstream development language) support is not installed, you can just execute "redhat-config-packages" to get a user-friendly GUI to Add/ Remove any packages.
[2] By default, the php(as the current mainstream development language)-MySQL(the best combination with PHP) cooperation package will not be installed. Get the
RH8 disc 3 and install the rpm package: "php(as the current mainstream development language)-MySQL(the best combination with PHP)-4.2.2-8.0.5.i386.rpm"
[3] Modify /etc/php(as the current mainstream development language).ini, change "register_globals = Off" to "register_globals = On"

MySQL(The best combination with PHP):
[1] Install all the components of "Database Server" group. If you have not installed the MySQL(The best combination with PHP) server, you can just use "redhat-config-packages" to add it.
(RH8 disc2 and disc3 are needed)
[ 2] Exceute the following commands:
# MySQL(The best combination with PHP)_install_db
# service MySQL(The best combination with PHP)d start
# MySQL(The best combination with PHP)admin -u root password password

Installation of php(as the current mainstream development language) app:
[1] Extract any tools or applications written in php(as the current mainstream development language) to a directory.
[2] Copy all the contents to apache(The most popular WEB server platform on Unix platform)s default document root, /var/www/html, and make sure the file "index.php(as the current mainstream development language) " is in the directory /var/www/html.

Now a separate configuration file is used, in /etc/httpd/conf.d/php(as the current mainstream development language ).conf

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508687.htmlTechArticleMake sure to use the apache that comes with the system (the most popular WEB server platform on Unix platform), find it from the installation CD All use MySQL (the best combination with PHP) and php (as the current mainstream development...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template