This Help forum is for issues relates to the latest release (1.5.x). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC: 500 internal error on new install

500 internal error on new install 5 years 8 months ago #1

  • Stipriaan
  • Stipriaan's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 3
Today I downloaded the archive and uploaded it to my webserver.

When I try to start the installation I get the "HTTP 500 Internal Server Error" message.

When I look into the httpd error_log I see the following messages :

PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/html/webtrees/includes/session.php on line 207

PHP Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home/html/webtrees/library/autoload.php on line 5

PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/html/webtrees/library/autoload.php on line 5

PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/html/webtrees/library/autoload.php on line 5


Solving the first error will probably solve the others.

Line 207 in session.php contains : set_error_handler(function ($errno, $errstr, $errfile, $errline) {

Anybody have a clue to what might be wrong ?

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12925
What version of PHP do you have on your server?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #3

  • Stipriaan
  • Stipriaan's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 3
PHP Version 5.2.4

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #4

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
Did you not see the minimum requirements?
wiki.webtrees.net/en/PHP_Configuration
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #5

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12925
Which version of webtrees are you installing?

If you are using PHP5.2 (which is very old), then you can only use webtrees 1.4.

If you are using a more recent version of PHP (5.3, 5.4, 5.5 or 5.6), then you can use the latest version of webtrees, 1.5
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #6

  • Stipriaan
  • Stipriaan's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 3
Oops, must have overlooked that one.

Sorry for posting this, will pay better attention next time.

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #7

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1858
Actually it would make sense for the install procedure to check this precondition.
stamboom.BertKoor.nl runs on webtrees v1.7.13

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 8 months ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12925
There is. The first lines of index.php do this.

It worked last time I tried it....
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

500 internal error on new install 5 years 7 months ago #9

I'm getting the 500 error as well and my server is running:
PHP version 5.4.32

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 7 months ago #10

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12925
When a 500 error occurs, an error message will be written to the webserver (e.g. apache) error log.

Can you find your error logs, and tell us the error message.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 7 months ago #11

fisharebest wrote: When a 500 error occurs, an error message will be written to the webserver (e.g. apache) error log.

Can you find your error logs, and tell us the error message.


Believe it or not, the Error Log shows nothing........... blank.
Attachments:

Please Log in or Create an account to join the conversation.

500 internal error on new install 5 years 7 months ago #12

OK, it was "permissions".

I had changed the directory perm. but not the files.
(Strange it isn't writing to the Error Log)

Now, does every, single file have to be changed to 644?

Please Log in or Create an account to join the conversation.

Last edit: by Bill.
  • Page:
  • 1
Powered by Kunena Forum