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;
- 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 namederror.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
.
- 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.
Comments
Post a Comment