permission on files

Author Message

David Ouagne

Thursday 10 April 2008 1:12:46 pm

I have apply this script:

#!/bin/sh

chmod -R ug+rwx design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/storage
chown -R apache:apache design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/storage

chmod -R ug+rwx var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage/original var/storage/reference var/storage/variations
chown -R apache:apache var/cache/codepages var/cache/content var/cache/ini var/cache/override var/cache/template var/cache/template/process var/cache/template/tree var/cache/texttoimage var/cache/translation var/log var/storage/original var/storage/reference var/storage/variations

chmod -R ug+rwx autoload
chown -R apache:apache autoload

the result is these error messages :

Warning: require(autoload/ezp_kernel.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/jardibois.eu/httpdocs/autoload.php on line 34

Warning: require(autoload/ezp_kernel.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/jardibois.eu/httpdocs/autoload.php on line 34

Fatal error: require() [function.require]: Failed opening required 'autoload/ezp_kernel.php' (include_path='.:') in /var/www/vhosts/jardibois.eu/httpdocs/autoload.php on line 34


What's the problem?

Felix Laate

Thursday 10 April 2008 2:37:39 pm

Hi David,

are you positioned in the root of the ezpublish-instalation when you execute this script?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

David Ouagne

Thursday 10 April 2008 11:39:09 pm

Hi,

I hope ... It is not I who is applied the script but my hoster. I am inquiring.

David Ouagne

Friday 11 April 2008 12:11:07 pm

I have several problems permission example:

Could not open file 'var/ezwebin_site/cache/template/compiled/page_footer-b0f27be627fe48178887732ab294c9b5.php.ea84299c0e1da6d47bccef03d283e28e' for writing, perhaps wrong permissions
[ Apr 10 2008 18:20:34 ] [91.163.112.20] eZPHPCreator::store:
Failed to open file 'var/ezwebin_site/cache/template/compiled/page_footer-b0f27be627fe48178887732ab294c9b5.php'
[ Apr 10 2008 18:20:34 ] [91.163.112.20] eZTemplateCompiler::executeCompilation:
Unknown compiled template 'var/ezwebin_site/cache/template/compiled/page_footer-b0f27be627fe48178887732ab294c9b5.php'
[ Apr 10 2008 18:20:36 ] [91.163.112.20] eZINI:
Couldn't create cache file 'var/cache/ini/875bf40b060cb1c4eaa46879dd6c9f85.php', perhaps wrong permissions
[ Apr 10 2008 18:20:36 ] [91.163.112.20] eZINI:
Couldn't create cache file 'var/cache/ini/abae97a647a710d2a0f568751bcdba71.php', perhaps wrong permissions
[ Apr 10 2008 18:20:36 ] [91.163.112.20] eZINI:
Couldn't create cache file 'var/cache/ini/87f270bc2739916ca1f10fbd52714f48.php', perhaps wrong permissions

And

[ Apr 11 2008 20:43:12 ] [217.112.179.95] eZImageHandler::changeFilePermissions:
Chmod 0666 var/ezwebin_site/storage/images/abris-pour-voiture/quelques-realisations/garage-modele-miami/1263-1-fre-FR/Garage-modele-Miami_imagelarge.jpg failed
[ Apr 11 2008 20:43:20 ] [217.112.179.95] eZImageHandler::changeFilePermissions:
Chmod 0666 var/ezwebin_site/storage/images/abris-pour-voiture/quelques-realisations/garage-modele-massif/1259-1-fre-FR/Garage-modele-Massif_gallerythumbnail.jpg failed
[ Apr 11 2008 20:43:20 ] [217.112.179.95] eZImageHandler::changeFilePermissions:
Chmod 0666 var/ezwebin_site/storage/images/abris-pour-voiture/quelques-realisations/garage-modele-miami/1263-1-fre-FR/Garage-modele-Miami_gallerythumbnail.jpg failed

This causes no image in the frontpage, why ?

Carlos Revillo

Friday 11 April 2008 2:13:34 pm

Have you checked your safe_mode setting?
You could check it in your admin site.
Click the setup tab and then system information. You will be shown information about your server configuration. Search for safe_mode. If this setting is set to on, you will have problems in order to work with your cache files.
You can also try to upload a simple php file to your server with <?phpinfo()?> in it and see what it tells.

Some shared hostings have this option enabled for security reasons, but there are many links over the internet telling about the problems of having this setting enabled

There is also some issues reported for EZ
http://issues.ez.no/9662

Hope this helps.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:14:25
Script start
Timing: Jan 18 2025 22:14:25
Module start 'layout'
Timing: Jan 18 2025 22:14:25
Module start 'content'
Timing: Jan 18 2025 22:14:25
Module end 'content'
Timing: Jan 18 2025 22:14:25
Script end

Main resources:

Total runtime0.0229 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.0469152.6250
Module start 'layout' 0.00900.0031 741.671939.4453
Module start 'content' 0.01220.0090 781.117293.3359
Module end 'content' 0.02120.0017 874.453138.3047
Script end 0.0229  912.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.3973140.0002
Check MTime0.00114.8612140.0001
Mysql Total
Database connection0.00198.441510.0019
Mysqli_queries0.003615.556230.0012
Looping result0.00000.069610.0000
Template Total0.00146.110.0014
Template load0.00073.124110.0007
Template processing0.00072.980710.0007
Override
Cache load0.00052.261810.0005
General
dbfile0.004419.012880.0005
String conversion0.00000.034340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs