Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I am trying to trace down a script and have found that my problem is coming from httpd. To summarize that post, something is attempting to connect to a website and is [properly] being blocked by the server firewall. In my test script, attempting to connect to a website times out and generates a PHP warning in the page:
Warning: file_get_contents(http://foobar.com) [function.file-get-contents.html]: failed to open stream: Connection timed out in /home/foo/bar.php on line 3
This server runs with cPanel so I used the cPanel config editor to set error_log to /var/log/php-scripts.log and error_reporting to E_ALL. However, the warning from my test case is not showing up in /var/log/php-scripts.log (though the log is being populated by some PHP Startup warnings).
Can anyone point me in the right direction as to why the warning in my test script isn't being logged? I figure if I can get the timeout warning in my test script to log, then the timeout warning in the malicious script will also be logged and I can find where that script is hiding out.
Thanks!
Make sure that in your php.ini file, error logging is enabled. The following line should be enabled:
php.ini
error_log = /var/log/php-scripts.log
You could also set it to
error_log = syslog
to log all errors to the syslog. After adding the line to your php.ini file, restart httpd like so
$ sudo /etc/init.d/httpd restart
cPanel might not be doing this properly.
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.