Invalid data directory or directory is not writeable

Fox Mulder Posted in Technical Support 4 years ago

In fact:
ossndata is in /home/myusername/web/mysite.com/ossndata
ossndata permission is 777
ossn
data ownergroup is www-datawww-data
mysite.com ownergroup is myusernamemyusername
ossn files is in /home/admin/web/swife.icu/publichtml
public
html ownergroup is myusernamemyusername

I have tried to use (usuccessfull):
/home/myusername/web/mysite.com/ossndata/
/home/myusername/mysite.com/ossn
data/
/home/myusername/ossndata/
/home/web/mysite.com/ossn
data/
/home/web/ossndata/
/home/ossn
data/
/home/mysite.com/ossndata/
/myusername/web/mysite.com/ossn
data/
/myusername/mysite.com/ossndata/
/myusername/web/ossn
data/
/myusername/ossndata/
/web/mysite.com/ossn
data/
/web/ossndata/
/mysite.com/ossn
data/

I have checked

https://www.opensource-socialnetwork.org/discussion/view/805/invalid-data-directory-or-directory-is-not-writeable
https://www.opensource-socialnetwork.org/discussion/view/1646/invalid-data-directory-or-directory-is-not-writable-error
https://www.opensource-socialnetwork.org/discussion/view/470/invalid-data-directory-or-directory-is-not-writeable
https://github.com/opensource-socialnetwork/opensource-socialnetwork/issues/858
https://forum.infinityfree.net/t/help-install-open-source-social-network/13889
https://forum.infinityfree.net/t/invalid-data-directory-or-directory-is-not-writeable/17857
https://blog.msarhan.com/2019/02/open-source-social-network-invalid-data.html
https://answers.yahoo.com/question/index?qid=20190704155835AApfL1v&guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAAJeASEfMy-sajL8xD082BQFhsebilZIFEag-LtZnuYq9J96d0IhbpUOy6HPjKfP_KtcvDPpKyvgscO8tt1fQEnFmCJPJcBFhkly-Gk_cnuxnvt19ZlC7ADMTmFGYSQwsB7dmTDwFuv49XpqlXD3Izf6YO2WaT8FfMGXWmFKJGx7L

in any case, the script returns an error: "Invalid data directory or directory is not writeable."
Anybody know, what path is correct for this super-usable setup?

thanks in advance

Replies
German Michael Zülsdorff Replied 4 years ago

Thanks for your feedback, Fox.

In case you're not planning to share your server with other sites, I recommend to remove the openbasedir restriction completely, because it has a negative impact on the php performance in general.

ua Fox Mulder Replied 4 years ago

Hi Arsalan Shah!
Thanks for your advice, it really helps. So, for all Vesta Users: You need to check file
/home/youruser/conf/web/yoursite.com.apache2.conf. In this file, check the string
php
adminvalue openbasedir /home/youruser/web/yoursite.com/publichtml:/home/your_user/tmp
Substring after ":" will be your writable data directory (in my case it is "/home/admin/tmp"). I think to create a subdirectory will be a good idea, but I didn't check it.
Also sorry for my English. It, not my native language.
Thanks and regards,
Fox

Indonesian Arsalan Shah Replied 4 years ago

Make sense now because in vestacp you can not use data folder outside public html due to their openbase_dir restriction, you may remove that restriction by searching their community or asking them directly.

ua Fox Mulder Replied 4 years ago

Blockquote
~Z~ Man
Further tell us are you using cpanel? send us screenshot of your cpanel.

Hi Arsalan Shah, ~Z~ Man.
I have VPS (ubuntu 16-64) managed Vesta CP

Indonesian Arsalan Shah Replied 4 years ago

Further tell us are you using cpanel? send us screenshot of your cpanel.

German Michael Zülsdorff Replied 4 years ago

To find out what's going wrong you may run the verifyperms.php utility included with the System Info component. See

https://www.opensource-socialnetwork.org/component/view/1963/system-info