Page 1 of 1

404 Not Found Problem when Upgrading

PostPosted: 10:58pm, Sat 28 Dec, 2013
by celiac101
I am trying to upgrade from 2.10.18 to 3.0.5 and am getting a 404 Page Not found error (see below) no matter what I do. I checked an re-checked all paths in the old config file for $pageroot and $adminpages and tried various variations of them to no avail.

I am on a cpanel Linux server with all the latest updates, and am running security Suhosin, CSF firewall, etc. Is there something different about the new version that could trigger a security issue, or is there a setting I might have turned off for security that I need to turn back on? Any ideas would be helpful, thank you.

Re: 404 Not Found Problem when Upgrading

PostPosted: 11:04pm, Sat 28 Dec, 2013
by celiac101
PS - I don't think it is an ownership/permission issue, as I did do some basic checking on this and did chown the directory and all files to the proper owner, checked other permission etc. I've been running this for many years and have always upgraded without issues...not sure about this one.

Re: 404 Not Found Problem when Upgrading

PostPosted: 9:48am, Sun 29 Dec, 2013
by Dragonrider
Without some information we are grasping straws in the dark.

What's the url to your phpList install?
What is the setting inconfig.php for your $pageroot?
$adminpages is no longer used in version 3.

Re: 404 Not Found Problem when Upgrading

PostPosted: 4:56pm, Sun 29 Dec, 2013
by celiac101
Sure...and perhaps that is the issue...the fact that I am using a config file with some older stuff in it?

My domian looks like this:
Code: Select all
https://www.mydomain.com/pm/public_html/lists/admin/?page=messages


and in my original config I have:
$pageroot = '/pm/public_html/lists';
$adminpages = '/pm/public_html/lists/admin';

However, one additional clue: I got the same 404 not found when I tried to set it up as a new install, using the config file that comes with the original installation, so something is clearly causing an issue with this new version on my server.

Re: 404 Not Found Problem when Upgrading

PostPosted: 5:52pm, Sun 29 Dec, 2013
by celiac101
Here is the exact error, and when I check the logs it shows up as a 404:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@mydomain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Re: 404 Not Found Problem when Upgrading

PostPosted: 6:05pm, Sun 29 Dec, 2013
by Dragonrider
I'm surprised you need public_html/ in the path, that's usually not needed for the public access to your site.

Does https://www.mydomain.com/pm/public_html/lists/ work?

If not, how about https://www.mydomain.com/lists/ ? or https://www.mydomain.com/pm/lists/

Also, does it really need to be https? That's a different area of your server, it's unlikely that a link there would work with phpList as it would normally expect to be in http://yourdomain.com/pm/lists

Try to find your installation using http rather than https with the above.

Re: 404 Not Found Problem when Upgrading

PostPosted: 7:28pm, Sun 29 Dec, 2013
by celiac101
Yes, many years go when I first installed this I was lazy and just unpacked it in my directory which included the duplicate folder path public_html, and I only changed the version number to the "pm" path. It worked that way forever, so I saw no need to change it. Obviously the new version has an issue with this. I suspect there are many others out there who installed it in a similar fashion, so hopefully they will find this thread if they encouter the issue. I'll try out what you proposed, and report back.

Re: 404 Not Found Problem when Upgrading

PostPosted: 11:34pm, Tue 31 Dec, 2013
by celiac101
I tried again using only the /lists path and am still getting a 500 error as posted above. I am not sure what else to try, as I've been running this for nearly 10 years, and never had an issue upgrading before.

Re: 404 Not Found Problem when Upgrading

PostPosted: 10:12am, Thu 02 Jan, 2014
by duncanc
You should check the Error Log on Cpanel for the cause of the 500 error.

When installing phplist I often encounter a file/directory permissions problem. Only the owner should have write permission to the phplist directories and php files such as index.php.

Re: 404 Not Found Problem when Upgrading

PostPosted: 12:39pm, Thu 02 Jan, 2014
by Dragonrider
Is it a 500 error or 404 as you stated at the start of this topic?

The way to find where the missing 404 error page is, is to disable your 404 error trap in a higher .htaccess file (usually), then see what the actual report given in, or try Duncan's suggestion re the logs.

Re: 404 Not Found Problem when Upgrading

PostPosted: 12:04pm, Sat 04 Jan, 2014
by danwaterloo
After trying all the variations of the url "https://www.mydomain.com/pm/public_html/lists/admin/?page=messages" using https, and http, and shortening it at the '/' marks, I never get a page to show up. The 404 page not found message says that the web server cannot find the page to send to your browser.

Troubleshoot this by looking at the logs for the web server. It will indicate what page it's looking for, and what it con't find. (this info would be put into the 'errors' log). here is an example:
[Fri Jan 03 19:11:05 2014] [error] [client 65.55.215.64] File does not exist: /home/it/www/public_html/wordpress/engsw

Once you know what the web server is looking for and cannot find, you can check your installation to see if the file exists. If the file does exist, then it might be a permissions issue on either the file, or any of the directories in the path to the file. Another typical error would be a typographic or misspelling of the path during the installation.

If you could share the error log message, it will give us a clue of where to look next.

Re: 404 Not Found Problem when Upgrading

PostPosted: 11:08am, Tue 25 Nov, 2014
by Doooford
Have to add that I had this same issue that left me as usual feeling that all PHPList upgrades cause so much stress than the simple process given for upgrading!

I solved it after 24 hours of stress by manually editing the permissons as Dragonridder suggested so
folders should be CHMOD of 755
files should be CHMOD of 644

after this my missing PHPlist instantly reappeared and asked me to upgrade the DB to the latest version! :)