-
-
Save Pavelyev/40cdb7c4fe19e9a1ef7c to your computer and use it in GitHub Desktop.
LAMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu | |
sudo apt-get update | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove | |
sudo apt-get install apache2 | |
sudo a2enmod rewrite | |
service apache2 restart | |
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-gd mysql-server libapache2-mod-auth-mysql php5-mysql | |
php.ini: | |
[mcrypt] | |
extension=mcrypt.so | |
____________________ | |
apt-get install msmtp | |
apt-get install sendmail | |
____________________ | |
SQLITE | |
sudo apt-get install php5-sqlite | |
sudo apt-get install sqlite3 libsqlite3-dev | |
____________________ | |
SSL | |
https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 | |
sudo a2enmod ssl | |
sudo mkdir /etc/apache2/ssl | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt | |
sudo a2ensite default-ssl.conf | |
_____________________ | |
ADDITION MAIL | |
apt-get install msmtp | |
apt-get install sendmail | |
apt-get install php-pear | |
pear install mail | |
pear install Net_SMTP | |
pear install Auth_SASL | |
pear install mail_mime | |
http://php.net/sendmail-path | |
[openssl] | |
extension=openssl.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment