DebianlinuxU disk installation and Apache2mysql5.0php5 Configuration
Source: Internet
Author: User
DebianlinuxU disk installation and Apache2mysql5.0php5 configuration-Linux Release Technology-Debian information. For more information, see the following. USB flash disk m or above
Ftp://ftp.debian.org/debian/dist... d-media/boot.img.gz
Zcat boog.img.gz/dev/sda
Businesscard. iso
Aptitude install ssh-server
Rcconf apt-get install rcconf is similar to setup in redhat.
Vsftpd apt-get install vsftpd ftp Server
The IP address of the Nic In debian is configured in the/etc/network/interfaces file. When debian is used for the first time, debian is a great release version, which is better than previous releases.
A text editing tool in nanoLinux is more convenient than vi.
Debian + Apache 2 + Mysql 5 + Php 5 installation Configuration
If you are using Debian/Linux, you can easily use apt-get to install AMP.
Configure Apache2 default site
Vi/etc/apache2/sites-enabled/000-default
Add a row
RedirectMatch ^ // apache2-default/
Modify the master configuration of Apache2
Vi/etc/apache2/apache2.conf
To change:
Include module configuration:
Include/etc/apache2/mod-enabled/*. load
Include/etc/apache2/mod-enabled/*. conf
Also:
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. phps
Restart Apache2
/Etc/init. d/apache2 reload
Configure PHP 5 now
Vi/etc/php5/apache2/php. ini
Php5 does not support Mysql by default. To enable it, modify it.
Extension = mysql. so
Set the Mysql Root Password
The root user of Mysql installed by default has no password, which is dangerous. We can add a password for it.
Mysqladmin-uroot password 'abc123'
Here, abc123 is your password.
You can also use the following command to set the password:
Mysql-u root mysql
Mysql> update user set password = password ('pass') whereuser = 'root ';
Modify/etc/mysql/my. cnf:
# Nano/etc/mysql/my. cnf
Add a line "default-character-set = gbk" under [mysqld] to correctly search for Chinese characters. Otherwise, an error occurs when you query a single Chinese character.
Create a library and its users for the site to be set up
Mysql-u root-p mysql
Mysql> create database drupal;
Mysql> use drupal;
Mysql> grant all on drupal. * to drupal_user @ localhost;
Mysql> use mysql;
Database changed
Mysql> update user set password = password ('pass') where user = 'drupal _ user ';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Mysql> \ q;
Mysqladmin reload
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