Hello Chris, I've used N-13 News on a Windows server without great problems, but now for other needs I turned the hosting in a Linux one. The problem is that I have installed N-13 News on the same database (I cleared it before), the installation finishes, the "Welcome" news is displayed when I include the news, but when I try to go in the admin.php page I get a 500 Internal Server Error.
In the log, I've found these errors:
[Tue Apr 10 14:01:42 2012] [error] [client ...] Negotiation: discovered file(s) matching request: /web/htdocs/www.mysite.com/home/news/admin (None could be negotiated).
[Tue Apr 10 13:00:26 2012] [error] [client ...] Premature end of script headers: admin.php, referer: http://www.mysite.com/news/install/?step=3
I've seen that another user had this problem too but he didn't explain how he finally solved :( Thank you in advance!
I think this error has something to do with mod_rewrite
on your server possibly not being configured properly. Try removing the .htaccess
file that comes with the script to see if the problem persists.
I can't find any .htaccess file in the script folder and in the root too (I'm using Filezilla)
A bit of googling suggests it's definitely an apache configuration problem. if you have a look at these 2 links
They both say the same thing.
Thanks Chris, but I don't know how to solve it, and what should I say to my service provider to fix it. Could you tell me?
Could it be a permissions problem? I have everything set @755 (db.php @777 while installing)
I would show them the error log and possible the 2 links above to see if they can change any settings. One other thing to look for is any other .htaccess files you have have on the root directory of your site, possibly in www
or public_html
, if you find any try deleting them to see if that fixes the errors.
I deleted the php.ini file included with the N-13 script and now I can access the admin page and login. The strange problem is that now I can't click the "titles" (i.e. editing a template "Comments Form", "Comments Pagination", "News Pagination", ...). I click on them and nothing happens, while I remember that there was a textarea coming down to edit... :( What could this be now? Thanks very much for your support!
This has happened before, seems to be a certain server configuration messed with the relative paths of the script. If you navigate to http://yoursite.com/news/js/main.php, you'll probably see a bunch of errors. If so can you paste those errors?
Incredible, I've tried to delete php.ini in that folder too (news/js) and now the textareas come down! However it's not a normal behaviour... I give you the link in private, maybe you can understand the problem in a moment! Thanks.
I'm a bit stumped as to the exact cause of this, looking at the errors it looks as if there's a path problem. One thing I would try is, if you edit news/js/main.php
, around the top you'll see this code
require_once(ABSPATH . '/db.php');
require_once(ABSPATH . '/config.php');
#require_once(ABSPATH . '/functions.php');
require_once(ABSPATH . '/langmsg.php');
If you remove those slashes at the beginning of each file so it looks like this
require_once(ABSPATH . 'db.php');
require_once(ABSPATH . 'config.php');
#require_once(ABSPATH . 'functions.php');
require_once(ABSPATH . 'langmsg.php');
Save and see if that makes any difference. If it doesn't work I would need access to the server to further debug this problem unfortunately.