how to include php files from another user on same box
HI
I have a VPS which only I access, no clients sites etc.
I have a centralised CMS system which i use to feed web pages on different sites. on these sites they have one php include which pulls in the script from the CMS account.
I have just moved to another VPS and I cannot remember for the life of me how I managed to set it up on the old vps so I can include these scripts.
I know it aint the most secure thing to do but I need to work this out first then work on a more secure solution.
Looking at my old server i am using suphp on php5 and all looks the same as the old server.
Can anyone help?
-
Hello :) Using a path to files from another account is not recommended. Ideally, you should simply upload the same set of files to the accounts. Or, since you own all of the websites, you could setup the additional accounts as addon domain names instead of keeping them separate. Assuming you accept the security risk, you may want to review the php.ini files on both systems to compare the differences. Or, check to see the specific error message that occurs when attempting to open the web page. Thank you. 0 -
[quote="cPanelMichael, post: 1734961">Hello :) Using a path to files from another account is not recommended. Ideally, you should simply upload the same set of files to the accounts. Or, since you own all of the websites, you could setup the additional accounts as addon domain names instead of keeping them separate. Assuming you accept the security risk, you may want to review the php.ini files on both systems to compare the differences. Or, check to see the specific error message that occurs when attempting to open the web page. Thank you.
I have tried comparing, not sure which setting am looking for. Can someone point me to the setting i should look for please.0 -
You may find this thread helpful: Access Files Outside Home Directory Thank you. 0
Please sign in to leave a comment.
Comments
3 comments