#239 Directories errors on install process

Suljettu
3 vuotta sitten avasi narcisgarcia · 2 kommenttia

I downloaded package from https://notabug.org/diogo/gnu-social/archive/nightly.tar.gz and unpacked in a website root directory. Gave all permissions to whole tree.

I had to visit (undocumented) /public/install.php page to find a web wizard to setup this CMS, but these are the errors it reports to me:

GNU social was unable to create a directory on this path: /srv/www/testing/site.tree/public/file/avatar/

Warning: mkdir(): No such file or directory in /srv/www/testing/site.tree/public/lib/util/installer.php on line 174

GNU social was unable to create a directory on this path: /srv/www/testing/site.tree/public/file/

I've also tried with giving the most insecure permissions, but no success:

chmod -R a+rwX /srv/www/testing/site.tree/public

I downloaded package from https://notabug.org/diogo/gnu-social/archive/nightly.tar.gz and unpacked in a website root directory. Gave all permissions to whole tree. I had to visit (undocumented) /public/install.php page to find a web wizard to setup this CMS, but these are the errors it reports to me: GNU social was unable to create a directory on this path: /srv/www/testing/site.tree/public/file/avatar/ Warning: mkdir(): No such file or directory in /srv/www/testing/site.tree/public/lib/util/installer.php on line 174 GNU social was unable to create a directory on this path: /srv/www/testing/site.tree/public/file/ I've also tried with giving the most insecure permissions, but no success: chmod -R a+rwX /srv/www/testing/site.tree/public
Gijs kommentoitu 3 vuotta sitten

In my case, the installation completes when you manually add

 mkdir /var/www/gnu-social/file/
 mkdir /var/www/gnu-social/file/avatar
In my case, the installation completes when you manually add ``` mkdir /var/www/gnu-social/file/ mkdir /var/www/gnu-social/file/avatar ```
Diogo Cordeiro kommentoitu 3 vuotta sitten
Omistaja

@Gijs's solution should work, it's weird that even with permissions it couldn't create. I would check if the owner and group of the tree are compatible with the user being used by the PHP queue. But that part of the code seems fine, it really must be an issue with the way you're configuring your webserver. But, if it is able to store media and avatar after installed, you shouldn't have to concern much about it...

@Gijs's solution should work, it's weird that even with permissions it couldn't create. I would check if the owner and group of the tree are compatible with the user being used by the PHP queue. But that part of the code seems fine, it really must be an issue with the way you're configuring your webserver. But, if it is able to store media and avatar after installed, you shouldn't have to concern much about it...
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
3 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.