#239 Directories errors on install process

Closed
opened 3 years ago by narcisgarcia · 2 comments

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 commented 3 years ago

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 commented 2 years ago
Owner

@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...
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.