<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/okc.agencypartner.com
ServerName okc.agencypartner.com
ServerAlias www.okc.agencypartner.com
<Directory "/var/www/okc.agencypartner.com/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
mkdir /var/www/okc.agencypartner.com
chown -R $USER:$USER /var/www/okc.agencypartner.com
chmod -R 755 /var/www/okc.agencypartner.com
nano /var/www/okc.agencypartner.com/index.html
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/okc.agencypartner.com
ServerName okc.agencypartner.com
ServerAlias www.okc.agencypartner.com
<Directory "/var/www/okc.agencypartner.com/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
a2ensite okc.agencypartner.com.conf
CREATE DATABASE magento;
CREATE USER 'magento2os'@'localhost' IDENTIFIED BY 'Solution123+';
GRANT ALL PRIVILEGES ON magento.* TO 'magento2os'@'localhost' WITH GRANT OPTION;
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.3
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \; && chown -R :www-data . && chmod u+x bin/magento
systemctl restart apache2
php -dmemory_limit=5G bin/magento setup:install --base-url="http://okc.agencypartner.com" --db-host="localhost" --db-name="magento" --db-user="magento2os" --db-password="Solution123+" --admin-firstname="Muhammad" --admin-lastname="Osama" --admin-email="[email protected]" --admin-user="admin" --admin-password="Solution123+" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --search-engine="elasticsearch7" --elasticsearch-host="localhost" --elasticsearch-port="9200"
Search Knowledge Base Articles
How to install magento 2 on Server
Did you find this article useful?
Related Articles
-
How to make a CRON JOB in Laravel
How to make a CRON JOB in Laravelhttps://tutsforweb.com/how-to-set-up-task-scheduling-cron-job-in-laravel/... -
Magento 2 issue : Invalid security or form key. Please refresh the page.
Invalid security or form key. Please refresh the page.This is a new bug when using another URL than admin. You need to make changes to the follow... -
Magento 2 Breadcrumbs | How to show/remove, custom & add breadcrumbs XML
What are Magento 2 Breadcrumbs They are the same as other platform’s breadcrumbs, which are website links that show exactly what categories user...