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 3rd April 2010, 19:18
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default Website basedir - viewing settings caused problems!

I wanted to change the base directory from /var/www to /home

(because the default installation of Centos by my server supply company partitions the disk with most space assigned to /home)

I looked at the 'Web' section. I didn't make changes but I then moved to a different page. Immediately the whole control panel went wrong with php error messages on most pages saying they can't find certain files and several pages giving the message "Notice: Undefined variable: wb in /usr/local/ispconfig/interface/lib/app.inc.php on line 189"

So I assume that by changing pages, it must have automatically changed a setting, and broken the paths. I have regained partial useability by adding the following include dirs to my php.ini settings:
/usr/local/ispconfig/interface/web/sites/
/usr/local/ispconfig/interface/web/admin/

How can I reset all paths and regain full operation?
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2010, 06:59
bajodel bajodel is offline
Member
 
Join Date: Jul 2007
Location: Italy
Posts: 63
Thanks: 26
Thanked 12 Times in 11 Posts
Default

I don't know if the following is a solution.. but you can test it in a minute :
('#' are command as root)

- stop apache
- # mv /var/www /home/var_www
- # ln -s /home/var_www /var/www
- start apache and test.. your base dir is now /home/var_www

If it doesn't work .. simply remove sym-link and restore the folder in the right position:
- # rm /var/www
- # mv /home/var_www /var/www

..but i hope it works


bye..

bajodel
Reply With Quote
  #3  
Old 4th April 2010, 08:19
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default

Thanks for the suggestion. The main problem is that I didn't make any changes!

I am now rebuilding the server from scratch (I think its about the fifth or sixth time!) and carefully following my own checklist since there were some oddities in the perfect setup guide and somethings didn't match the way my servers are 'delivered'.

This time I will however, when I first run ISPConfig, change the default basedirectory.

----- edited to add ------------

After a total rebuild of the server and fresh installation of ISPConfig3, I cannot reproduce the error.

Last edited by mike_p; 4th April 2010 at 10:16. Reason: further information
Reply With Quote
  #4  
Old 6th April 2010, 09:49
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
 
Default

For anyone that's interested in changing the root directory for clients/websites: if you use a root other than /var/www (eg /home) you will need to rebuild apache with suexec root set to /home. (That is if you use SuExec!)
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
Update to 2.2.16 caused problems. finn General 2 23rd September 2007 19:06
Problems setting up website with Joomla and ISPconfig ikkem HOWTO-Related Questions 11 16th May 2007 10:33
Management -> Server -> Settings problems merlincc Installation/Configuration 6 27th November 2006 21:57
problems moving website, doesnt delete site from original client... lyndros Installation/Configuration 7 11th October 2006 10:27
Viewing website from with local network using DSL Roadracer Installation/Configuration 3 27th March 2006 05:49


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


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