i install laravel 5.5 in my server
it's work well in local host and in one of my servers
when i transfer it to another server it give me error
mydomain.com is currently unable to handle this request.
HTTP ERROR 500
and i get this error on my cpanel error
[Wed Aug 29 13:27:12.060112 2018] [cpanel:warn] [pid 24177:tid 140535283795712] mod_cpanel cpanel_open_htaccess(): Cache-miss: htaccess request for '/home/username/public_html/projectfolder/.htaccess'
[Wed Aug 29 13:27:12.060104 2018] [cpanel:warn] [pid 24177:tid 140535283795712] mod_cpanel cpanel_open_htaccess(): Caching htaccess request for '/home/username/public_html/.htaccess'
[Wed Aug 29 13:27:12.060093 2018] [cpanel:warn] [pid 24177:tid 140535283795712] mod_cpanel cpanel_open_htaccess(): Cache-miss: htaccess request for '/home/username/public_html/.htaccess'
[Wed Aug 29 13:27:12.059812 2018] [cpanel:warn] [pid 24177:tid 140535283795712] mod_cpanel cpanel_open_htaccess(): Cache-miss: htaccess request for '/home/username/.htaccess'
Related
I have tried launching the built-in PHP server using the command as seen in the code but I'm getting a 500 server error which seems to have something to do the SSL of my browser. To clarify, I'm not asking how to serve the php serve with SSL. I'm seeking a solution as to why my php artisan serve is throwing an SSL error.
php artisan serve
I have tried going incogonito, using another browser
Here's the logs from the command line:
Laravel development server started: <http://127.0.0.1:8000>
[Sun Sep 8 17:27:00 2019] 127.0.0.1:64517 Invalid request (Unsupported SSL request)
[Sun Sep 8 17:27:01 2019] 127.0.0.1:64523 [200]: /favicon.ico
[Sun Sep 8 17:27:23 2019] 127.0.0.1:64531 [200]: /favicon.ico
[Sun Sep 8 17:27:29 2019] 127.0.0.1:64532 Invalid request (Unsupported SSL request)
[Sun Sep 8 17:27:29 2019] 127.0.0.1:64533 Invalid request (Unsupported SSL request)
[Sun Sep 8 17:27:32 2019] 127.0.0.1:64534 Invalid request (Unsupported SSL request)
[Sun Sep 8 17:27:37 2019] 127.0.0.1:64536 Invalid request (Unsupported SSL request)
[Sun Sep 8 17:27:42 2019] 127.0.0.1:64549 [200]: /favicon.ico
[Sun Sep 8 17:31:41 2019] 127.0.0.1:64730 [200]: /favicon.ico
i have an angular application with Yii2 restful , when i load application there are a lot of resources with multiple rest api requests at the first.
sometimes a rest api failed with (failed) status and net::ERR_CONNECTION_RESET in chrome browser. when an api request failed all other api requests also failed.
i'm using windows , apache , php 7.1 (xampp)
also i have same problem with linux and nginx
my apache error log :
[Tue Oct 09 11:16:12.832792 2018] [mpm_winnt:notice] [pid 3392:tid 508] AH00428: Parent: child process 11936 exited with status 3221226356 -- Restarting.
[Tue Oct 09 11:16:13.038794 2018] [ssl:warn] [pid 3392:tid 508] AH01909: www.example.com:4433:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 09 11:16:13.061795 2018] [mpm_winnt:notice] [pid 3392:tid 508] AH00455: Apache/2.4.33 (Win32) OpenSSL/1.0.2n PHP/7.1.16 configured -- resuming normal operations
[Tue Oct 09 11:16:13.061795 2018] [mpm_winnt:notice] [pid 3392:tid 508] AH00456: Apache Lounge VC14 Server built: Mar 22 2018 10:55:30
[Tue Oct 09 11:16:13.061795 2018] [core:notice] [pid 3392:tid 508] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Oct 09 11:16:13.064796 2018] [mpm_winnt:notice] [pid 3392:tid 508] AH00418: Parent: Created child process 3312
[Tue Oct 09 11:16:13.595807 2018] [ssl:warn] [pid 3312:tid 440] AH01909: www.example.com:4433:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 09 11:16:13.708809 2018] [ssl:warn] [pid 3312:tid 440] AH01909: www.example.com:4433:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 09 11:16:13.731810 2018] [mpm_winnt:notice] [pid 3312:tid 440] AH00354: Child: Starting 150 worker threads.
error image in chrome
I think it is about ThreadStackSize of apache but i can't increase it.
Is there anyone can help me please ?
Finally i found answer , it was about yii2 logging stack, when multiple requests sent to server concurrently, there were a lot of log stack that kept until the request ended then yii2 saved logs to database .
Also debugger module keeps logs until end of request.
When i decreased stack size of logs, requests executed correctly.
another way to solving this problem is changing db session to file session but i think its not good idea because we lose the speed and performance to executing requests.
It's pretty much in the title. I've tried everything I can think of but Apache2 is doing a restart every 1min and 3seconds - without fail. It's not doing a graceful restart, as every time it restarts the client can not connect, and are met with "This site can't be reached" in Chrome.
This is happening on a VPS hosted on Linode with the Ubuntu 16.04 image. As far as I know everything was setup as default. (I inherited the site, but trying to figure out this odd issue. )
Apache is version 2.4.18.
PHP is version 7.0.30
The site does not see a lot of traffic (maybe 1k hits/month) - so traffic should not be causing this either.
Below are the logs that I'm seeing from the Apache2 error.log
[Mon Aug 27 23:04:56.015029 2018] [core:notice] [pid 32672] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:05:56.492903 2018] [mpm_prefork:notice] [pid 32672] AH00169: caught SIGTERM, shutting down
[Mon Aug 27 23:05:58.000463 2018] [:notice] [pid 32730] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Mon Aug 27 23:05:58.001156 2018] [:notice] [pid 32730] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.2"
[Mon Aug 27 23:05:58.001857 2018] [:warn] [pid 32730] ModSecurity: Loaded APR do not match with compiled!
[Mon Aug 27 23:05:58.001959 2018] [:notice] [pid 32730] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.38 2015-11-23"
[Mon Aug 27 23:05:58.002041 2018] [:warn] [pid 32730] ModSecurity: Loaded PCRE do not match with compiled!
[Mon Aug 27 23:05:58.002155 2018] [:notice] [pid 32730] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Aug 27 23:05:58.002230 2018] [:notice] [pid 32730] ModSecurity: YAJL compiled version="2.1.0"
[Mon Aug 27 23:05:58.002300 2018] [:notice] [pid 32730] ModSecurity: LIBXML compiled version="2.9.2"
[Mon Aug 27 23:05:58.002460 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call: "2.9.0,Apache/2.4.18 (Ubuntu),1.5.1/1.5.2,8.35/8.38 2015-11-23,Lua 5.1,2.9.2,<removed_for_SO>"
[Mon Aug 27 23:05:58.060493 2018] [:notice] [pid 32730] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Mon Aug 27 23:05:58.105989 2018] [:notice] [pid 32734] FastCGI: process manager initialized (pid 32734)
[Mon Aug 27 23:05:59.016019 2018] [mpm_prefork:notice] [pid 32731] AH00163: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Aug 27 23:05:59.017563 2018] [core:notice] [pid 32731] AH00094: Command line: '/usr/sbin/apache2'
[Mon Aug 27 23:06:59.489457 2018] [mpm_prefork:notice] [pid 32731] AH00169: caught SIGTERM, shutting down
I see the issues with APR and PCRE not having the same version, but I had read in a different thread that this should not be causing the issue I am seeing.
If there is anything else I can setup to help figure this out - that would be appreciated, or if someone else has run across something similar that would be helpful too.
I've already tried looking at HTOP to see what processes are running - nothing out of the ordinary there, I do see a CPU spike AFTER I see the restart command (Which makes sense given apache is restarting)
We do have logrotate installed (another common thing I have seen) however logrotate is set to run weekly, so I don't think that its causing this either.
We're hosting wordpress on the site as well.
Let me know if there is anything else I can add to this that might help.
EDIT: Checked on cronjobs as well - no cronjobs
when i try to execute a module that need to use google adwords tha website don't do anything so i see in the inspect the element and say that have a 500 Internal Server Error, i search o sometimes say the is temporal error butt have two days with same error, so i read that maybe is xampp and permitions so i modificate the
httpd.conf, i change the ports i wirte the next code
<Directory />
AllowOverride All (also i tried with none)
Require all granted
</Directory>
i see the file hots in windows and set the 127.0.0.1 ....
i try to debug in app and i see that can pass in the next lines
$this->load->library('Google_adwords');
$objGoogleAdword = new Google_adwords();
I see the xampp php log
and see this error
[Wed Oct 11 13:22:14.132305 2017] [core:notice] [pid 1524:tid 576] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Wed Oct 11 13:22:14.135264 2017] [mpm_winnt:notice] [pid 1524:tid 576] AH00418: Parent: Created child process 8216
[Wed Oct 11 13:22:15.475520 2017] [ssl:warn] [pid 8216:tid 520] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 11 13:22:15.747771 2017] [ssl:warn] [pid 8216:tid 520] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 11 13:22:15.832788 2017] [mpm_winnt:notice] [pid 8216:tid 520] AH00354: Child: Starting 150 worker threads.
well i don't know why doen't works some idea?
Recently I transferred my website and domain from 1and1 to inmotionhosting. When I try to visit my website (www.wapgee.com). It shows this error:
Anyone who have faced this problem? I will appreciate the help!
This error log I found in public_html folder
[Wed Nov 09 02:38:23.846102 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.694511 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.542651 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.391229 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.088840 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:30:14.558814 2016] [:error] [pid 572374:tid 139899906787072] [client 141.8.143.213:57443] File does not exist: /home/wapgee/public_html/index.php
Firstly You have to wait at least one day. Because dns changes can take 12 hours or than 12 hours to change.
Secondly you need to remove dns cache, lets do it
Windows 7 and Vista:
Click on the Start Menu
Type cmd in the search box
Right click on cmd in the programs search results and choose Run as Administrator
Windows 98/NT/2000/XP
Click on the Start Menu Select Run
Type or select cmd to open the command line window
Once the cmd opens type this command:
ipconfig /flushdns
Then you need to clear your browser chache:
Google chrome:
https://support.google.com/accounts/answer/32050?hl=en
Firefox: https://support.mozilla.org/en-US/kb/how-clear-firefox-cache
See if the root directory of your site is placed at the right place. Unlike Apache, Nginx does not display a file index.