therecluse26 / PHP-Login

A login system built with PHP, MySQL, jQuery and Bootstrap
MIT License
836 stars 442 forks source link

Error 500 after installation 100% correct #167

Closed smile73 closed 6 years ago

smile73 commented 6 years ago

Hello,

I have installed it correctly, I have tried several versions of php and in all it appears ERROR 500

Can someone help me please?

abdelouali commented 6 years ago

Hi, check if the permission of the directory's are set to 777.

abdelouali commented 6 years ago

And check if the composer files are installed?

smile73 commented 6 years ago

Hi, I think the composer is well installed, but I'm not sure, I installed it for the first time

Can I tell you my teamviewer data and you go to check in my ubuntu console?

therecluse26 commented 6 years ago

What do your PHP logs say?

On Wed, Mar 28, 2018 at 7:17 PM, smile73 notifications@github.com wrote:

Hi, I think the composer is well installed, but I'm not sure, I installed it for the first time

Can I tell you my teamviewer data and you go to check in my ubuntu console?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/therecluse26/PHP-Login/issues/167#issuecomment-377069149, or mute the thread https://github.com/notifications/unsubscribe-auth/AH24Ali093AWsK0vnkCno9AzrjCF07-vks5tjBoTgaJpZM4S_eQN .

smile73 commented 6 years ago

Hello,

These errors appear in the log:

PHP Fatal error: require_once(): Failed opening required '/login/partials/secureheader.php' (include_path='.:/usr/share/php') in /var/www/html/login/class/pageconstruct.php on line 20 PHP Notice: Undefined index: base_url in /var/www/html/login/class/appconfig.php on line 26 PHP Notice: Undefined property: PageConstruct::$from_email in /var/www/html/login/class/appconfig.php on line 28 PHP Notice: Undefined property: PageConstruct::$admin_email in /var/www/html/login/class/appconfig.php on line 29 PHP Notice: Undefined property: PageConstruct::$timezone in /var/www/html/login/partials/pagehead.php on line 41 PHP Notice: date_default_timezone_set(): Timezone ID '' is invalid in /var/www/html/login/partials/pagehead.php on line 41 PHP Notice: Undefined property: PageConstruct::$base_dir in /var/www/html/login/class/pageconstruct.php on line 20 PHP Warning: require_once(/login/partials/secureheader.php): failed to open stream: No such file or directory in /var/www/html/login/class/pageconstruct.php on line 20

therecluse26 commented 6 years ago

@smile73 Could you try reinstalling (I pushed a couple of small, unrelated bugfixes yesterday which will help you elsewhere)?

Then make sure that all of your files/directories are owned by your webserver user (if it's apache-based it's usually "www-data") and make sure that those files/directories all have the necessary permissions for that user. It sounds like your directory permissions are messed up, like @abdelouali said

If you still need help, yeah you can email me your teamviewer data at braddmagyar@gmail.com and I can take a look