error installing 8.1.0

Permalink
After installing 8.1.0 I get the following error:

file_exists(): open_basedir restriction in effect. File(/var/www/html/fonts.googleapis.com/css) is not within the allowed path(s):(/home/mysite/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/).


I tried uploading again and reinstalling but I get the same error.

I installed 8.1.0 before on the same server but never had any problems. Somebody any idea?

3CGroup
 
hutman replied on at Permalink Reply
hutman
You need to see if your host can change the open_basedir PHP setting on your server to allow this.
3CGroup replied on at Permalink Reply
3CGroup
But what I don't understand I have more then 50 concrete sites on this server and never encountered this problem before, in the php.ini open_basedir has no value. Any suggestions?
ob7dev replied on at Permalink Reply
ob7dev
Where does /var/www/html/fonts.googleapis css actually come from?
3CGroup replied on at Permalink Reply
3CGroup
I don't know, I tried the Concrete 5.7.5.13 and now I get

file_exists(): open_basedir restriction in effect. File(/var/www/html/fonts.googleapis.com/css?family=Titillium+Web:200,400,700,900) is not within the allowed path(s): (/home/mysite/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)


I always could install C5 without any problem, the server is the same and nothing in the settings has changed.
ob7dev replied on at Permalink Reply
ob7dev
The only files I can find inside concrete5 with google in the name are the following:
./concrete/blocks/google_map
./concrete/authentication/google
./concrete/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/Google.php
./concrete/src/Authentication/Type/Google
./concrete/src/Authentication/Type/Google/Factory/GoogleServiceFactory.php
./concrete/src/Authentication/Type/Google/Extractor/Google.php
./concrete/images/icons/social/google.png
./concrete/images/icons/social/google-buzz.png
./concrete/images/icons/social/google-plus.png
./concrete/images/icons/social/google-talk.png

Which is why the error is peculiar to me... I'm not sure what is calling the google font thing in the first place.
Gondwana replied on at Permalink Reply
Gondwana
I wonder if it could be a recent CPanel upgrade, which changed permissions/access to /var. But, as ob7dev alluded to, why something is being put there in the first place is more pertinent. My c5 installations don't do that. Do you have something that uses google fonts?
3CGroup replied on at Permalink Reply
3CGroup
Hi,

well it's just a clean install without any themes. The server has a DirectAdmin panel. I am not aware of any recent updates.
3CGroup replied on at Permalink Reply
3CGroup
when looking into the php.ini I have for open_basedir this value:

open_basedir   /home/totalcarc/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/   no value
ob7dev replied on at Permalink Reply
ob7dev
Well apparently the PHP default is for open_basedir to be NULL or no value.
While researching this I read:
"If you are running a script in your web-root directory tree, you probably have no need for the open_basedir directive. It is meant to be restrictive rather than permissive. Man page here:http://php.net/manual/en/ini.core.php"...

And:
"If instead of safe_mode, you set an open_basedir directory then all file operations will be limited to files under the specified directory. For example (Apache httpd.conf example):" fromhttp://php.net/manual/en/ini.sect.safe-mode.php...

To just run c5 from /var/www/html you could just turn open_basedir off.

Your web host may have applied some security patch that changed you php.ini by the way, it may have been off in the past and may explain why this error just started occuring.

Or try changing open_basedir to add /var/www/html/ since apparently that is your web root directory ( as is by default on all apache2 web servers ).