brixsat Posted May 14, 2016 Report Posted May 14, 2016 Hello, Im doing a module for blesta, so it can work with centos web panel. But at some point i need to debug, xdebug but i was not able to do a debug session, it starts at line one of the index and if i say continue to run then it never reaches my breakpoints and gets stuck at loading the webpage in browser. How do you guys debug? I use php-storm and netbeans booth with x-debug. brianlv3 1 Quote
Michael Posted May 14, 2016 Report Posted May 14, 2016 You can try one of these: In the module: Configure::errorReporting(E_ALL); Blesta's own configuration: Configure::errorReporting(0); To: Configure::errorReporting(-1); You can catch errors too, but why would you do one for Centos Webpanel? I wouldn't trust their control panel Quote
brixsat Posted May 14, 2016 Author Report Posted May 14, 2016 why would you not trust their panel? Quote
brixsat Posted May 14, 2016 Author Report Posted May 14, 2016 the Configure::errorReporting(E_ALL); and the blesta config catch's errors and does not allows me to view varaiables and debug. Quote
Michael Posted May 14, 2016 Report Posted May 14, 2016 why would you not trust their panel? Security experts claim there's a lot of security issues in their control panel: http://www.webhostingtalk.com/showthread.php?t=1533898&p=9589180#post9589180 CentOS Web Panel should NOT be used in a production environment; riddled with far too many security vulnerabilities. They are the guys who find issues and report them to vendors to be fixed. They are also very trusted in the hosting industry and until they say otherwise I wouldn't touch it myself. Oh and Keith found some: http://www.webhostingtalk.com/showthread.php?t=1464459&p=9399436#post9399436 but he reported them to the developers but I believe they might have fixed the ones he found. But Patrick and Steven said there are far too many. Blesta Addons 1 Quote
ModuleMatic Posted May 14, 2016 Report Posted May 14, 2016 Your profile image looks delicious. Michael and INUMIO-Rob 2 Quote
activa Posted May 15, 2016 Report Posted May 15, 2016 try to print_r() your variables , that was you can view the value and what is doing . Michael 1 Quote
brixsat Posted May 15, 2016 Author Report Posted May 15, 2016 It is delicious it is called "beijoca" wich means "kiss" in portuguese So if you guys would have to choose a free cpanel what would it be? I was porting blesta to centos web panel since i was expecting to use it as production, but now im a little afraid by the security. Having a error in the addservice on my module and having the security flaws in thinking on not using it. But i would apreciate a free solution. PS: Ispconfig is not an option, i kind of hate it i have 30 websites under ispconfig and ..... laks php support but it works. Quote
brixsat Posted May 15, 2016 Author Report Posted May 15, 2016 activa thanks for the print_r that i know, but debugging "echo style" is not an option, with x-debug improving the area why go old way? That i cannot do. Quote
brixsat Posted May 15, 2016 Author Report Posted May 15, 2016 https://github.com/BrixSat/blesta-centos-web-panel Michael 1 Quote
Michael Posted May 15, 2016 Report Posted May 15, 2016 It is delicious it is called "beijoca" wich means "kiss" in portuguese So if you guys would have to choose a free cpanel what would it be? I was porting blesta to centos web panel since i was expecting to use it as production, but now im a little afraid by the security. Having a error in the addservice on my module and having the security flaws in thinking on not using it. But i would apreciate a free solution. PS: Ispconfig is not an option, i kind of hate it i have 30 websites under ispconfig and ..... laks php support but it works. I'm not a security person but I know Webmin / Virtualmin had a good response from the security guys who help our industry. But be aware of the security panels like Sentora / zPanel they are bad, and Kloxo is another bad free one. serge and Blesta Addons 2 Quote
serge Posted May 16, 2016 Report Posted May 16, 2016 I only rely on webmin/virtualmin as from experience, I found any other panel buggy a lot or finally fully modify the distro (like cpanel), so webmin/virtualmin do not modify the distro, you can still use regular distro command line in case you need. if you do not like their default design/template: this free one is modern & work fine: https://github.com/qooob/authentic-theme Blesta Addons 1 Quote
devonblzx Posted March 30, 2018 Report Posted March 30, 2018 I'm looking for info on this as well, also having issues when trying to run xdebug. The breakpoints have issues and the steps don't seem to work. Perhaps this is due to Ioncube, anyone have any solutions? var_dump/print_r is extremely limited compared to a full debugger. Quote
Blesta Addons Posted March 30, 2018 Report Posted March 30, 2018 try our plugin called the debugger , is in our free subscription plan https://blesta-addons.com/plugin/membership_club/main/ activa 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.