VMware Images:
|
The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page 6
17 Apache/PHP5/RubyNow we install Apache: apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert Next we install PHP5 and Ruby (both as Apache modules): apt-get install libapache2-mod-php5 libapache2-mod-ruby php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl Next we edit /etc/apache2/mods-available/dir.conf: vi /etc/apache2/mods-available/dir.conf and change the DirectoryIndex line:
Now we have to enable some Apache modules (SSL, rewrite, suexec, and include): a2enmod ssl Reload the Apache configuration: /etc/init.d/apache2 force-reload In the next chapter (17.1) we are going to disable PHP (this is necessary only if you want to install ISPConfig on this server). Unlike PHP, Ruby is disabled by default, therefore we don't have to do it.
17.1 Disable PHP Globally(If you do not plan to install ISPConfig on this server, please skip this section!) In ISPConfig you will configure PHP on a per-website basis, i.e. you can specify which website can run PHP scripts and which one cannot. This can only work if PHP is disabled globally because otherwise all websites would be able to run PHP scripts, no matter what you specify in ISPConfig. To disable PHP globally, we edit /etc/mime.types and comment out the application/x-httpd-php lines: vi /etc/mime.types
Edit /etc/apache2/mods-enabled/php5.conf and comment out the following lines: vi /etc/apache2/mods-enabled/php5.conf
Then restart Apache: /etc/init.d/apache2 restart
18 ProftpdIn order to install Proftpd, run apt-get install proftpd ucf You will be asked a question: Run proftpd: <-- standalone For security reasons add the following lines to /etc/proftpd/proftpd.conf (thanks to Reinaldo Carvalho; more information can be found here: http://proftpd.org/localsite/Userguide/linked/userguide.html): vi /etc/proftpd/proftpd.conf
ISPConfig expects the configuration to be in /etc/proftpd.conf instead of /etc/proftpd/proftpd.conf, therefore we create a symlink (you can skip this command if you don't want to install ISPConfig): ln -s /etc/proftpd/proftpd.conf /etc/proftpd.conf Then restart Proftpd: /etc/init.d/proftpd restart
|



Recent comments
19 hours 44 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 8 hours ago