-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error in Lemp 16.04 with PHP7 #81
Comments
Check your php error log to see what the actual error is.
…On Mon, Jan 2, 2017 at 9:26 PM ebuy-4-you ***@***.***> wrote:
read of php info shows correct installation while index.php returns unable
to handle this request.
HTTP ERROR 500 with the correct credentials .The setup is over letsEncrypt
SSL
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#81>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjbOoj3yWuQ0Q2Wn8hQiiE10HjtfR3nks5rOdwDgaJpZM4LZWQN>
.
|
No errors in log must be in my security settings but i can not figer it out |
That is a problem if there are no errors in your error log. That error log is your only window into what PHP is doing. If there is a 500 error, it is reported in some log. Try creating a simple hello world php script, and confirm that it runs ok. |
Hello World works fine when syntax error is given reports 500 again the thing is that i am not able to find where the error is my knowledge is limited ;) |
See
http://stackoverflow.com/questions/3531703/how-to-log-errors-and-warnings-into-a-file
Especially
http://stackoverflow.com/a/30799288/2935174
and
http://stackoverflow.com/a/3531765/2935174
…On Tue, Jan 3, 2017 at 10:39 AM, ebuy-4-you ***@***.***> wrote:
Hello World works fine when syntax error is given reports 500 again the
thing is that i am not able to find where the error is my knowledge is
limited ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjbOo1LtBJmdTjb2XnmYtv9vFMs41tsks5rOpXYgaJpZM4LZWQN>
.
--
Steve Hannah
Web Lite Solutions Corp.
|
huh this for Apache i am with Nginx the .htaccess i mean |
I don't use NginX a lot, but there is a fair bit on info out there on how
to set the PHP error log settings/location. E.g.
http://stackoverflow.com/questions/8677493/php-fpm-doesnt-write-to-error-log
http://serverfault.com/questions/417102/nginx-not-logging-php-errors
http://askubuntu.com/questions/493197/unable-to-get-error-stack-trace-or-error-log-while-using-php-fpm-nginx-on-ubun
…On Tue, Jan 3, 2017 at 10:44 AM, ebuy-4-you ***@***.***> wrote:
huh this for Apache i am with Nginx
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjbOtUILk050YT9y4_rMOqWyZ8gDl3xks5rOpcggaJpZM4LZWQN>
.
--
Steve Hannah
Web Lite Solutions Corp.
|
thank you very much for your fast responds :) i thing the problem is Nginx's settings |
Uninstalling and reinstalling reading here and there with out any mod in any part i found this in Nginx's error log ``Stack trace: php7.0-fpm.log
|
Looks like you don't have the mysql extension installed. You should use the mysqli driver in that case http://xataface-tips.blogspot.ca/2014/06/using-mysqli-in-xataface.html |
Done replaced (remove) mysql driver with mysqli gave me this error
then declared the driver in line 33 at and of we go works like a charm :) |
Did you add "driver=mysqli" to the app's conf.ini file?
The fact that it couldn't open the xf/db/drivers/mysql.php file means that
either that file doesn't exist, or you have a permissions problem that is
preventing the web process from accessing it. Directories in Xataface
should be 0755, and PHP files should be 0644.
…On Thu, Jan 5, 2017 at 7:08 AM, ebuy-4-you ***@***.***> wrote:
back again with first app :)
As of Xataface 1.3 all applications are now required to have its own
templates_c directory to house its compiled templates. Please create the
directory "/var/www/html/opencartdb/templates_c" and ensure that it is
writable by the web server.
PHP message: PHP Fatal error: require_once(): Failed opening required
'/var/www/html/xataface/public-api.php' (include_path='.:/usr/share/php')
in /var/www/html/opencartdb/index.php on line 2" while reading response
header from upstream, client: 192.168.1.3, server: xxxxxxxxxx.ga,
request: "GET /opencartdb/index.php HTTP/2.0", upstream:
"fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxxxxxxxxxx.ga"
When creating the templates_c file gives back this 500 error is the same
like installing but this time is asking for for mysql driver that i had
removed so i can make xataface working.
Xataface index is
display(); also the created app with xataface has a web.config file
2017/01/05 16:25:58 [error] 1657#1657: *206 FastCGI sent in stderr: "PHP
message: PHP Warning: require_once(xf/db/drivers/mysql.php): failed to
open stream: No such file or directory in /var/www/html/opencartdb/
xataface/Dataface/Application.php on line 597
PHP message: PHP Fatal error: require_once(): Failed opening required
'xf/db/drivers/mysql.php' (include_path='.:/var/www/
html/opencartdb/xataface:/var/www/html/opencartdb/xataface/lib:/usr/share/php')
in /var/www/html/opencartdb/xataface/Dataface/Application.php on line
597" while reading response header from upstream, client: 192.168.1.3,
server: xxxxxxxxx.ga, request: "GET /opencartdb/index.php HTTP/2.0",
upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxxxxxxxx.ga"
and this is php7.0-fpm.log
[05-Jan-2017 02:03:46] NOTICE: fpm is running, pid 1792
[05-Jan-2017 02:03:46] NOTICE: ready to handle connections
[05-Jan-2017 02:03:46] NOTICE: systemd monitor interval set to 10000ms
[05-Jan-2017 04:34:40] NOTICE: Terminating ...
[05-Jan-2017 04:34:40] NOTICE: exiting, bye-bye!
[05-Jan-2017 04:40:30] NOTICE: configuration file
/etc/php/7.0/fpm/php-fpm.conf test is successful
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjbOvJ7T3XISNb704Sl5Pcbt7GdwCBCks5rPQd4gaJpZM4LZWQN>
.
--
Steve Hannah
Web Lite Solutions Corp.
|
Step by step installing uninstalling reinstalling (now iam with 2.1.2 vertion) i managed after all these errors to see my apps first web screen :) but does not include all my conf.ini tables :( plus all the links are redirecting back to my main page
|
Download the latest from github Version will be 2.2.0 |
read of php info shows correct installation while index.php returns unable to handle this request.
HTTP ERROR 500 with the correct credentials .The setup is over letsEncrypt SSL
The text was updated successfully, but these errors were encountered: