#239 Directories errors on install process

Stängd
öppnade 3 år sedan av narcisgarcia · 2 kommentarer

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 kommenterad 3 år sedan

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 kommenterad 3 år sedan
Ägare

@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...
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen förvärvare
3 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.