Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:08:34 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155538 Posts in 21715 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Internal server error after changing web host. SOLVED  (Read 615 times)
mikejd

Offline Offline

Posts: 160


« on: April 12, 2010, 05:50:15 PM »

I have just completed changing from one hosting package to another. I copied all the files over, installed the database from a backup and changed the config file to the new database details. The wb files are all in directory called wb so I need the domain name to point to that directory so there is a redirect in the .htaccess file which worked fine on the old server.

After the new installation I can get the home page but then just get a 500 Internal server error for any other pages - the url looks correct, the pages are present in the /pages directory but cannot be accessed. Also I can log in th the admin section and see all the pages, media files, add-on file manager, etc. However as soon a I click anything which links to /modules I get  500 Internal server error eg template editor, news module, etc.

The new host has php5 installed and I was previously using wb 2.6.5 so I upgraded to 2.7 (successfully) in case this was the problem but it has not solved it.

Any advice appreciated.

regards,
Mike Davies
« Last Edit: April 14, 2010, 08:52:46 PM by mikejd » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: April 13, 2010, 06:10:31 AM »

Hello,

check your config.php in combination with your rewrite rules.

If you have all files in /wb directory and your domain points to this folder, you didn't need to have the /wb in the pathes of config.php and also no .htaccess is needed.

If you have all files in /wb directory and your domain points to the root folder, you need to have the /wb in the path of config.php and you only get rid of /wb with rewrite rules in .htaccess.

Matthias
Logged
mikejd

Offline Offline

Posts: 160


« Reply #2 on: April 13, 2010, 09:04:11 AM »

Apologies if I am not getting this but I'm finding it difficult to get my head round.

The domain name www.deveron.org points to the root folder, public_html. so I have a .htaccess rule that says:
Code:
Redirect /index.html http://www.deveron.org/wb/
and this file is in the root folder along with the /wb folder. In the /wb/config.php file I have:
Code:
define('WB_PATH', dirname(__FILE__));
define('WB_URL', 'http://www.deveron.org/wb');
define('ADMIN_PATH', WB_PATH.'/admin');
define('ADMIN_URL', 'http://www.deveron.org/wb/admin');
This will open the 'home' page at www.deveron.org, but clicking on any of the navigation links gets a 500 Internal server error.

Further, www.deveron.org/wb/admin opens the admin log-in. I can log in and get the 'Start' page, then 'pages gets the page list and i can select a page to edit. If I select a page with, say, a news module section clicking 'Settings' or 'Add post, etc gets a 500 Internal server error. If I select 'Admin Tools' I can get the Admin tools editor but am unable to open a file to edit. It appears that the /modules folder is not accessible.

cheers,
Mike
Logged
mikejd

Offline Offline

Posts: 160


« Reply #3 on: April 14, 2010, 08:51:51 PM »

It seems the file and folder permissions became changed during the migration process. I have been changing folders to 755 and files to 644 as far as I can but it takes a long time. I have changed enough for it to work and will change others as necessary unless I can find a way of speeding it up.

Thanks for your help.
regards,
Mike
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!