#239 Directories errors on install process

已關閉
narcisgarcia3 年之前創建 · 2 條評論

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 年之前

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 3 年之前
所有者

@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...
diogo3 年之前 關閉
Sign in to join this conversation.
未選擇里程碑
未指派成員
3 參與者
正在加載...
取消
保存
尚未有任何內容