Greetings to all using Piwigo,
Hello, I have my good working PC (WAMP-ms_WS7) site moved to a host providor in The Netherlands as an expiriment as the PC is too funurable and expensive. The site consist of an introduction page with other dive club related info with a link to the Piwigo photoalbum. See : www.delamantijn.nl
The hosted site works partially as I do NOT get acces to the Piwigo fotoalbum.
Inserted in the local/config/ database.inc the following database access code as given by the host providor :
<?php
$conf['dblayer'] = 'mysqli';
$conf['db_base'] = 'db_onderwater';
$conf['db_user'] = 'u_duiker';
$conf['db_password'] = 'plons';
$conf['db_host'] = 'mysql754int.cp.xxxxx.nl';
$prefixeTable = 'piwigo_';
define('PHPWG_INSTALLED', true);
define('PWG_CHARSET', 'utf-8');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
?>
The failure - error starts like :
Warning: include_once(/var/www/vhosts/55/233275/webspace/httpdocs/delamantijn.nl/piwigo/include/derivative_params.inc.php): failed to open stream: Permission denied in /var/www/vhosts/55/233275/webspace/httpdocs/delamantijn.nl/piwigo/include/functions.inc.php on line 32 Warning: include_once(): Failed opening './include/derivative_params.inc.php' for inclusion (include_path='.:/php/includes:/usr/share/pear:/usr/libexec/php4-cgi/share/pear') in /var/www/vhosts/55/233275/webspace/httpdocs/delamantijn.nl/piwigo/include/functions.inc.php on line 32 Notice: ImageStdParams::build_maps(): The script tried to execute a method or access a property of an incomplete object.. etc etc etc. and so on.
Any Idea what else is or could be wrong? Thanks peter de Bruin
Piwigo URL: http://www.delamantijn.nl
Piwigo 2.5.2
Besturingssysteem: WINNT - the old PC Wamp system
PHP: 5.3.13 (Toon info) [2015-11-15 20:59:06]
MySQL: 5.5.24-log [2015-11-15 21:59:06]
Offline
Hi
absoltely not a problem with database access
it's a filesystem permissions problem
you must ensure that all piwigo files are owned by the Unix user of your server (typically www-data or nginx) and chmod files to 644 and folders to 755
Offline
Thank you Mistic-100 for this quick response. More then welcome as it is frustrating to not get the site up and running on the Host while it runs perfectly on the WAMP/PC test server with Dreamweaver. Could you give me an advise how to change the ownership or access of the folders and files. I have made an export file from the PC through my phpmyadmin WAMP console earlier and imported this succesfully into the DBM of the host. Thank you Peter de Bruin.
Offline
Have changed through the file manager of the host all related files into read,write and X-all. See attached picture as an example. The site is now live. Have uploaded some pictures which are handled fine.
However there is now one message : Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in var/www/vhosts/55/233275/webspace/httpdocs/delamantijn.nl/piwigo/include/smarty/libs/Smarty_Compiler.class.php on line 270
Would apprieciate any help resolving this one too. Thanks Peter de Bruin
Offline
Piwigo 2.5.2 !! You really have to be careful and update your software like Piwigo it's now 2.5.6 with many security fixes
Offline