Hi all,
Wanted to give self-hosted Piwigo a try instead of Wordpress for my photo galleries but have hit a wall straight away.
I went for the net install script which I uploaded to the root directory.
However, mydomain.com/install.php returns a HTTP ERROR 500 so I haven't got very far!
Thanks in advance for any suggestions, would love to get this working,
Offline
I changed the PHP version for the domain to 7.3 and now get this string of errors when trying to install (haven't got as far as connecting to the database yet).
Warning: opendir(./language): failed to open dir: No such file or directory in /home/martypics/public_html/admin/include/languages.class.php on line 131
Warning: readdir() expects parameter 1 to be resource, bool given in /home/martypics/public_html/admin/include/languages.class.php on line 132
Warning: closedir() expects parameter 1 to be resource, bool given in /home/martypics/public_html/admin/include/languages.class.php on line 184
Warning: Cannot modify header information - headers already sent by (output started at /home/martypics/public_html/admin/include/languages.class.php:131) in /home/martypics/public_html/install.php on line 238
Warning: include(/home/martypics/public_html/admin/themes/clear/themeconf.inc.php): failed to open stream: No such file or directory in /home/martypics/public_html/include/template.class.php on line 1141
Warning: include(/home/martypics/public_html/admin/themes/clear/themeconf.inc.php): failed to open stream: No such file or directory in /home/martypics/public_html/include/template.class.php on line 1141
Warning: include(): Failed opening '/home/martypics/public_html/admin/themes/clear/themeconf.inc.php' for inclusion (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/martypics/public_html/include/template.class.php on line 1141
Fatal error: Uncaught --> Smarty: Unable to load template 'file:install.tpl' <-- thrown in /home/martypics/public_html/include/smarty/libs/sysplugins/smarty_internal_template.php on line 195
Offline
hello
try install with "manual installation"
Offline
which piwigo package did you download?
Offline
Thanks, that seems to have worked.
Do I need to delete the install directory as the site keeps redirecting to the install.php file even though it is installed?
Any other file/folder permissions need changing to secure the site?
Offline
We don't know your site nor what you did to your installation. Always redirecting to install.php isn't normal, and there also isn't anything you'd have to delete. Check your .htaccess file if any, and what your server configuration (e.g. /etc/apache2/httpd.conf if Apache) has as DirectoryIndex files, it should contain index.php but not install.php.
Anyway, the first thing would be to not use PHP 7.x but 8.1.
Offline
I just followed the instructions to manually install using the download package. It is a brand new clean install.
The installation ran with no errors, but the site just redirects back to the install.php file now.
It doesnt have a .htaccess file and the software didnt generate one so what do I need to put in it to prevent the redirecting?
Offline
Nothing. If it is Piwigo that keeps redirecting (you didn't say whether it's doing that from index.php or your server is) then the installation wasn't successful. Check if local/config/database.inc.php looks complete and sensible and also has an entry
define('PHPWG_INSTALLED', true);
After successful installation it should look like this:
<?php $conf['dblayer'] = 'mysqli'; $conf['db_base'] = 'DATABASENAME'; $conf['db_user'] = 'DBUSER'; $conf['db_password'] = 'DBPASSWORD'; $conf['db_host'] = 'localhost'; $prefixeTable = 'piwigo_'; define('PHPWG_INSTALLED', true); define('PWG_CHARSET', 'utf-8'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); ?>
Offline
Thanks again for the help. The redirect seems to have been a caching issue as it showed the home page after about an hour.
Now I have to learn how to drive it!
Offline