Page not working after installation

mailmole

Member
Hi everyone!

I have recently got started with mailwizz. I've installed it on an ubuntu vps. The installation went fine. All the steps were followed successfully. The last two steps I did were to edit the cronjobs document and remove the install folder. At the end I also restarted apache2

However, after completing those steps, I went to my backend and got the Page not working error. I then went to the ip address of my vps and saw the standard Apache welcome page instead of the list of the directories from my mailwizz folder in /var/www/mailwizz.com. I restarted apache2 multiple times to no avail.

The error seems to have happened after editing the cronjobs and deleting the install folder, so the issue could be in one of those steps. However, I also remember that it could have been due to one of the earlier steps.

For example, the instructions note that "if you already have another web app installed in your document root(i.e: wordpress), it is better to create a new folder inside the document root, say mailer ( /home/username/public_html/mailer/) and put the files there."

What I did was to copy all the files in the "latest" folder to /var/www/mailwizz.com, including the install folder. After the installation was completed, I deleted the install folder. But it could be that I should have used a different path prior to the installation.

Any thoughts or suggestions? Would appreciate any input!
 
Hi twisted1919,

Thanks for the prompt reply. I am using PHP 7. Do you mean specifically changing the memory limit in nano /etc/php/7.0/apache2/php.ini? Because, it was set at 128 MB by default. Here's the extract:


; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
 
Hi twisted1919,

Thanks for the help. I have added the line in the file. Now, it looks like this:

define(MW_FORCE_DEBUG_MODE', true);

// set the developer ip addresses, separated by a comma
defined('MW_DEVELOPERS_IPS') or define('MW_DEVELOPERS_IPS', '');

// decide if we're in read only mode, note that MW_DEVELOPERS_IPS still have full access
defined('MW_IS_APP_READ_ONLY') or define('MW_IS_APP_READ_ONLY', false);

// whether we should force debug mode
defined('MW_FORCE_DEBUG_MODE') or define('MW_FORCE_DEBUG_MODE', isset($_SERVER['REMOTE_ADDR']) && in_ar$
// if debug mode is forced then go with it
if (defined('MW_FORCE_DEBUG_MODE') && MW_FORCE_DEBUG_MODE) {
error_reporting(-1);
ini_set('display_errors', 1);
define('MW_CACHE_TTL', 300);
define('YII_DEBUG', true);
define('YII_TRACE_LEVEL', 3);
} else {
error_reporting(0);
ini_set('display_errors', 0);
define('MW_CACHE_TTL', 60 * 60 * 24 * 365);
}

However, this hasn't helped and the page is still not resolving :(

The page is returning HTTP ERROR 500
 
Hi Dev1,

Yes, I've tried that as well and it gives me 404.

Everything worked fine when I was at my last step of installation but at some point after running crontab and deleting the install folder it stopped working. If I go to my ip, it gives me a standard apache page. If I go to my domain it gives me Page not found. And, if I go via your suggestion, it gives me 404. I have no clue what to do to be honest :(

This is the current contents in my mailwizz folder in the vps if this is of any help:

drwxr-xr-x 10 root root 4096 Apr 12 03:04 .
drwxr-xr-x 4 root root 4096 Apr 10 23:33 ..
drwxr-xr-x 2 root root 4096 Apr 12 02:06 api
drwxr-xr-x 9 root root 4096 Apr 15 03:09 apps
drwxr-xr-x 6 root root 4096 Apr 12 02:07 assets
drwxr-xr-x 4 root root 4096 Apr 12 02:07 backend
-rw-r--r-- 1 root root 70790 Apr 12 02:07 CHANGELOG
drwxr-xr-x 4 root root 4096 Apr 12 02:07 customer
-rw-r--r-- 1 root root 4479 Apr 12 02:07 external-code.txt
-rw-r--r-- 1 root root 198 Apr 12 02:07 favicon.ico
drwxr-xr-x 4 root root 4096 Apr 12 02:07 frontend
-rw-r--r-- 1 root root 475 Apr 12 02:07 index.php
-rw-r--r-- 1 root root 31 Apr 12 02:07 license.txt
drwxr-xr-x 2 root root 4096 Apr 12 03:18 logs
-rw-r--r-- 1 root root 600 Apr 12 02:07 README.md
-rw-r--r-- 1 root root 92 Apr 12 02:07 robots.txt
-rw-r--r-- 1 root root 162 Apr 12 02:07 self-notes.txt
drwxr-xr-x 4 root root 4096 Apr 12 01:47 tmp
 
Try to chown to the same user used by apache. Not sure but try nobody

Go to mw install dir and do

chown -R nobody: *
 
Try to chown to the same user used by apache. Not sure but try nobody

Go to mw install dir and do

chown -R nobody: *

Hmm, not really sure how that can help. I've run all the commands from the root if that's related to your suggestion. Or, do you mean something else?
 
Hmm, not really sure how that can help. I've run all the commands from the root if that's related to your suggestion. Or, do you mean something else?

Yes, but apache isnt running as root. 500 error is usualy related to permission issue or error in .htaccess.

Try it you can always chown it back to root.
 
Yes, but apache isnt running as root. 500 error is usualy related to permission issue or error in .htaccess.

Try it you can always chown it back to root.

The install folder is gone. I removed it following the installation instructions. I did run the command on the mailwizz folder itself, ie /var/www/mailwizz

The command gave the error: chown: missing operand after ‘nobody:*’ I ran it as chown -R nobody * and restarted the apache. Refreshed the page, but still nothing :(
 
There is a space between : and *

It can also be
chown -R nobody:nobody *

But make sure nobody is actually user apache is running under. Check

ps -aux | grep apache
 
There is a space between : and *

It can also be
chown -R nobody:nobody *

But make sure nobody is actually user apache is running under. Check

ps -aux | grep apache

Tried them all. Here's the output of ps -aux:

root 8005 0.0 0.1 374676 32980 ? Ss 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8008 0.0 0.0 374944 10748 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8009 0.0 0.0 375128 13700 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8010 0.0 0.0 375128 13820 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8011 0.0 0.0 374716 9380 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8012 0.0 0.0 374716 9380 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8015 0.0 0.0 375128 13700 ? S 13:51 0:00 /usr/sbin/apache2 -k start
www-data 8023 0.0 0.0 374700 9380 ? S 13:52 0:00 /usr/sbin/apache2 -k start
root 8330 0.0 0.0 12944 964 pts/1 S+ 14:33 0:00 grep --color=auto apache

Page still not working
 
Thanks for the help. I have added the line in the file. Now, it looks like this:

define(MW_FORCE_DEBUG_MODE', true);
It has to be
PHP:
define('MW_FORCE_DEBUG_MODE', true);

So make sure it's like that.
Also, what is the url you are accessing ?
 
It has to be
PHP:
define('MW_FORCE_DEBUG_MODE', true);

So make sure it's like that.
Also, what is the url you are accessing ?

Sorry, it didn't copy-paste properly. I fixed it and the page now gives the following error:

Parse error: syntax error, unexpected ')' in /var/www/mw1.safetrekker.com/apps/common/config/main-custom.php on line 23
 
Back
Top