Linux + Apache + Mysql + PHP installation notes

Source: Internet
Author: User
# Cpusrlocalmysqlsupport-filesmysql.serveretcrc.dinit.dmysqld # chkconfig -- addmysqld use ntsysv settings to enable mysql to run automatically at each startup. Now that mysql is installed, you can start your mysql service # etcrc. dinit. dmysqldstart.

# Cp/usr/local/mysql/support-files/mysql. server/etc/rc. d/init. d/mysqld # chkconfig -- add mysqld use ntsysv to enable mysql to run automatically at each startup. Now that mysql is installed, you can start your mysql service #/etc/rc. d/init. d/mysqld start.

# Cp/usr/local/mysql/support-files/mysql. server/etc/rc. d/init. d/mysqld

# Chkconfig -- add mysqld

Set ntsysv to enable mysql to run automatically at each startup..

Now that mysql is installed, you can start your mysql service.

#/Etc/rc. d/init. d/mysqld start

The following steps are critical,

# Ln-s/usr/local/mysql/lib/mysql/usr/lib/mysql
# Ln-s/usr/local/mysql/include/mysql/usr/include/mysql

You can skip this step. You can customize the myslq library file path when compiling other software, but I still like to link the library file to the default location, so that you are compiling PHP like, when using software such as Vpopmail, you do not need to specify the mysql library file address.

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.