Test Apache Config
apachectl configtest
Restart Apache Service
apachectl restart
Stop Apache Service
Start Apache Server
apachectl start
Apache status
systemctl status httpd
Virtual Host configuration
#NameVirtualHost *:80 #<VirtualHost *:80> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost>
Install Git
yum update yum install git git --version
Install Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
composer -V
./composer.phar -V
RHEL Version
cat /etc/redhat-release