I have installed the script in my digital ocean VPS, the home page is showing up, but when I click on login, it is giving 404 not found, please help
To do so, open WinSCP again and navigate to this directory:
/etc/apache2/sites-available/
Now, create a new empty file and name it “
yourdomain.conf” . You can replace “Scriptname” with any name you want
Open
yourdomain.conf Then copy and paste the content below into the file and save.
<VirtualHost *:80>
ServerAdmin admin@YOUDOMAINNAME
DocumentRoot /var/www/html
ServerName YOUDOMAINNAME
ServerAlias YOUDOMAINNAME
<Directory /var/www/html/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Replace with your own domain, in my case its “YOURDOMAINNAME”
Enable your script configuration in apache and restart the service.
Now simply, run the following commands to finish the setup:
sudo a2ensite yourdomain.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service