Ubuntu13.04 install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings

Source: Internet
Author: User
Tags form post ssh server
Recently, all the company servers have installed LUbuntu13.04 desktop web Services. Write down for easy reference. First, let's introduce the running environment: server address: 192.168.0.100 Operating System: Lubuntu13.04 (Please desktop, use less resources, software installation and settings) 1. install LAMPServer (the new software manager is installed in Lubuntu by default, and I still think this is more comfortable than the Ubuntu Software Center) and install it using group labels

Recently, all servers in the company have installed LUbuntu 13.04 desktop web Services. Write down for easy reference.

First, we will introduce the runtime environment:

  • Server address: 192.168.0.100
  • Operating System: Lubuntu 13.04 (Please use the desktop with less resources and software installation and setup)

1. Install LAMP Server (Lubuntu is installed with the new software manager by default, and I still think it is more comfortable than the Ubuntu Software Center) and install it using the group tag. Versions earlier than 10.04 have group tags. Currently, only one command can be run on the terminal.

sudo apt-get install tasksel

Install lamp:

sudo apt-get install lamp-server

You will be asked to set the mysql password halfway through.
For remote hosts, I also install the ssh server:

sudo apt-get install ssh-server

2. Install vsftpd:

sudo apt-get install vsftpd

3. Install phpmyadmin

sudo apt-get install phpmyadmin

During the installation process, you need to select the Support Program: Select both apache httpd and set the password.

4. Install webmin directly on the official website. Visit webmin.cn to download the DEB installation package. Double-click the installation package or run the command.

The installer is complete.

Phpmyadmin access address: http: // 192.168.0.100/phpmyadmin (your host address may be different, so you may need to modify 192.168.0.100 to your host address)

Webmin access address: https: // 192.168.0.100: 10000. Change it to your host address.

5. Set the phpmyadmin database upload limit of 2 MB:

sudo vi /etc/php5/apache2/php.ini

  1. Search for post_max_size, which is the maximum value that can be received by the form POST to PHP, including all values in the form. The default value is 8 Mb. You need to change it.
  2. Find File Uploads. First, check whether file_uploads = on is allowed to upload files over HTTP. ON is enabled by default. Upload_tmp_dir;
  3. Find upload_max_filesize; that is, the maximum file size that can be uploaded. The default value is 2 MB.
  4. If you want to upload a file larger than 8 Mb, you can set only the above four items. It is best to set the following parameters:
  • Query max_execution_time = 600; maximum time (in seconds) for running each PHP page. The default value is 30 seconds.
  • Max_input_time = 600; maximum time required for receiving data on each PHP page. The default value is 60 seconds.
  • Memory_limit = 8 M; maximum memory consumed by each PHP page. The default value is 8 M.

Restart apache:
/Etc/init. d/apache2 restart

Related Article

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.