Menu

this install has not rights to create or update file Data.php

Help
2016-12-05
2022-03-30
  • Francisco Cortes

    I just thougt id share with everyone in case you might encounter this issue
    my box is a centos 7, an instance in google cloud
    when I finally got install ready to go I got this error:

    http://opensis.sourceforge.net/demo/install/step1.php

    oddly there was no info on the error online, (or could it be that is being getting deleted porpusely)? hope not.

    after playing with chown, chmod and getfacl and setfacl for hours without figuring out why apache (the owner/group of the installation folder and the owner of the process running apache) was not able to write to the installation folder, I luckly ran into this post:

    https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/#comment-3294

    turns out that is selinux (security enhanced linux: https://en.wikipedia.org/wiki/Security-Enhanced_Linux) the one that was not allowing the write to occur.

    after setting up the recommend commands on the post for my installation folder folies, I was back in business with my installation.

    Hope this post save you from some grieve.

    cheers

     
  • ken martinson

    ken martinson - 2022-03-30

    This worked for me:
    Find out what user is running apache:
    ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1
    (the user is most likely www-data. It may also be: apache or httpd)

    sudo chown -R yourusername:www-data ./opensis
    sudo chmod -R g+rw ./opensis
    https://unix.stackexchange.com/questions/35711/giving-php-permission-to-write-to-files-and-folders

     

    Last edit: ken martinson 2022-03-30

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.