Sed -i "s/ request_terminate_timeout =.*/request_terminate_timeout = 60/" /etc/php/5.6/fpm/pool.d/www.conf Sed -i "s/ date.timezone.*/date.timezone = UTC/" /etc/php/5.6/fpm/php.ini */display_errors = Off/" /etc/php/5.6/fpm/php.ini */error_reporting = E_ALL \& ~E_NOTICE \& ~E_STRICT \& ~E_DEPRECATED/" /etc/php/5.6/fpm/php.ini Please note: We are suppressing PHP error output here by setting these options to production values Sed -i "s/ date.timezone.*/date.timezone = UTC/" /etc/php/5.6/cli/php.ini Configure sessions directory permissionsĬhmod +t /var/lib/php/sessions Install Apache and PHP-FPMĪpt-get install -y apache2 apache2-utils php5.6-fpm */display_errors = On/" /etc/php/5.6/cli/php.ini */error_reporting = E_ALL/" /etc/php/5.6/cli/php.ini Systemctl restart memcached Update PHP CLI configuration Mv composer.phar /usr/local/bin/composer Install and configure Memcached Sed -i "s/#ClientAliveCountMax 3/ClientAliveCountMax 3/" /etc/ssh/sshd_config Install PHP5.6 and common PHP packagesĪpt-get install -y php5.6-cli php5.6-dev php5.6-pgsql php5.6-sqlite3 php5.6-gd php5.6-curl php5.6-memcached php5.6-imap php5.6-mysql php5.6-mbstring php5.6-xml php5.6-imagick php5.6-zip php5.6-bcmath php5.6-soap php5.6-intl php5.6-readline php5.6-mcrypt php5.6-common php5.6-pspell php5.6-tidy php5.6-xmlrpc php5.6-xsl php5.6-opcache php5.6-apcu Install Composer Sed -i "s/#ClientAliveInterval 0/ClientAliveInterval 60/" /etc/ssh/sshd_config Sed -i "s/#TCPKeepAlive yes/TCPKeepAlive yes/" /etc/ssh/sshd_config If you want the SSH Daemon to keep your connections alive, you can run the following commands: Ln -sf /usr/share/zoneinfo/UTC /etc/localtime Set SSH to KeepAlive Add some PPAs to stay currentĪpt-get install -y software-properties-commonĪdd-apt-repository 'deb focal main'Īpt-get update apt-get install -y build-essential curl nano wget lftp unzip bzip2 arj nomarch lzop htop openssl gcc git binutils libmcrypt4 libpcre3-dev make python3 python3-pip supervisor unattended-upgrades whois zsh imagemagick uuid-runtime net-tools zip Set the timezone to UTC We choose the port range 50000->50099 in order to allow passive FTP connections. # Skip the following 3 lines if you do not plan on using FTP Install fail2ban and enable firewallĪpt-get update apt-get upgrade -y apt-get install -y fail2ban ufw This stack has been deprecated and is no longer maintained nor available in Webdock. By provisioning a base Ubuntu Focal image, and following these steps exactly, you would be able to duplicate our server image. On proceeding with the command, you will be asked to enter the password and retype it as for the confirmation.This document details how we've set up our Ubuntu LAMP (Linux Apache Mysql and PHP) 5.6 stack for legacy applications. You can simply add the username or the additional user. htpasswd will be located in /etc/phpmyadmin/ directory. The next step is to set the password using htpasswd file. You are using nano editor so save the changes using Ctrl + O. The authenticated users are only allowed to access the phpMyAdmin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |