'Invalid data directory or directory is not writable' error.

Cody Mitchell Posted in Technical Support 9 years ago

Hi,
I am getting this error and have looked across multiple topics that do not seem to fix the problem (or explain it simply enough for my small mind to understand :D).
Could I please get one of the OSSN people to install it for me? (I saw one topic where someone was helped this way). I have already uploaded all the files but cannot get the Data Directory to work. Any help is appreciated.
Thank you,
Cody

Replies
ma Soulaimane bentaleb Replied 8 years ago

hello i have like this problem i`m tired to fix can someone fix for me ?

au Cody Mitchell Replied 9 years ago

Hi Ivan,
Thanks for your reply. Sorry for the long reply time.

Here is what I am doing:

  1. I created a MySQL Database in my cPanel dashboard
  2. I have uploaded the OSSN files to the Directory mysite.com > htdocs in the file manager
  3. I have created a Directory within mysite.com alongside the htdocs directory, and have named it ossn_data
  4. I have set the Chmod on this ossn_data folder to 777
  5. I have gone to the Installation page for my site

On this page I have done the following:

  1. In Database User I have entered in my cPanel/Database Username
  2. In Database Password I have entered in my cPanel/Database Password
  3. In Database Name I have entered the name of my MySQL Database
  4. In Database Host I have entered the name/URL of my Database/cPanel host (e.g. sql###.myhost'ssite.com)
  5. In Website Name I have entered the name of my website
  6. In Site Owner Email I have entered my email address
  7. In Notification Email I have reentered my email address
  8. In OssnSite Url I have entered my site URL
  9. In Data Directory I have entered /mysite.com/ossn_data/
  10. I hit 'Install' and get the invalid data directory message!

I have also (in step 9) tried /hostsiteurl.eu/cpanelusername/mysiteurl.com/ossn_data/ and /home/vol94/hostsiteurl.eu/mycpanelusername/mysiteurl.com/ossndata/ and /mycpanelusername/mysiteurl.com/ossn_data/ and many more... but none of them seem to work!!!

If anyone can see what I am doing wrong that would be awesome, thanks!
Cody

French Ivan Desbananes Replied 9 years ago

Oh i forgot to tell you something. You have to create your Database in your CPanel before

French Ivan Desbananes Replied 9 years ago

In your htdocs folder you have to create a folder ossn_data .
The path of your htdocs will be like that !

HTDOCS
ossn folder (where you have all your folders and your files ossn)
ossn_data folder (the folder you have created for the installation)

After you are just to lauch http://[the domain name you choosed]/ossn/installation and to follow the instructions !

Hope it will help you

French Ivan Desbananes Replied 9 years ago

Hi,
I installed OSSN with your hosts.
I didn't had any problem to install it.
OSSN is correctly installed.

au Cody Mitchell Replied 9 years ago

I have created it outside of my htdocs folder (where the site files are uploaded to). On this particular File Manager (infinityfree.net) I cannot see the public_html directory. Just the different site names (under which are the htdocs directories).
Thanks,
Cody

Indonesian Arsalan Shah Replied 9 years ago

Please see: https://www.opensource-socialnetwork.org/wiki/view/706/how-to-install-open-source-social-network

Did you created datadirectory outside of your publichtml directory ?