-
Here's the basics, doesnt include SSL, S3, RDS, CloudFront, and Secure Email
Distribution Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install postfix
sudo apt install mailutils
sudo service postfix restart
sudo apt install mysql-server
sudo apt install apache2 php libapache2-mod-php php-xml php-curl php-json php-gd php-mysql php-mbstring
sudo apt install php-imagick openssl php-fileinfo php-intl php-exif php-zip php-iconv unzip
sudo service apache2 restart
sudo mysql -u root -p
CREATE DATABASE db1;
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES on db1.* to 'admin'@'localhost';
(note: create your user name and password)
sudo vi /etc/php/8.1/apache2/php.ini
upload_max_filesize 20M
post_max_size 20M
max_execution_time 60
max_input_vars 3000
sudo cp -R (from location to location)
sudo cp .htaccess /var/www/html
sudo chown -R www-data.www-data /var/www/html
sudo vi /etc/apache2/sites-available/000-default.conf
(Change or add the following)
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
sudo a2enmod rewrite
sudo a2enmod expires
sudo a2enmod headers
sudo a2enmod ssl
sudo service apache2 reload
sudo service apache2 restart
-
Great. Thank you so much. I really appreciate your help on this. does this code include copying "UNA" zipped files and how to unzip UNA into this (is it included in the above code)?
-