Open browser, goto: You should see PHP info page, remove the index page afterwards. Restart the web server and fpm: systemctl restart php-fpm httpdĬreate php test page: echo "" > /var/www/html/index.php Start server, check server is working, and enable during boot: systemctl start httpd dnf install httpd httpd-filesystem httpd-manual httpd-tools mod_ssl Install apache 2.4 HTTP and HTTPS web server and dependencies. firewall-cmd -zone=public -add-port=80/tcp -permanentįirewall-cmd -zone=public -add-port=443/tcp -permanentĮnable EPEL Repository dnf install epel-release systemctl start rviceĬheck the current state of firewall ( ssh should be enabled): firewall-cmd -get-active-zonesĪdd temporary http/https rule(s) to public zone: firewall-cmd -zone=public -add-service=httpįirewall-cmd -zone=public -add-service=httpsĪdd permanent http/https rule(s) to public zone: firewall-cmd -zone=public -add-service=http -permanentįirewall-cmd -zone=public -add-service=https -permanent dnf install firewalldĬheck firewall status (should be off in most cases). Reconnect with webmaster user and check sudo access is working. Logout server, and login again as webmaster user. Then comment/uncomment the following way: # Allows people in group wheel to run all commands If you want sudo access without requiring a password edit sudoers config. cp -r -p /root/.ssh/ /home/webmaster/Ĭhown -R webmaster:webmaster /home/webmaster/.sshĪdd your user to wheel group (as supplementary group, primary group still webmaster). adduser webmasterĬopy root key to user home (you can remove it from the root user later). Reboot system, login back to server (as root). All the following servers/services can be installed and run stable on a 1CPU/2GB/50GB, 2CPU/2GB/50GB or 2CPU/4GB/50GB droplets (choose by your load). Machines with Rocky Linux are provided by DigitalOcean a great and super stable cloud provider I've been using for years. However, this document can also work as quick tutorial for newcomers to the RHEL eco-system.Īlso, I would like to promote Rocky Linux as a solid alternative for enterprise systems. Some trivial commands might be missed or skipped. This cheatsheet assumes the user is knowledgeable about bare installations of virtual private servers on cloud providers and is looking for quick but comprehensive instructions. Rocky Linux 8.5 - Web Server Installation Notice
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |