Announcement

#1 2023-12-03 09:07:40

JamLev
Member
2023-12-03
7

HTTP ERROR 500 on fresh install

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

 

#2 2023-12-03 09:22:29

JamLev
Member
2023-12-03
7

Re: HTTP ERROR 500 on fresh install

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

 

#3 2023-12-03 09:47:58

k5
Member
2017-11-05
68

Re: HTTP ERROR 500 on fresh install

hello
try install with "manual  installation"

https://i.imgur.com/1XyHLW6.jpg

Offline

 

#4 2023-12-03 10:43:17

executive
Member
2017-08-16
1214

Re: HTTP ERROR 500 on fresh install

which piwigo package did you download?

Offline

 

#5 2023-12-03 11:30:57

JamLev
Member
2023-12-03
7

Re: HTTP ERROR 500 on fresh install

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

 

#6 2023-12-03 11:57:03

erAck
Only trying to help
2015-09-06
2043

Re: HTTP ERROR 500 on fresh install

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2023-12-03 12:14:23

JamLev
Member
2023-12-03
7

Re: HTTP ERROR 500 on fresh install

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

 

#8 2023-12-03 13:25:53

erAck
Only trying to help
2015-09-06
2043

Re: HTTP ERROR 500 on fresh install

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:

Code:

<?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', '');

?>

Running Piwigo at https://erack.net/gallery/

Offline

 

#9 2023-12-04 05:37:50

JamLev
Member
2023-12-03
7

Re: HTTP ERROR 500 on fresh install

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact