Hello there, I am quite new to ISPconfig and need your help. Since my virtual server is quite small I decided to add some storage space to it via nfs and move my www and vmail folder to the storage space. I followed this tutorial: https://www.howtoforge.com/use_moun...ctory_of_a_ispconfig_server_to_a_new_location After doing all steps I get confrontet with an Internal Server Error. I tried to activate error reporting in my php.ini. But it didnt gave me any output. I also checked the apache error.log which had some error I didnt understand. Please help . What can I do to get a clearer error reporting that tells me a bit more what might have happend?
Have a look into the error.logs of the affected websites, the reason for the errors should be listed there.
all websites throw the internal server error. including ispconfig itself. i think there might be a permission error... the lcient sites seem al to log the same error: 1: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1 2: Cannot serve directory /var/www/xyz.com/web/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php It looks like all files belong to root now. permissions for one random index.html file: -rwxrwxrwx 1 root root 156 Mär 11 08:09 index.html Not sure if this is right. Or what should be changed...
Each website is owned by a different user and the website file must be owned by that user and the group of the client the site belongs to, some directories must be owned by root though. And jail files are owned by root as well. If you changed all files and folders to root now, then you should consider restoring a full backup of the /var/www folder in case you have one. Repairing permissions for all sites is a very time-consuming job.
I am considering a reinstallation of the whole ispconfig. It might be the easiest and fastest way for me. Thanks for your help!
After reinstalltion and the plan to remount the external storage server, I ask myself what might gone wrong the last time. I mount the storage like: xx.xx.xxx.xxx:/xxx /mnt/storagespace nfs auto,rw,user 0 0 and then bind it like following to my www and vmail folders: /mnt/storagespace/vmail /var/vmail none bind,nobootwait,_netdev 0 0 /mnt/storagespace/www /var/www none bind,nobootwait,_netdev 0 0
So it is working now? What did you do differently this time? Maybe you moved the files not preserving owners so they became owned by root?
ispconfig is working but I did not yet try to mount the external storage. Did not express my self correctly. @Taleman: What you say might have been the problem last time. I simply moved all the folders and recreated the folders as mountpoints without considering the owner rights. So that might have set all rights to root. Any hints on how I can solve that without destroing the rights? As mentioned above I used this tutorial: https://www.howtoforge.com/use_moun...ctory_of_a_ispconfig_server_to_a_new_location
No, you are right. I mounted the external storage before and thought that i can use this mentioned guide afterwards. because i thought once mounted i can treat the nfs storage like a normal folder. it seams like this is not true. I will search for infos how its done right now...
I worked my way through this howto which uses different settings for mounting the nfs storage. https://www.howtoforge.com/how-to-install-nfs-client-and-server-on-ubuntu-2004/ After this I could use the howto on binding and moving the www folder as mentioned in the my initial post. Everything works now!