Debian: Install php4-Debian, the Linux release technology. For more information, see. 1 Installation
Apt-get install apache php4 php4-gd php4-mysql mysql-server mysql-client
2. Configure Apache to provide php support
Apache does not support php when it is installed. When you click Connect with A. php script, the browser will download the Script :-(
Modify/etc/apache/httpd. conf to provide php support. Run:
# Nano/etc/apache/httpd. conf
Find the following line: # LoadModule php4_module/usr/lib/apache/1.3/libphp4.so
Remove the well number before this line so that apache can use this libphp4.so module.
Save and exit nano.
Restart Apache and run:
# Apachecrl restart
Note: Write a test file under/var/www:
Test whether it is available?
3. Modify the MySQL password
Because MySQL does not have a password by default, you must modify your password for security reasons!
Let's see if your mysql has no password:
# Mysqladmin version
If you can see the mysql version information, it proves that MySQL currently has no password.
Run mysqladmin password xxxxxx to change the password.
Here, xxxxxx is your new password.
Now you need to run mysqladmin version -- user = root -- pass, and then enter the password to view the version number and other information.
To change the password for a long time, you need to modify the configuration file/etc/mysql/my. cnf.
# Nano/etc/mysql/my. cnf
Find this line: # password = my_password
Remove the well number before it, and set my_password to your own password.
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