How To Install Drupal 9 on Rocky Linux 8
How To Install Drupal 9 on Rocky Linux 8
in This Tutorial you will Learn " How To Install Drupal 9 on Rocky Linux 8"
Drupal is content management software. It's used to make many of the websites and applications you use every day.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}
systemctl enable httpd mariadb ; systemctl start httpd mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE testdb;
CREATE USER `testuser`@`localhost` IDENTIFIED BY 'testpassword';
GRANT ALL ON testdb.* TO `testuser`@`localhost`;
FLUSH PRIVILEGES;
exit;
DRUPAL_VERSION="9.3.7"
wget https://ftp.drupal.org/files/projects/drupal-$DRUPAL_VERSION.tar.gz
tar xvf drupal-${DRUPAL_VERSION}.tar.gz
mv drupal-${DRUPAL_VERSION} /var/www/html/drupal
mkdir /var/www/html/drupal/sites/default/files
cp /var/www/html/drupal/sites/default/default.settings.php /var/www/html/drupal/sites/default/settings.php
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/drupal/
<Directory /var/www/html/drupal/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
chown -R $USER:$USER /var/www/html/ ; chmod -R 755 /var/www/html/
apachectl configtest
echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
Related Posts:
- How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5
- How To Install Magento 2.4 on Rocky Linux 8
- How To Install Docker on Oracle Linux Server 9
- How to Install WHM/cPanel in Almalinux?
- Configure NTP Server in Oracle Linux 9
- How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8
- How To Install EMQX MQTT Broker on Rocky Linux 8
- How To Install Kamailio SIP Server on Rocky Linux 8
- How to Install and Configure RabbitMQ Server on Rocky Linux 8
- Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq
Latest Posts
- Server-Side Scripting: PHP, Node.js, Python – A Detailed Comparison
- Securing Your Website in 2024: Essential Strategies for Online Safety
- The Future of Web Development Technologies: Trends to Watch in 2024
- How Banks Handle Server-Side Operations and Ensure System Security: An Inside Look
- Tips for Writing Clean, Understandable, and Efficient Code: Avoiding Garbage Code
- Tailwind CSS: Revolutionizing Modern Web Design
- Basic Linux Commands for Beginners: A Starter Guide
- Dairy Farming Loan Apply
- BSNL Recharge Plan
- Bijli Bill Mafi Yojana Online Apply
Technical
- DevOps Roadmap
- How To Install and Configure an SNMP on Ubuntu 20.04
- Apple releases iOS 18 Developer Beta 2 with iPhone screen mirroring, RCS toggle,and more
- How to enable SNMP on Ubuntu Linux 18.04 and above
- How to Force HTTPS Using .htaccess (Updated 2024)
- Display All PHP Errors: Basic & Advanced Usage
- PHP alert
- MongoDB loads but breaks, returning status=14
- MongoDB database deleted automatically
- MongoDB all Error Solutions
Category