Quick php/mysql_PHP installation in Redhat

Source: Internet
Author: User
Install phpmysql quickly in Redhat. Make sure that you use the apache (the most popular WEB server platform on the Unix platform) that comes with the system, and find all MySQL (the best combination with PHP) from the installation disc) and php (as the mainstream development, ensure that apache (the most popular WEB server platform on Unix) is used ), find out all MySQL (the best combination with PHP) and php (as the mainstream development language) from the installation CD-MySQL (the best combination with PHP) and then run
# Rpm-ivh MySQL (the best combination with PHP )*. rpm php (as the 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 (the most popular WEB server platform on Unix) + php (as the 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 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 mainstream development language)-MySQL (the best combination with PHP) cooperation package will not be installed. Get
RH8 disc 3 and install the rpm package: "php (as the mainstream development language)-MySQL (the best combination with PHP)-4.2.2-8.0.5.i386.rpm"
[3] Modify/etc/php (as the 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 (best combination with PHP) _ install_db
# Service MySQL (the best combination with PHP) d start
# MySQL (best combination with PHP) admin-u root password

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

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

Middleware (the most popular WEB server platform on the Unix platform), find all MySQL (the best combination with PHP) and php (as the mainstream development now...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.