drupal config aws full (ft error)

 Install Apache (WebServer):

sudo apt-get update
sudo apt-get install apache2
sudo nano /etc/apache2/apache2.conf
Change 'server_domain_or_IP' to 'localhost:80' on this line:
ServerName server_domain_or_IP

Download Drupal (Code):
https://www.drupal.org/download
Put it in a directory of your choosing.

Link Apache to Drupal
sudo nano /etc/apache2/sites-enabled/000-default.conf
Change to the directory you downloaded Drupal to

Start Apache:
sudo service apache2 start

Install MySQL (Database)
sudo apt-get install mysql-server

Create a new Database:
Login into MySQL
CREATE DATABASE example;

or 

to import database

 A common use of mysqldump is for making a backup of an entire database:

mysqldump db_name > backup-file.sql

You can load the dump file back into the server like this:

Unix

mysql db_name < backup-file.sql


Install PHP (Coding language)
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php-xml




if stuck at database to input do the following 

CREATE USER 'yourusername'@'localhost' IDENTIFIED BY 'yourpass';

GRANT ALL PRIVILEGES ON drupal.* TO 'hame'@'localhost';

FLUSH PRIVILEGES;

When Drupal displays the "The website encountered an unexpected error" message, it indicates that a PHP error has occurred

  • Look for the detailed error message in the Drupal error log. The error log is typically located in the sites/default/files directory. Check for files named error.log or similar.
  • If the error log is not available or doesn't provide enough information, check the web server error log. For Apache, it's often located in /var/log/apache2/error.log. For Nginx, it might be in /var/log/nginx/error.log.


The error messages in your Apache error log indicate that there are PDOExceptions related to SQL queries in your Drupal application. These errors are often related to database connection issues, incorrect database credentials, or problems with SQL queries.


  • Ensure that your MySQL or MariaDB server is running.
  • Double-check the database credentials in your Drupal settings.php file to make sure they are correct.

If going to any admin toolbar says page could not found then clear and flush all cache from drupal remove drupal from drupal/admin/...

Comments

Popular posts from this blog

Moodle Backup and Restore in Docker

Custom Domain to GitHub Pages (Hostinger Edition)

Resizing partition in AWS