# LAMP ### HTTPD Install ```bash # Install dnf install epel-release dnf install httpd httpd-tools # Enable systemctl start httpd systemctl enable httpd # Test curl localhost ``` ### PHP ```bash dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm dnf module enable php:remi-8.2 dnf install -y php dnf install -y php-gd php-curl php-mysqlnd dnf install -y php-devel php-xml php-pear php-mysql dnf install -y php-json php-zip php-common php-xmlrpc dnf install -y php-tidy php-soap php-bcmath # Enable systemctl status php-fpm systemctl start php-fpm systemctl enable php-fpm systemctl restart httpd # Test echo "" > /var/www/html/info.php php -v curl localhost/info.php ``` ### Composer ```bash # Install wget https://getcomposer.org/installer -O composer-installer.php php composer-installer.php --filename=composer --install-dir=/usr/local/bin # Test composer -V ``` ### MYSQL ```bash # Install dnf install mariadb-server mariadb systemctl start mariadb mysql_secure_installation # Enable systemctl enable mariadb systemctl status mariadb # Test mysql -uroot -p1234 -e "show databases" ``` # Troubleshooting HTTPD ### ReWrite module ``` `httpd -M | grep rewrite ``` ``` AllowOverride All ``` ### Persmissions - check the `file` dir - check the .htaccess owner and perms ``` ls -la ls -la sites/default ```