Quick Install Php/mysql in Redhat

Source: Internet
Author: User
Keywords Quick Install Php/mysql in Redhat
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-mysql (the best combination with PHP) from the installation CD and run
#rpm-IVH MySQL (and the best combination of PHP collocation) *.rpm php-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:
[1] Install the all the component of "Web Server" group. If you had not installed "httpd" or if the PHP support was 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-mysql (and PHP collocation of the best combination) cooperation package won't be installed. Get the
RH8 Disc 3 and install the RPM package: "Php-mysql (Best Mix with PHP) -4.2.2-8.0.5.i386.rpm"
[3] Modify/etc/php.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 app:
[1] Extract any tools or applications written in PHP 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 "in Dex.php "is in the directory/var/www/html.

Now it's all in a separate configuration file, in/etc/httpd/conf.d/php.conf
  • 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.