sudo yum update
sudo yum install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo mysql_secure_installation
sudo systemctl enable mariadb.service
sudo yum install php php-mysql
sudo systemctl restart httpd.service
sudo chmod -R 755 /var/www
sudo mkdir -p /var/www/e-xpert.pl/public_html
sudo chown -R apache: /var/www/e-xpert.pl/public_html
sudo nano /etc/httpd/conf.d/e-xpert.pl.conf
<VirtualHost *:80>
ServerName www.e-xpert.pl
ServerAlias e-xpert.pl
DocumentRoot /var/www/e-xpert.pl/public_html
<Directory /var/www/e-xpert.pl/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/www/e-xpert.pl/error.log
CustomLog /var/www/e-xpert.pl/requests.log combined
</VirtualHost>
sudo apachectl restart
sudo setsebool -P httpd_unified 1