Quick Install php/mysql_php Tutorial in Redhat

Source: Internet
Author: User
Make sure to use the system's own Apache (the most popular Web server platform on the UNIX platform) to find all the RPM packages starting with MySQL (the best combination with PHP) and PHP (the current mainstream development language)-mysql (and the best combination of PHP) from the installation CD, And then run
#rpm-IVH MySQL (and the best combination of PHP collocation) *.rpm PHP (as the current mainstream development language)-mysql (and PHP collocation of the best combination) *.rpm; MySQL (and PHP collocation of the best combination) _install_db; Service MySQL (the best combination of PHP collocation) start

Apache (the most popular Web server platform for UNIX platforms) + PHP (as the current mainstream development language):
[1] Install the all the component of "Web Server" group. If you had not installed "httpd" or if the PHP (as is now the mainstream development language) are 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 is now the mainstream development language)-mysql (and PHP collocation of the best combination) cooperation package would not be installed. Get the
RH8 Disc 3 and install the RPM package: "PHP (as the current mainstream development language)-mysql (and PHP collocation of the best combination) -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 (Best Mix with PHP):
[1] Install all the "Database Server" group. If you had not installed the MySQL (and PHP collocation of the best combination) 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 mix with PHP) _install_db
# service MySQL (and PHP collocation of the best combination) d start
# MySQL (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 of the contents to Apache (Unix platform's most popular Web server platform) s default document root,/var/www/html, and make sure the file "ind Ex.php (as the current mainstream development language) "is in the directory/var/www/html.

Now it's all in a single configuration file, in/etc/httpd/conf.d/php (as the mainstream development language now). conf

http://www.bkjia.com/PHPjc/508687.html www.bkjia.com true http://www.bkjia.com/PHPjc/508687.html techarticle make sure to use the system's own Apache (the most popular Web server platform on the UNIX platform) to find out all the best combinations of MySQL (and PHP collocation) and PHP from the installation CD (as the current mainstream development ...) .

  • 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.