- Posts: 3
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.
Before asking for help please read "How to request help" by clicking on that tab above here.
Question 500 internal error on new install
- Stipriaan
- Topic Author
- Offline
- New Member
Less
More
9 years 6 months ago #1
by Stipriaan
500 internal error on new install was created by Stipriaan
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 ?
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.
- fisharebest
- Offline
- Administrator
9 years 6 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic 500 internal error on new install
What version of PHP do you have on your server?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Stipriaan
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
9 years 6 months ago #3
by Stipriaan
Replied by Stipriaan on topic 500 internal error on new install
PHP Version 5.2.4
Please Log in or Create an account to join the conversation.
- ToyGuy
- Offline
- Moderator
- Live like it's Christmas every day - Santa Stephen
9 years 6 months ago #4
by ToyGuy
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
Replied by ToyGuy on topic 500 internal error on new install
Did you not see the minimum requirements?
wiki.webtrees.net/en/PHP_Configuration
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.
- fisharebest
- Offline
- Administrator
9 years 6 months ago #5
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic 500 internal error on new install
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
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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Stipriaan
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
9 years 6 months ago #6
by Stipriaan
Replied by Stipriaan on topic 500 internal error on new install
Oops, must have overlooked that one.
Sorry for posting this, will pay better attention next time.
Sorry for posting this, will pay better attention next time.
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
9 years 6 months ago #7
by bertkoor
stamboom.BertKoor.nl runs on webtrees v1.7.13
Replied by bertkoor on topic 500 internal error on new install
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.
- fisharebest
- Offline
- Administrator
9 years 6 months ago #8
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic 500 internal error on new install
There is. The first lines of index.php do this.
It worked last time I tried it....
It worked last time I tried it....
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Bill
- Offline
- New Member
Less
More
- Posts: 66
9 years 5 months ago #9
by Bill
Replied by Bill on topic 500 internal error on new install
I'm getting the 500 error as well and my server is running:
PHP version 5.4.32
PHP version 5.4.32
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
9 years 5 months ago #10
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic 500 internal error on new install
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.
Can you find your error logs, and tell us the error message.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Bill
- Offline
- New Member
Less
More
- Posts: 66
9 years 5 months ago #11
by Bill
Replied by Bill on topic 500 internal error on new install
Please Log in or Create an account to join the conversation.
- Bill
- Offline
- New Member
Less
More
- Posts: 66
9 years 5 months ago - 9 years 5 months ago #12
by Bill
Replied by Bill on topic 500 internal error on new install
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?
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?
Last edit: 9 years 5 months ago by Bill.
Please Log in or Create an account to join the conversation.