Ftp server configuration and Service 2

Source: Internet
Author: User
Ftp server configuration and Service 2-Linux Enterprise Application-Linux server application information. The following is a detailed description. Generate a pure-ftpd service management script
Go to the extract directory of pure-ftpd and edit redhat in the contrib subdirectory. init file, find the statement fullpath =/usr/local/sbin/$ prog, change it to fullpath =/usr/local/pureftpd/sbin/$ prog and then find the statement pureftpwho =/usr/local/sbin/pure-ftpwho and change it to pureftpwho =/usr/local. /pureftpd/sbin/pure-ftpwho
Run the following command to copy the redhat. init file to the/etc directory and rename it as pure-ftpd.
Cp contrib/redhat. init/etc/init. d/pure-ftpd
Run the following command to set the file to Executable
Chmod + x/etc/init. d/pure-ftpd
Run the following command to add the pure-ftpd service to the system so that pure-ftpd can run automatically as the system starts.
Chkconfig -- add pure-ftpd
Configure anonymous user login Environment
If the ftp server is required to allow anonymous logon, you need to create a system user named ftp, and the main directory of this account must exist. The default spure-ftpd has already created an ftp account when it is installed, but the default home directory/var/ftp for this account does not exist, so you need to create a new one. Mkdir/var/ftp
If you want anonymous users to upload files to the ftp server, you also need the ftp SYSTEM account to have write permission to the main directory. You can use this method chown ftp: ftp/var/ftp
Zend Optimizer Installation
Webpureftp pure-ftpd's virtual user management software. If Zend Optimizer is not installed and webpureftpd is running, only php program garbled characters can be seen. Www.zend.com
Tar zxvf zendoptimizer -##
Cd to the decompressed directory cd zendoptimizer ....
Run the installation script./install. sh
Then, according to the window prompt .....
NOTE: If selinux is enabled, The selinux error message is displayed on the virtual console before the system when the apache server is started after installation. The solution is as follows:
Rm-f/etc/php. ini
Cp/usr/local/Zend/etc/php. ini/etc/
Chcon-u system_u/etc/php. ini
Chcon-t shlib_t/usr/local/Zend/lib/ZendExtensionManager. so
Chcon-t shlib_t/usr/local/Zend/lib/Optimizer-.../php-4.3.x/ZendOptimizer. so
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.