-
-
Save saxenanurag/19297d18f54b94bd3f0e8616fe722f3b to your computer and use it in GitHub Desktop.
PHP Lamp Setup Nginx + PHP 7.3
This file contains hidden or 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
#!/bin/bash | |
# One Click LAMP Server Installer (Ubuntu/Debian) - Roskus | |
# @author Gustavo Novaro | |
# @version 3.3.1 | |
# @url https://gist.github.com/gnovaro/5295150774be1794028c15c83313c16e | |
# Run: sudo ./lamp_setup.sh | |
############################################### | |
#Servidor Web http | |
apt-get install -y nginx | |
#apt-get install -y apache2 | |
#install php repo | |
add-apt-repository ppa:ondrej/php | |
apt-get update | |
#php repo | |
apt-get install -y crypt | |
apt-get install -y php7.3 | |
apt-get install -y php7.3-cli | |
#For Nginx | |
apt-get install -y php7.3-fpm | |
#Modules | |
#apt-get install -y php5-dev | |
#apt-get install -y php-pear | |
#apt-get install -y php5-mysql | |
apt-get install -y php7.3-gd | |
apt-get install -y php7.3-curl | |
#apt-get install -y php7.0-memcache | |
apt-get install -y mcrypt | |
apt-get install -y php7.3-mcrypt | |
apt-get install -y php7.3-mbstring | |
apt-get install -y php7.3-mysql | |
apt-get install -y php7.3-sqlite3 | |
apt-get install -y php7.3-soap | |
apt-get install -y php7.3-xsl | |
apt-get install -y php7.3-bcmath | |
apt-get install -y php7.3-json | |
# MariaDB | |
apt-get install -y mariadb-server | |
#Debugger | |
#apt-get install -y php7.3-phpdbg | |
#apt-get install php-http | |
#Image Magick | |
#apt-get install -y imagemagick | |
#Server Memcache | |
#apt-get install memcached | |
#apt-get install php7.3-memcache | |
#Servidor de Correo | |
#apt-get install -y postfix | |
#apt-get install -y postfix-mysql | |
#apt-get install -y spamassassin | |
#Servidor FTP | |
#apt-get install vsftpd | |
#Servidor SSH | |
apt-get install -y openssh-server | |
#Tools | |
#apt-get install -y phpmyadmin | |
#PDF Support | |
#apt-get install re2c | |
#apt-get install php-fpdf -y | |
#cd /usr/local/src/ | |
#wget http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz | |
#tar zxvf PDFlib-Lite-7.0.5p3.tar.gz | |
#cd PDFlib-Lite-7.0.5p3/ && \ | |
# ./configure && \ | |
# make && \ | |
# make install | |
### When prompted for a directory enter /usr/local/ | |
#pecl install pdflib | |
#cd /etc/php5/conf.d | |
#touch pdflib.ini | |
#extension=pdf.so | |
#X-Debug | |
#apt-get install -y php5-xdebug | |
# Editamos el archivo de configuración de xdebug /etc/php5/conf.d/xdebug.ini y añadimos las siguientes lineas | |
# 1. | |
# xdebug.remote_enable=on | |
# 2. | |
# xdebug.remote_handler=dbgp | |
# 3. | |
# xdebug.remote_mode=req | |
# 4. | |
# xdebug.remote_host=localhost | |
# 5. | |
# xdebug.remote_port=9000 | |
# | |
# For check is correctly installed php -v | |
# | |
#Activate Mcrypt for apache | |
#php5enmod mcrypt | |
#Habiliatar mod_rewrite | |
#a2enmod rewrite | |
#Reiniciar apache | |
#/etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment