Linux Learning notes Apache PHP mysql +linux

Source: Internet
Author: User

1 #yum Remove httpd

2 #yum-y install httpd Php-common

Php-devel PHP-GD Php-mcrypt php-mbstring

Php-pear Php-bcmath php-dba Php-mhash PHP-MXL

3 #whereis httpd

4 #vi/etc/httpd/conf/httpd.conf

Find DocumentRoot modified to Documentroot/usr/local/htdocs

5#rpm-qa|grep-i MySQL

View MySQL

6 #yum remove-y mysql delete mysql

7#yum-y Install Php-mysql httpd-mannal mod_ssl mod_perl

Mod_auth_mysql Php-mcrypt PHP-GD Php-xml

Php-mbstring Php-idap php_pear Php_xmlrpc

MYQL-CONNECTOR-COBC Libdbi-dbd-mysql

8#yum Update Php-y <---Upgrade expansion pack

9 #yum update-y <--Upgrade Peripheral Resources

This command takes a long time.

Find Apache Location command

#whereis httpd

PHP configuration file

/etc/httpd/conf/httpd.conf

PHP Configuration file location
/etc/php.ini

View the CentOS version

Leb_release-a

Linux Learning notes Apache PHP mysql +linux

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.