Php not found or unable to stat

Форум

Всем доброго дня.
У меня возникла проблема с установкой Демо-версии битрикса на локальный компьютер. При открытии виртуального хоста где загружены файлы битрикса отображается пустая страница.
http://bitrix.localhost/
В логах апача появляются ошибки такого типа:

child pid 4105 exit signal Segmentation fault (11)

Если обратиться сразу к http://bitrix.localhost/index.php то браузер предлагает сохранить его как файл, и в логах появляются уже другие ошибки:

script '/var/www/bitrix/bitrix/urlrewrite.php' not found or unable to stat

Знаю что проблема скорее всего в неправильной конфигурации веб-сервера, но не могу найти в чем проблема. Может кто сталкивался с такой проблемой?
Заранее спасибо за ответы.

Установка чистая, скачал стандартный дистрибутив битрикса, распаковал, и пробую продолжать как написано в руководстве, но возникают выше описаные ошибки. Файлы php обрабатываются, на других виртуальных хостах другие cms и прочие скрипты — работают, только что создал в каталоге с битриксом тестовый php файл test.php . http://bitrix.localhost/test.php — работает, php код интерпретируется.

Options -Indexes ErrorDocument 404 /404.php php_flag allow_call_time_pass_reference 1 #php_flag session.use_trans_sid off #php_value display_errors 1 #php_value mbstring.func_overload 2 #php_value mbstring.internal_encoding UTF-8 Options +FollowSymLinks RewriteEngine On RewriteCond % !-f RewriteCond % !-l RewriteCond % !-d RewriteCond % !/bitrix/urlrewrite.php$ RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] DirectoryIndex index.php index.html ExpiresActive on ExpiresByType image/jpeg "access plus 3 day" ExpiresByType image/gif "access plus 3 day" 

Источник

Читайте также:  Border bottom css длина

PHP «unable to stat» error message

[error] [client 127.0.0.1] script ‘/var/www/html/wp-cron.php’ not found or unable to stat, Can you replace Mage Hand with another cantrip after taking the Telekinetic feat and still benefit from the increased range? ,There are no other errors like that in the logs, and WordPress seems to run fine. But I want to fix these errors, as it’s a bit of an extra load on the server.,Asking for help, clarification, or responding to other answers.

You could set the DocumentRoot to be the same as the default site (if that’s what you want for requests to the IP address), or you use a RewriteRule to rewrite the request back to the main site either in the httpd.conf or in the .htaccess file:

 RewriteRule wp-cron.php http://yourdomainname.com/wp-cron.php [R=301] 

Answer by Harley Harrington

I am receiving the following error log on my apache2 server:, How to get the remote hostname resolved through DNS when using Nginx and ModSecurity? ,These are being logged because the PHP script corresponding to the URL does not exist or cannot be accessed. A 404 error is returned.,kg on Matching autonomous system numbers in iptables

I am receiving the following error log on my apache2 server:

[Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script ‘/var/www/echo.php’ not found or unable to stat, referer: https://www.google.com/
[Mon Dec 24 18:16:33.851584 2018] [php7:error] [pid 19523] [client 91.211.247.248:45013] script ‘/var/www/xmlrpc.php’ not found or unable to stat
[Tue Dec 25 03:28:48.912986 2018] [php7:error] [pid 19551] [client 185.244.25.106:47712] script ‘/var/www/index.php’ not found or unable to stat
[Tue Dec 25 04:15:30.013401 2018] [php7:error] [pid 19527] [client 118.25.71.119:37946] script ‘/var/www/help.php’ not found or unable to stat
I am sure that’s just bruteforcing on existing scripts.
But how can this throw a PHP7 error?
What do the ports mean as I am not using any of those?
[Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to stat, referer: https://www.google.com/ [Mon Dec 24 18:16:33.851584 2018] [php7:error] [pid 19523] [client 91.211.247.248:45013] script '/var/www/xmlrpc.php' not found or unable to stat [Tue Dec 25 03:28:48.912986 2018] [php7:error] [pid 19551] [client 185.244.25.106:47712] script '/var/www/index.php' not found or unable to stat [Tue Dec 25 04:15:30.013401 2018] [php7:error] [pid 19527] [client 118.25.71.119:37946] script '/var/www/help.php' not found or unable to stat

Answer by Jenesis Bishop

On a new installation of Ubuntu 14.04, I copied several php files, they worked fine in another computer.,The strange thing is almost all pages are showing right but with some of them I get 404 Not Found., Meta Discuss the workings and policies of this site ,Thanks for contributing an answer to Ask Ubuntu!

I found my mistake, Now I have to use in the address the name of the file exactly as it is. Before I could use

sistemas/garantias/imprimir_solicitud.php 

and it would show me the page, now I must use the name as it is:

http://sistemas/garantias/Imprimir_solicitud.php 

Answer by Lillian Khan

I successfully installed Sentrifugo, when I login I get a error in apache error log. When I try to do any sort form post I get 503 error. I have even tried reinstalling several times but the same error!, The text was updated successfully, but these errors were encountered: ,Successfully merging a pull request may close this issue.,Match the required packages on the following link: http://www.sentrifugo.com/installation-guide

…t-reporting-manager Remove department id from reporting manager query

Answer by Fox Coffey

How to pass parameters to file path? This is what I’m trying to do: «` */2 * * * * /usr/bin/php /var/www/mysite/public_html/cron/cron.php?group=3 >> /var/www/mysite/public_html/cron/cron.log 2>&1 «` I also tried without the question mark. Write for DigitalOcean , question Pass Parameters In Cron URL — PHP How to pass parameters to file path? This is what I’m trying to do: «` */2 * * * * /usr/bin/php /var/www/mysite/public_html/cron/cron.php?group=3 >> /var/www/mysite/public_html/cron/cron.log 2>&1 «` I also tried without the question mark. , DigitalOcean on GitHub

then copy jail.conf to jail.local

cd /etc/fail2ban cp jail.conf jail.local 
[apache-noscript] enabled=true 

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

/public/index.php not found or unable to stat #37

/public/index.php not found or unable to stat #37

Comments

Great job in creating an awesome HRMS!

I have a Mac running latest El capitan 10.11.5, I have installed Apache, MySQL, PHP and I have other web apps working perfectly fine.

I successfully installed Sentrifugo, when I login I get a error in apache error log. When I try to do any sort form post I get 503 error. I have even tried reinstalling several times but the same error!

Error log from file —
[Wed Jun 29 17:03:26.166609 2016] [:error] [pid 2080] [client 127.0.0.1:53573] script ‘/Library/WebServer/Documents/projects/sentri/sentrifugo-master/public/index.php’ not found or unable to stat, referer: http://projects/sentri/sentrifugo-master/index.php/employee/

The text was updated successfully, but these errors were encountered:

Источник

Cacti

Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.

/var/www/html/graph_image.php’ not found or unable to stat,

/var/www/html/graph_image.php’ not found or unable to stat,

Post by todd.seidenberg » Tue Jun 17, 2008 9:06 am

I’m sure this is a simple issue, but I’m not sure where to look, so I’m asking for some help.

I’ve got Cacti running nicely. I’ve got Nagios running nicely. I even have NPC running nicely. However, when I try to click on a graph from within NPC, I get the following error in my /var/log/httpd/error.log:

/var/www/html/graph_image.php' not found or unable to stat

Now, I know that the graph_image.php file is in the cacti directory — and I have a /var/www/html/cacti/graph_image.php file in place. But for some reason, my NPC setup is looking for everything in /var/www/html, instead of /var/www/html/cacti.

Any thoughts on this? What setting to I need to change to make NPC look in the correct directory?

Linegod Developer Posts: 1626 Joined: Thu Feb 20, 2003 10:16 am Location: Canada Contact:

Post by Linegod » Tue Jun 17, 2008 10:34 am

By the looks of it, it has hard coded ‘/graph_image.php’ in quite a few files. Changing that should solve your problem:

js/src/monitoring/services/serviceDetail.js
js/src/monitoring/services/services.js
js/src/monitoring/hosts/hosts.js
js/src/monitoring/hosts/hostDetail.js
js/src/npc.js
js/npc-all-min.js

Long term fix would have to be done by the plugin developer.


Live fast, die young
You’re sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca

Post by todd.seidenberg » Tue Jun 17, 2008 10:53 am

I went ahead, and changed the reference in all of those files from ‘/graph_image.php’ to ‘cacti/graph_image.php’

but I still get the following in my error log:

script '/var/www/html/graph_image.php' not found or unable to stat, referer: http://skeeter/cacti/plugins/npc/npc.php?module=layoutDev&action=drawLayout 

Is there somewhere else that I need to make the change?

Linegod wrote: By the looks of it, it has hard coded ‘/graph_image.php’ in quite a few files. Changing that should solve your problem:

js/src/monitoring/services/serviceDetail.js
js/src/monitoring/services/services.js
js/src/monitoring/hosts/hosts.js
js/src/monitoring/hosts/hostDetail.js
js/src/npc.js
js/npc-all-min.js

Long term fix would have to be done by the plugin developer.

Linegod Developer Posts: 1626 Joined: Thu Feb 20, 2003 10:16 am Location: Canada Contact:

Post by Linegod » Tue Jun 17, 2008 11:15 am


Live fast, die young
You’re sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca

Post by todd.seidenberg » Tue Jun 17, 2008 11:47 am

Yeah. you’re right. Those are the only places that the graph_image.php shows up. So what could be the problem?

I can see all of my graphs when i click on the graphs tab, but when I try and click on the little graphs button in my host listing from within NPC, I get the error.

weird. My cacti/include/global.php file has the following line:

And that appears to work just fine for everything else. Could it be something outside of the NPC plugin?

Linegod Developer Posts: 1626 Joined: Thu Feb 20, 2003 10:16 am Location: Canada Contact:

Post by Linegod » Tue Jun 17, 2008 12:34 pm


Live fast, die young
You’re sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca

Post by todd.seidenberg » Tue Jun 17, 2008 12:37 pm

The weird thing is the changes I made had no affect on the results. Nothing I’ve done has made a difference.

Do the *.js files need to be re-read somehow? Is there a way to force that? or are they read in on the fly?

Or, again, is there somewhere else that I need to make a change?

todd.seidenberg wrote: Yeah. you’re right. Those are the only places that the graph_image.php shows up. So what could be the problem?

I can see all of my graphs when i click on the graphs tab, but when I try and click on the little graphs button in my host listing from within NPC, I get the error.

weird. My cacti/include/global.php file has the following line:

And that appears to work just fine for everything else. Could it be something outside of the NPC plugin?

Источник

Оцените статью