Can't write installing OSSN

Discussion in 'General' started by Rafael Geiger, Oct 26, 2020.

  1. Rafael Geiger

    Rafael Geiger New Member

    Hi,
    I am trying to ionstall OSSN an My fresh ISPC 3.1 installation but I cannot get forward because the installation keeps telling me
    "Invalid data directory or directory is not writeable".
    The installation nned the folder to be writable) /var/www/clients/clientX/webX/ossn_data/

    I have already set the Folder permissions to 777, and I have tried to set the directory to PHP open_basedir.

    But none is working and also a search dindnt help me to get this solved?
    What am I doing wrong?
    This issue should be easy to get solved but I could not find the solution.

    Can someone please help me on this?
    htf_report appended ;)
     

    Attached Files:

  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    777 isn't needed, and often opens you to various disclosures/attacks. Ensure you're using php-fpm mode with suexec set in the website settings, then your ossn_data directory should have the same owner/group as it's webX/ parent (ie. owner webX, group clientX), and use something like 750 permission.
     
  3. Rafael Geiger

    Rafael Geiger New Member

    OK the perms are set to 750 now. suexec is activated, PHP mode is set to PHP-FPM, but I keep getting the same error ;(
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    `ls -ld /var/www/clients/clientX/webX/ossn_data/`

    You could create a little php file that runs phpinfo() and ensure the user/group is what you think/expect.

    If the owner/group and permissions are correct, you might search ossn for that error message ('Invalid data directory or directory is not writeable') and see what test it's using to determine that it's not writeable.
     
  5. Rafael Geiger

    Rafael Geiger New Member

    the permissions give the correctvalues in the phpinfo file: --with-fpm-user=www-data' '--with-fpm-group=www-data' '

    Error reporting cannot be turned on inside OSSN because its not installed!
    The Apache logs donot give informations on this ;(

    I appended some screenshots of the set dir permissons
    , the ispc settings and a part of the phpinfo output. ;)
     

    Attached Files:

  6. Rafael Geiger

    Rafael Geiger New Member

    The PHP version was set to 5.6 but also setting it to 7.1 did not solve it!
     
  7. Rafael Geiger

    Rafael Geiger New Member

    the search for "" in the OSSN folder leads to changelog.txt, but I donot have a clue whats meant inside the the file (appended)
     

    Attached Files:

  8. Rafael Geiger

    Rafael Geiger New Member

    would realy appreciate it if anybody could help me to get that fixed!
    Facebook was locking me out and also locked my group for any posts because their fake checkers where find my posts out of the FB community standards. So I need to realize the OSSN solution to enlighten my buddys with the truth behind the Covid fakes! Thanks for helping me!
     
  9. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Neither php nor the website should run as 'www-data' user.

    The setting is checked - maybe verify that you actually have suexec installed.
     
  10. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Ah, that was just from the "configure command", which shouldn't be a problem. php-fpm itself should run as your web# user.
     
  11. Rafael Geiger

    Rafael Geiger New Member

    Hi, I reinstalled suexec (wasnt installed):
    apache2-suexec-custom

    but OSSN keeps showing me the same error:
    Invalid data directory or directory is not writeable.

    Thanks 4 ur help :D
     
  12. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    So phpinfo() shows the site running as USER web1?

    From your screenshot, your web directory is mode 711, try changing that to 750. (You might also remove the _data directory, or fix the mode 777 perms on it if it's needed.)

    Other than that, go back to:
     

Share This Page