Apache Error Script Not Found Or Unable To Stat
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us script not found or unable to stat /var/www/cgi-bin Learn more about Stack Overflow the company Business Learn more about hiring developers script not found or unable to stat /usr/lib/cgi-bin/php or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question
Script Not Found Or Unable To Stat /var/www/cgi-bin/test-cgi
and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted
Script Not Found Or Unable To Stat Referer
up and rise to the top script not found or unable to stat: /usr/lib/cgi-bin/php-cgi up vote 8 down vote favorite I have just seen a new series of error in the /var/log/apache2/error.log [Thu Oct 31 06:59:04 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php [Thu Oct 31 06:59:08 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php5 [Thu Oct 31 06:59:09 script not found or unable to stat /var/www/cgi-bin/cgi_wrapper/php 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php-cgi [Thu Oct 31 06:59:14 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php.cgi [Thu Oct 31 06:59:14 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php4 This server is running Ubuntu 12.04lts. I have never seen this sort of attack before, should i be concerned or securing my system in any way for them? Thanks, John apache-2.2 logging share|improve this question asked Oct 31 '13 at 13:54 John 2571616 add a comment| 2 Answers 2 active oldest votes up vote 10 down vote accepted If you're running a default configuration of Apache on Ubuntu (or have used the default config as a blind template for other virtualhost directives) you'll likely find that you have a ScriptAlias directive mapping /cgi-bin/ (relative to the apache document root) to the filesystem location of /usr/lib/cgi-bin/ - so what they're actually trying to load is http://your.host.name/cgi-bin/php4. If you're not using your cgi-bin for anything, you're unlikely to lose anything you care about by commenting out the sections relating to it (and the more defined to your needs your configuration is, the smaller any potential attack surface). You'll
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Target Wsgi Script Not Found Or Unable To Stat
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs script '/var/www/html/index.php' not found or unable to stat Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, testproxy php not found or unable to stat just like you, helping each other. Join them; it only takes a minute: Sign up PHP “unable to stat” error message up vote 4 down vote favorite I often see this error message in my logs and http://serverfault.com/questions/549893/script-not-found-or-unable-to-stat-usr-lib-cgi-bin-php-cgi it is pretty cryptic. What does it mean when they say "unable to stat?" Why does it happen? Here is an example error message: script /dir/dir/script_name.php' not found or unable to stat Thanks, Alex php share|improve this question edited Mar 22 '11 at 23:35 asked Mar 22 '11 at 23:23 Genadinik 4,86541132227 What exact logs? –zerkms Mar 22 '11 at 23:25 PHP error logs. –Genadinik Mar 22 '11 at 23:27 http://stackoverflow.com/questions/5399090/php-unable-to-stat-error-message Can you edit your question with a few example error log messages? There are a few reasons that you could see that message, so we'd want to know what you're seeing so we can explain it best. –Charles Mar 22 '11 at 23:30 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted Most of time unable to stat means the specified file does not exist share|improve this answer answered Mar 22 '11 at 23:35 dynamic 23.8k35106179 4 File does not exist is indeed the most common cause. And the second most common cause is probably permission denied. –Frank Farmer Mar 22 '11 at 23:38 Can I disable writing this error to my logs somehow? –Dmytro Zarezenko Mar 31 at 8:11 Disabling a particular log message may be more of a webserver question. I'd ask a new one for that –Dennis Jun 2 at 12:38 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questi
10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is https://ubuntuforums.org/archive/index.php/t-1481421.html displaying the code (#!...) If I run the scripts on the https://bitnami.com/forums/forums/wampstack/topics/php-file-not-found-or-unable-to-start console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation not found divides the conf file in different parts, so the regular apache2.conf has this: # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf # Include all the user configurations: Include /etc/apache2/httpd.conf # Include ports listing Include /etc/apache2/ports.conf # Include generic snippets of statements Include /etc/apache2/conf.d/ # Include the virtual host configurations: Include /etc/apache2/sites-enabled/under /etc/apache2/mods-enabled/ there's a file not found or (or shortcut to a file) called cgi.load which contains this one line: LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.somod_cgi.so does exist. I can't figure out what I need to do to get CGI working on my server. Any help? I will really appreciate it! cdenleyMay 12th, 2010, 08:38 PMIt should work out-of-the-box. echo -e '#!/usr/bin/perl\nprint "Content-type: text/plain\\n\\n";\nprint "It works!\\n";'|sudo tee /usr/lib/cgi-bin/test.pl sudo chmod 755 /usr/lib/cgi-bin/test.pl echo -e "GET /cgi-bin/test.pl HTTP/1.0\n"|nc -q 1 127.0.0.1 80 gzarkadasMay 12th, 2010, 08:55 PMCheck that your httpd.conf has the line: AddHandler cgi-script .cgi (or .pl if you use perl scripts) Also your site configuration file (inside sites-available) has the lines: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
PM cmbelew 4 post(s) I'm having trouble seeing the testphp file I created and placed in the apache2/htdocs directory. Here's the error as it shows in the log file: [Thu Oct 01 15:22:29 2009] [error] [client 127.0.0.1] script ‘C:/Program Files/BitNami WAMPStack/apache2/htdocs/phptest.php' not found or unable to stat I'm running on Windows XP SP 3. I created a test html page and it shows up just fine when I point to http://127.0.0.1/test.html. When I try and point to http://127.0.0.1/phptest.php, that's when I get the 404 error. Any tips or suggestions would be most appreciated. Thanks, Chris 02 Oct, 2009 06:59 AM Beltrán Rueda Administrator 3,714 post(s) Hi, That is strange, could you post your php script? Could you try to check this php file? 02 Oct, 2009 05:52 PM cmbelew 4 post(s) That is in fact the same script I used. Some additional info, I uninstalled Bitnami and tried XAMPP for Windows as a check to try and isolate the issue. Well, same result. My test HTML file shows up fine but I get the same error when I try the testphp.php file using XAMPP. So, it is either something I'm doing wrong or something related to my particular machine I guess. Any ideas on some things I could try? Thanks again 02 Oct, 2009 05:54 PM cmbelew 4 post(s) oh one more thing, I did uninstall XAMPP and reinstall the Bitnami stack and still having issue. 05 Oct, 2009 06:45 AM Beltrán Rueda Administrator 3,714 post(s) Maybe it is a permission issue. Does the phptest.php script have administrator permissions? 06 Oct, 2009 02:31 AM cmbelew 4 post(s) hey sorry, rookie mistake. I created this test file in Notepad. Though I saved it as phptest.php, under file type I left as a .txt file instead of changing it to All Files type. Therefore, even though it was only showing as phptest.php, it was actually stored as phptest.php.txt, hence why I was getting the 404 error. I was pointing at a file name that did not exist. Thanks again for the help. 06 Oct, 2009 06:21 AM Beltrán Rueda Administrator 3,714 post(s) I'm glad to hear that you have r