Youtube:
sudo apt update
sudo apt install apache2
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
http://localhost
The next step is to locate the appropriate Apache configuration file for your site. Depending on your server configuration, the appropriate Apache configuration file could be httpd.conf, a virtual-host-specific file (vhost.conf), a specific site file (e.g. “default”), or apache2.conf. They are usually located in /etc/httpd/conf, /etc/apache2, /etc/apache2/apache2.confor a sub-directory;
So, assuming you want to allow access to files on the /var/www/html directory, you should change the following lines from:
<Directory “/var/www/html”>
AllowOverride None
</Directory>
to
<Directory “/var/www/html”>
AllowOverride All
</Directory>
sudo systemctl start apache2.service
Create Magento Database
sudo apt-get install mariadb-server mariadb-client
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo mysql_secure_installation
sudo mysql -u root -p
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip
sudo nano /etc/php/7.2/apache2/php.ini
%% The lines below is a good settings for most PHP based CMS… Update the configuration file with these and save….
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago
sudo systemctl restart apache2.service
sudo nano /var/www/html/phpinfo.php
%% Then type the content below and save the file.
<?php phpinfo( ); ?>
http://localhost/phpinfo.php
sudo mysql -u root -p
CREATE DATABASE opigno;
CREATE USER ‘opignouser’@’localhost’ IDENTIFIED BY ‘new_password_here’;
GRANT ALL ON opigno.* TO ‘opignouser’@’localhost’ IDENTIFIED BY ‘user_password_here’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer
cd /var/www/html
sudo composer create-project opigno/opigno-composer opigno
cd /var/www/html/opigno
sudo composer install
sudo nano /etc/apache2/sites-available/opigno.conf
%% Then copy and paste the content below into the file and save it. Replace the highlighted line with your own domain name and directory root location.
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/opigno
ServerName example.com
ServerAlias www.example.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(*) index.php [PT,L]</Directory>
</VirtualHost>
sudo a2ensite opigno.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service
firefox: localhost/opigno
Contact:
Email: mystudymytech@gmail.com
What’sapp: +8801818264577
Telegram: +8801818 264577
Skype: zobaer.ahmed5
Linkedin: https://www.linkedin.com/in/linuxintellect