Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql+apache+php for Linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to install mysql+apache+php in Linux". In daily operation, I believe many people have doubts about how to install mysql+apache+php in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install mysql+apache+php in Linux". Next, please follow the editor to study!

Linux installation: mysql+apache+php (transfer) [@ more@] installation steps:

1.mysql

Download the for linux rpm package for mysql on the following page

Http://www.mysql.com/downloads/down...3.52-1.i386.rpm

Http://www.mysql.com/downloads/down...3.52-1.i386.rpm

Save to / home/tmp directory

List of commands:

Cd / home/tmp

Rpm-ivh MySQL-3.23.52-1.i386.rpm # install mysql server

Rpm-ivh MySQL-client-3.23.52-1.i386.rpm # install mysql client

/ usr/mysql/safe_mysqld & # start mysql server

Mysql # runs the mysql client and opens remote access for root users. For debugging

Use mysql

Update user set host ='% 'where user =' root' and host' localhost'

Flush privileges

Quit

Mysql installation is complete at this point

2.apache

Download the source package for apache's for linux on the following page

Http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz

Save to / home/tmp directory

List of commands:

Cd / home/tmp

Tar-zxvf apache_1.3.26.tar.gz

Mv apache_1.3.26.tar.gz apache

Cd apache

. / configure-prefix=/usr/local/apache-enable-module=so

Make

Make install

Install apache to / usr/local/apache and configure apache to support dso mode

3.php

Download the source package for php's for linux on the following page

Http://www.php.net/get_download.php?df=php-4.2.3.tar.gz

Save to / home/tmp directory

List of commands:

Cd / home/tmp

Tar-zxvf php-4.2.3.tar.gz

Mv php-4.2.3.tar.gz php

Cd 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

Make

Make install

Cp php.ini-dist / usr/local/lib/php.ini

Install php to / usr/local/php in dso mode and set the configuration file directory to / usr/local/lib to enable mysql,xml support

At this point, the study on "how to install mysql+apache+php in Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report