Install Lighttpd + PHP5 + MySQL in Fedora14

Source: Internet
Author: User
Lighttpd is a secure, efficient, and standard-based web server designed for high-speed environments. This tutorial will teach you how to install Lighttpd + PHP5 (FastCGI mode) + MySQL on a Fedora14. I have tested it correctly. This will ensure you can work! 1 preface remarks in this tutorial, the user name I used is www. unix Lighttpd, which is a secure, efficient, and standard-based web server designed for high-speed environments. This tutorial will teach you how to install Lighttpd + PHP5 (FastCGI mode) + MySQL on a Fedora 14.
I have tested it correctly. This will ensure you can work! 1 preface remarks
In this tutorial, the user name I use is www.unixbar.net, and the IP address is 192.168.0.100. these settings may be different from yours. Therefore, you need to modify the settings. 1. install MySQL
[Root @ server ~] # Yum-y install mysql-server
Add auto-start for MySQL to enable MySQL to start with the system: [root @ server ~] # Chkconfig -- levels 235 mysqld on
[Root @ server ~] #/Etc/init. d/mysqld start set a password for the root user (otherwise anyone can access your MySQL database): [root @ server1 ~] # Mysql_secure_installationNOTE: running all parts of this script is recommended for all MySQL
Servers in production use! Please read each step carefully!
 
In order to log into MySQL to secure it, well need the current
Password for the root user. If youve just installed MySQL, and
You havent set the root password yet, the password will be blank,
So you shoshould just press enter here.
 
Enter current password for root (enter for none): <-- press ENTER.
OK, successfully used password, moving on...
 
Setting the root password ensures that nobody can log into the MySQL
Root user without the proper authorisation.
 
Set root password? [Y/n] <-- press ENTER.
 
New password: <-- enter your password
Re-enter new password: <-- repeat your password
Password updated successfully!
Reloading privilege tables ..
... Success!
 
By default, a MySQL installation has an anonymous user, allowing anyone
To log into MySQL without having to have a user account created
Them. This is intended only for testing, and to make the installation
Go a bit smoother. You shoshould remove them before moving into
Production environment.
 
Remove anonymous users? [Y/n] <-- press ENTER.
 
... Success!
 
Normally, root shoshould only be allowed to connect from localhost. This
Ensures that someone cannot guess at the root password from the network.
 
Disallow root login remotely? [Y/n] <-- press ENTER.
... Success!
 
By default, MySQL comes with a database named test that anyone can
Access. This is also intended only for testing, and shocould be removed
Before moving into a production environment.
 
Remove test database and access to it? [Y/n] <-- press ENTER.
 
-Dropping test database...
... Success!
-Removing privileges on test database...
... Success!
 
Reloading the privilege tables will ensure that all changes made so far
Will take effect immediately.
 
Reload privilege tables now? [Y/n] <-- press ENTER.
... Success!
 
Cleaning up...
 
All done! If youve completed all of the above steps, your MySQL
Installation shoshould now be secure.
 
Thanks for using MySQL!
 
[Root @ server1 ~] #3. install Lighttpd

The Liora official source contains the Lighttpd package by default, so we can directly install it using the following command:

[root@server ~]# yum -y install lighttpd

Create auto-start for Lighttpd so that Lighttpd can be started with the system

[root@server ~]# chkconfig --levels 235 lighttpd on[root@server ~]# /etc/init.d/lighttpd start

Now you can directly access http: // 192.168.0.100 in the browser to see the reserved page of Lighttpd:

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.