Install and configure Apache, PHP, and MySQL in RedHat8.0

Source: Internet
Author: User
I. Prepare related software Apache: httpd-2.0.40.tar.gzPHP: php-4.3.0.tar.gzMySQL: mysql-3.23.56.tar.gz premise is that your machine already has complete GCC and its related environment, the best way of course is ...... Hey, hey ,... RedHat is fully installed. If RedHat is fully installed, Apache, PHP, and MySQL are available, so you do not have to prepare related software.
Apache: httpd-2.0.40.tar.gz
PHP: php-4.3.0.tar.gz
MySQL: mysql-3.23.56.tar.gz
The premise is that your machine already has a complete GCC and its related environment. The best way is of course ...... Hey, hey ,... Red Hat is fully installed. If Red Hat is fully installed, Apache, PHP, and MySQL will actually be available, so you don't have to look down.
I installed it in Red Hat 8.0, but the following content applies to other versions of Red Hat.
Ii. Start Installation
1. Install MySQL
1) # tar zxvf mysql-3.23.56.tar.gz
2) enter the MySQL decompression path
3) #./configure -- prefix =/usr/local/mysql
4) # make, make install
Note: If the installation fails in this way, use the RPM package to install it. If you have installed a previous version of MySQL, first Delete: # rpm-e mysql package name
5) test
Start MySQL: Command: mysqld start
Show Database: mysqlshow
2. install Apache
Installation File Path:/usr/local/apache/
Installation Process:
#./Configure -- prefix =/usr/local/apache -- enable-shared = max -- enable-mobile = so
# Make; make install
For more information about Apache configuration, see other documents.
3. install PHP
#./Configure -- prefix =/usr/local/php \
-- With-apxs =/usr/local/apache/bin/apxs \
-- With-config-file-path =/usr/local/lib \
-- Enable-track-vars \
-- With-xml \
-- With-mysql \
-- Enable-ftp
-- Enable-debug = no
# Make
# Make install
# Cp php. ini-dist/usr/local/lib/php. ini
OK, It is finished. This is installed in DSO mode, so you can add and delete some modules in PHP at any time without re-installing PHP.
Related Article

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.