We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Owncloud/Nextcloud -> /dev/urandom
Owncloud/Nextcloud -> /dev/urandom
Hey,
I run on my server with vestacp several owncloud/nextcloud installations and all of them says that /dev/urandom is not readable from php. Does anyone have the same problem? How can I fix it?
I run on my server with vestacp several owncloud/nextcloud installations and all of them says that /dev/urandom is not readable from php. Does anyone have the same problem? How can I fix it?
Re: Owncloud/Nextcloud -> /dev/urandom
Please provide OS and VestaCP Version information that we can help you. Maybe it's a problem with the open_basedir restriction inside of your template file:
You have maybe to add an exception.
Code: Select all
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
Re: Owncloud/Nextcloud -> /dev/urandom
I use Vesta 0.9.8-17 on Debian 8.
This is my sapache2.conf file, I think all looks right:
The "normal" apache2.conf looks (at the open_basedir part) identical. Other VestaCP Users on my server have the same problem.
This is my sapache2.conf file, I think all looks right:
Code: Select all
<VirtualHost IP:8443>
ServerName DOMAIN
ServerAlias www.DOMAIN
ServerAdmin info@DOMAIN
DocumentRoot /home/admin/web/DOMAIN/public_html
ScriptAlias /cgi-bin/ /home/admin/web/DOMAIN/cgi-bin/
Alias /vstats/ /home/admin/web/DOMAIN/stats/
Alias /error/ /home/admin/web/DOMAIN/document_errors/
#SuexecUserGroup admin admin
CustomLog /var/log/apache2/domains/DOMAIN.bytes bytes
CustomLog /var/log/apache2/domains/DOMAIN.log combined
ErrorLog /var/log/apache2/domains/DOMAIN.error.log
<Directory /home/admin/web/DOMAIN/public_html>
AllowOverride All
SSLRequireSSL
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/admin/web/DOMAIN/public_html:/home/admin/tmp
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value session.save_path /home/admin/tmp
</Directory>
<Directory /home/admin/web/DOMAIN/stats>
AllowOverride All
</Directory>
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /home/admin/conf/web/ssl.DOMAIN.de.crt
SSLCertificateKeyFile /home/admin/conf/web/ssl.DOMAIN.key
SSLCertificateChainFile /home/admin/conf/web/ssl.DOMAIN.ca
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RGroups www-data
</IfModule>
<IfModule itk.c>
AssignUserID admin admin
</IfModule>
IncludeOptional /home/admin/conf/web/sapache2.DOMAIN.conf*
</VirtualHost>
Re: Owncloud/Nextcloud -> /dev/urandom
Check your apache2 template you use, then you can create an own template:
Then modify both files and change the line:
Now you can choose the new created template file inside of your web -> domain -> apache2 template -> owncloud.
Code: Select all
cd /usr/local/vesta/data/templates/web/apache2
cp default.tpl owncloud.tpl
cp default.stpl owncloud.stpl
Code: Select all
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
to
php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/dev/urandom
Re: Owncloud/Nextcloud -> /dev/urandom
Thanks! But when I try to upgrade nextcloud I get the following error:
SplFileInfo::isDir(): open_basedir restriction in effect. File(/home/admin/web/DOMAIN/public_html/updater/../..) is not within the allowed path(s): (/home/admin/web/DOMAIN/public_html:/home/admin/tmp:/dev/urandom)
How can I fix this?
SplFileInfo::isDir(): open_basedir restriction in effect. File(/home/admin/web/DOMAIN/public_html/updater/../..) is not within the allowed path(s): (/home/admin/web/DOMAIN/public_html:/home/admin/tmp:/dev/urandom)
How can I fix this?
Re: Owncloud/Nextcloud -> /dev/urandom
Hmm, intresting, the path /home/admin/web/DOMAIN/public_html/updater/ is inside of /home/admin/web/DOMAIN/public_html so it should work. not really a "pro" in open_basedir restriction, maybe someone else in the forum can help to find a solution?Lone wrote:Thanks! But when I try to upgrade nextcloud I get the following error:
SplFileInfo::isDir(): open_basedir restriction in effect. File(/home/admin/web/DOMAIN/public_html/updater/../..) is not within the allowed path(s): (/home/admin/web/DOMAIN/public_html:/home/admin/tmp:/dev/urandom)
How can I fix this?
Re: Owncloud/Nextcloud -> /dev/urandom
Templates was nice, but who will be make rebuild web?
Mm, guys? ;-)
Mm, guys? ;-)
Re: Owncloud/Nextcloud -> /dev/urandom
Hmm, is rebuild web really needed, if you change from one template (for example default) to another? As far as I know, vestacp will do it automatically on every template change.skurudo wrote:Templates was nice, but who will be make rebuild web?
Mm, guys? ;-)
Re: Owncloud/Nextcloud -> /dev/urandom
ScIT, I think to be sure, rebuild will be right choice.