## Step 2 (A): APACHE Web Server + PHP5.5 For this step, you may choose either (A) Apache or (B) Nginx. ### Installation * `yum update -y` Update linux packages * `yum -y install httpd24` Install APACHE webserver * `chkconfig httpd on` Setup service * `yum -y install php55 php55-bcmath php55-devel php55-common php55-cli php55-pecl-apc php55-pdo php55-mysql php55-xml php55-gd php55-mbstring php-pear php55-mysqlnd php55-mcrypt` Install php and the usual extensions. ### Configuration * **Apache Configuration** `vi /etc/httpd/conf/httpd.conf` ``` <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ``` * **PHP Configuration** `vi /etc/php.ini` ``` error_log = /var/log/php-error.log date.timezone = "UTC" ``` ### Finalization * `usermod -a -G devgroup apache` Add apache to dev group * Give the *devgroup* access to */var/www/html* ``` chown -R root:devgroup /var/www/html chmod -R 775 /var/www/html ``` * `service httpd start`