Not Found The requested URL /install/index.php was not found on this server.

mailmole

Member
I am migrating to a new server with better capacity and want to install my mailwizz from scratch. In past, I installed only 1.4.3 which went usually fine. This time, I am trying to install the latest 1.6.5.

However, I am unable to proceed to the installation page ie http://mw.mydomain.com/install/index.php. I keep getting 404 Not Found. Here's the screenshot: https://i.gyazo.com/e0793059dd085aa81ff1f0f5d167abf3.png Meanwhile the homepage, http://mw.mydomain.com/, keeps resolving to the Apache2 default page.

I have followed all the steps I took with the previous installation which was successful. The only differences were a new server, OS Ubu 18 (used 16 in past) and the new mailwizz version. The rest was all same. Here's a list of the current contents of the /var/www/mw.mydomain.com/ directory:

Code:
drwxr-xr-x 11 root root  4096 Nov 24 12:57 ./
drwxr-xr-x  4 root root  4096 Nov 24 12:24 ../
drwxr-xr-x  2 root root  4096 Nov 24 12:57 api/
drwxr-xr-x  9 root root  4096 Nov 24 13:03 apps/
drwxr-xr-x  6 root root  4096 Nov 24 12:57 assets/
drwxr-xr-x  4 root root  4096 Nov 24 12:57 backend/
-rw-r--r--  1 root root 90843 Nov 24 12:57 CHANGELOG
drwxr-xr-x  4 root root  4096 Nov 24 12:57 customer/
-rw-r--r--  1 root root  4727 Nov 24 12:57 external-code.txt
-rw-r--r--  1 root root   198 Nov 24 12:57 favicon.ico
drwxr-xr-x  4 root root  4096 Nov 24 12:57 frontend/
-rw-r--r--  1 root root   478 Nov 24 12:57 index.php
drwxr-xr-x  5 root root  4096 Nov 24 13:34 install/
-rw-r--r--  1 root root    32 Nov 24 12:57 license.txt
drwxr-xr-x  2 root root  4096 Nov 24 12:26 logs/
-rw-r--r--  1 root root   600 Nov 24 12:57 README.md
-rw-r--r--  1 root root    92 Nov 24 12:57 robots.txt
-rw-r--r--  1 root root     0 Nov 24 12:57 self-notes.txt
drwxr-xr-x  3 root root  4096 Nov 24 12:52 tmp/

I also enabled debugger following the instructions at https://kb.mailwizz.com/articles/enable-installer-debugging/ and https://kb.mailwizz.com/articles/enable-debugging/ But the installation page keeps stubbornly resolving to the same 404 Not Found error with no clue as for what is exactly the problem.

If it's any help below are the logs of the commands I used to set up maiwizz on my server:

Code:
passwd
apt
apt update
apt upgrade
exit
apt update
apt upgrade
cd ../..
nano etc/ssh/sshd_config
exit
cd ../..
nano etc/ssh/sshd_config
systemctl restart ssh
exit
ufw enable
ufw allow 80
ufw allow 443
ufw allow from MY.IP.ADDRESS
ufw allow from MY.IP.ADDRESS to any port 22
ufw allow from MY.IP.ADDRESS to any port 2223
systemctl restart ssh
exit
apt install apache2
hostnamectl set-hostname mw.mydomain.com --static
hostname
apt install php
apt install libapache2-mod-php
apt install php-mysql
apt install php-mcrypt
apt install mysql
sudo apt install mysql
apt upgrade
restart
reboot
cd ..
cd var/www
ll
cd mw.mydomain.com
ll
cd ../../..
cd etc/apache2/sites-available
ll
cd ..
cd sites-enabled
ll
cd ../../..
cd var/www/mw.mydomain.com
ll
mkdir tmp
ll
apt install unzip
cd tmp
ll
unzip v165.zip
ll
cd mailwizz-1.6.5
ll
cd latest
ll
cp -r * ../../..
cd ../../..
ll
ufw status
ll
nano apps/init.php
sudo apt install mysql
mysql_secure_installation
apt install mysql-server-5.7
mysql_secure_installation
mysql -u root -p
apt install php-cli
apt install php-readline
apt install libmcrypt
cd ../..
ll
mkdir -p /var/www/mw.mydomain.com
cd var
ll www
cd ..
mkdir -p /var/www/mw.mydomain.com/logs
ll var/www/mw.mydomain.com
cd etc/apache2/sites-available
ll
nano mw.mydomain.com.conf
cd ..
cd sites-enabled
ln -s ../sites-available/mw.mydomain.com.conf mw.mydomain.com.conf
ll
service apache2 restart
cd ..
cd var/www/mw.mydomain.com
ll
nano install/index.php
reboot

Please, help me resolve this.
 
Quick update.

I tried replicating the issue on a different VPS at hand. I used exact same commands but this time it worked fine and I had install/index.php resolve to an installation page without any issues.

Here are the specifications of the server I used in the first post where the issue occurred:
OS: Ubuntu 18.04
Intel Xeon E3-1270v6
4c/8t - 3.8GHz /4.2GHz
32GB DDR4 ECC 2400 MHz
SoftRaid 2x2TB SATA
500 Mbps bandwidth
vRack: 100 Mbps​

And, here are the specifications of the 2nd server where I failed to replicate the issue:
OS: Ubuntu 18.04
4 vCore(s)
3.1 GHz
8 GB RAM
100 GB​

The 1st server has a lot more capacity and was acquired for our scale-up. Both servers are located in the same region but different data centers.

I am not sure why the installation page resolved on the 2nd but failed on the 1st. I tried re-doing the first server setup multiple times but the issue keeps persisting.
 
Seems like I've finally managed to resolve the issue. On the 1st server, I needed to run

Code:
sudo a2dissite 000-default.conf
service apache2 reload
 
Back
Top