I have set up a new server to move my accounts from my old server. I am trying to remember how I got this working on my older server.
I have a set of php scripts I want all my websites to use and have placed them in /home/scripts.
In the Apache Service Configuration »Apache Configuration »Include Editor I have placed Alias /scripts /home/scripts in the Pre VirtualHost Include then made the Update.
Now when I go to one of my websites example.com/scripts/file.php I get the dreaded 500 error.
I can change the ownership to that example.com user:user and I can then access example.com/scripts/file.php just fine. As soon as I change the ownership to anything other it breaks.
So when I go to example1.com/scripts/file.php I get the 500 error. I change permissions to user1:user1 and it then works but example.com/scripts/file.php stops working.
I have gone into the /etc/group and added root to the end of the line in the wheel group and changed the ownership to root:root for the folder and files in /home/scripts and this is not helping.
Here is the kicker. I have the exact formula working on the original server. I can verify the files and permissions etc on the origional and they are the same on both servers.
Yes I do have root access and yes the few websites I have on the server are all for my company and not sharing with others.
Anyone have an idea what I am missing now.
I have a set of php scripts I want all my websites to use and have placed them in /home/scripts.
In the Apache Service Configuration »Apache Configuration »Include Editor I have placed Alias /scripts /home/scripts in the Pre VirtualHost Include then made the Update.
Now when I go to one of my websites example.com/scripts/file.php I get the dreaded 500 error.
I can change the ownership to that example.com user:user and I can then access example.com/scripts/file.php just fine. As soon as I change the ownership to anything other it breaks.
So when I go to example1.com/scripts/file.php I get the 500 error. I change permissions to user1:user1 and it then works but example.com/scripts/file.php stops working.
I have gone into the /etc/group and added root to the end of the line in the wheel group and changed the ownership to root:root for the folder and files in /home/scripts and this is not helping.
Here is the kicker. I have the exact formula working on the original server. I can verify the files and permissions etc on the origional and they are the same on both servers.
Yes I do have root access and yes the few websites I have on the server are all for my company and not sharing with others.
Anyone have an idea what I am missing now.
Last edited by a moderator: