Skip to content

Instantly share code, notes, and snippets.

@mojaray2k
Created August 18, 2013 09:40
Show Gist options
  • Save mojaray2k/6260783 to your computer and use it in GitHub Desktop.
Save mojaray2k/6260783 to your computer and use it in GitHub Desktop.
These are some default bash commands for installing Apache, Mysql, and PHP
Installing The LAMP Stack On Apt-Get Machines
#apt-get update
#apt-get install mysql-server mysql-client libmysqlclient15-dev
#apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
#apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-mcrypt php5-mysql php5-ps php5-pspell php5-recode php5-xsl
#apt-get install phpmyadmin
Installing LAMP on Centos and RedHat Distributions
#yum upgrade
#yum intstall httpd
#yum install mysql. mysq-server. mysql-php
#chkconfig --levels 235 httpd on
#chkconfig --levels 235 mysqld on
#/etc/init.d/mysqld start
#/etc/init.d/httpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment