[opensuse] hosting defaults - debug php
Hello I try to make a server with 42.2. I would like to work like most applications man file say, that is ftp to my personal account and configure there (as in shared web) but it never works. vsftpd churns about account permissions and script stop unexpectively I may get around vsftp, but how can I debug a php script? I see nothing in dmesg thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Hello
I try to make a server with 42.2.
I would like to work like most applications man file say, that is ftp to my personal account and configure there (as in shared web)
but it never works.
vsftpd churns about account permissions and script stop unexpectively
I may get around vsftp, but how can I debug a php script? I see nothing in dmesg
Run the script, in apache or from the command line, put into debug output in the places you're investigating. -- Per Jessen, Zürich (18.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 30/03/2017 à 15:32, Per Jessen a écrit :
Run the script, in apache or from the command line, put into debug output in the places you're investigating.
from apache below. From console, no luck, the script simply display an html page is it necessary to put stop points in the script and how? thanks jdd 192.168.1.47 - - [30/Mar/2017:17:49:04 +0200] "GET /~jdd/piwigo/install.php?language=en_GB HTTP/1.1" 200 10228 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:04 +0200] "GET /~jdd/piwigo/_data/combined/ojk9cn.css HTTP/1.1" 200 35408 "http://192.168.1.83/~jdd/piwigo/install.php?language=en_GB" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:04 +0200] "GET /~jdd/piwigo/themes/default/js/plugins/jquery.cluetip.js?v2.8.6 HTTP/1.1" 200 34177 "http://192.168.1.83/~jdd/piwigo/install.php?language=en_GB" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:04 +0200] "GET /~jdd/piwigo/themes/default/js/jquery.min.js?v2.8.6 HTTP/1.1" 200 95957 "http://192.168.1.83/~jdd/piwigo/install.php?language=en_GB" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:05 +0200] "GET /~jdd/piwigo/themes/default/icon/favicon.ico HTTP/1.1" 200 1150 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:05 +0200] "GET /~jdd/piwigo/admin/themes/clear/images/piwigo_logo_big.png HTTP/1.1" 200 6138 "http://192.168.1.83/~jdd/piwigo/install.php?language=en_GB" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:49:11 +0200] "GET /~jdd/piwigo/install.php?language=fr_FR HTTP/1.1" 200 10384 "http://192.168.1.83/~jdd/piwigo/install.php?language=en_GB" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:50:03 +0200] "POST /~jdd/piwigo/install.php?language=fr_FR HTTP/1.1" 500 1837 "http://192.168.1.83/~jdd/piwigo/install.php?language=fr_FR" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" 192.168.1.47 - - [30/Mar/2017:17:50:04 +0200] "GET /favicon.ico HTTP/1.1" 200 302 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 30/03/2017 à 15:32, Per Jessen a écrit :
Run the script, in apache or from the command line, put into debug output in the places you're investigating.
from apache below. From console, no luck, the script simply display an html page
Well, start by enabling error reporting in php, add error_reporting(E_ALL & ~E_NOTICE); Then check your apache error log after you've run the script. Otherwise
is it necessary to put stop points in the script and how?
I am not aware of any interactive debugger for php, a la gdb. You'll have to figure out which bit of code it is you need to look at and put some print statements in, for example. -- Per Jessen, Zürich (16.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
jdd
-
Per Jessen