Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2010, 02:15
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default PHP Doesn't run when using rsync on mirror

--------------------------------------------------------------------------------

I have server A running lenny and server B set as a mirror.

I'm using rsync to copy all content.

Static content will serve fine on the mirror, but my joomla sites don't work correctly on server B.

I get this message:

Code:
Fatal error: Class 'JError' not found in /var/www/clients/client3/web21/web/libraries/joomla/factory.php on line 564I've eliminated database issues as this is before any attempts to connect to a database have been raised. I've literally just copied the installation files for test purposes which rsync then copies to server B and produces the above error.

It doesn't seem to be a PHP problem through and through as I've also beat rsync and copied the files there manually and everything works fine on server B.

So the question is, why does it not like the files that rsync copies, but handles the files I've copied as root just fine?

How do I overcome this please?
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2010, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Was the second server set up exactly as the first one? Maybe a package is missing?
Are configurations (Apache, PHP) also exactly the same?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th June 2010, 20:14
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Both were built using the perfect server lenny guide although be it 6 months apart and one as a slave.

Attached is a copy of the phpinfo for each. There do seem to be some slight differences in the core settings?

Is this causing the problems?

Please see attached
Attached Files
File Type: txt phpinfo()mastertext.txt (38.7 KB, 187 views)
File Type: txt phpinfo()slavetext.txt (38.9 KB, 194 views)
Reply With Quote
  #4  
Old 15th June 2010, 10:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

If it does not work when you use rsync but it works when the files were copied, then I see only 2 possible reasons:

1) The files have the wrong owner or permissions after the ywere synced with rsync.
2) Not all files got synced.

Please compare the files and permissions of a working copy and the rsynced copy.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 15th June 2010, 10:23
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Thanks Till, I did consider the permissions might be an issue. For test purposes I was going to use the command:

chmod -R 777 web

Then every file and directory in that tree should have read write and execute access eliminating that problem

Next, I guess a good test would be to copy the files across manually to ensure all are getting copied across.

I'll post the results back here.
Reply With Quote
  #6  
Old 15th June 2010, 10:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

Quote:
Thanks Till, I did consider the permissions might be an issue. For test purposes I was going to use the command:

chmod -R 777 web
Thats not a good idea as access might get denied then to the files by apache for security reasons. You have to set the permissions exactly as on the other server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 13:22
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 23:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.