Internal server error 500 on wordpress on Apache server - php

I'm getting a 500 internal server error from time to time on a VPS server running Ubuntu 15.04 and Apache (installed like the perfect server here: https://www.howtoforge.com/tutorial/perfect-server-ubuntu-15.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/)
The server has 5 Wordpress installs and the sites have no traffic to speak of as they're being deployed. The VPS is from digital ocean with the following specs: 1GBMemory, 1 CoreProcessor, 30GBSSD Disk, 2TBTransfer.
Can the resources be maxed out -- or is there a different explanation?
This is the error log from /var/log/apache2: http://pastebin.com/zVjJh8fP
Thanks in advance,
Kind reagards

It has to do with APC failing to allocate enough memory. Try lowering shm_size. But if possible increasing your memory would be a good idea.

Related

Receving 502 errors..please try again after 30 sec and frequent down of website throwing 502

I am having a Big Website with huge traffic from users, issue was server was not able to handle by the other hosting providers even though with dedicated server with 16 gb of ram and now with GCP i am having same issue with high configuration and Here with GCP i am having a virtual machine setup in Google Cloud Platform with 2 instance created and a load balancer enabled and also having Google Cloud CDN enabled. But Now i am getting 502 errors please try again after.. Please try again in 30 seconds. which is making me irritating and for my users also and the main thing is i am not able to figure out whats the reason of 502 error which is thrown by server.
I jsut wanted to know whats going wrong here ... Is it with the load balancer issue which is caused by server miss configuration and raising 502? and one more thing i am having Fast CGI enabled and Memory limit increased php ini(Website running on Apache server and its a CMS) file and max Imput connection was set with higher limit (No prob with this) or is it with the traffic of the website or bots hitting the website which is causing the server to crash and throwing 502 error or it is that GCP is not able to handle with lot of queries and php process limits.
frequent 502 errors - Server is up for some time and after some times it throws 502 error its repeating.
502 means Bad Gateway. It probably means your load balancer is not able to establish a connection with any of your web servers.
Can you try adding one or two more web server instances behind the load balancer? As long as your system is configured to allow multiple web servers, you should be able to add more instances fairly cheaply. They all need to talk to the same MySQL server for Joomla! to do its thing correctly.
You might also want to look at the load balancer traffic and error logs. You're trying to spot information about what went wrong when the load balancer tried and failed to hit a web server. Timeout? Refused connection? etc.
Are you using https? If so, is the load balancer terminating https and passing http along to the web servers? If you can set things up that way, it can reduce the web server workload a lot.
You might also consider switching from apache to nginx. It scales up better in high-traffic situations. But only do that as a cost-saving measure once you know that apache works OK with more web server instances behind the load balancer.

How to fix server response time error showing in Google Pageinsights?

I have hosted my magento website on a VPS having 3GB RAM & 2CPU core. Even having free memory of approximately 1.9GB I am still facing server response time problems. I am using Apache web server.
Please help me to get rid of this problem.

Long running progam times out to proxy error over DMZ

I have set up a DMZ to run a web site. Most of the code is on an application server running Debian Release 7.0 (wheezy) 64-bit. I also have a web server running CentOS 6.5. It acts as a proxy for the application server. I have set up LAMP on both and my web pages are written in PHP. A PHP script on the web server calls a PHP script on the application server. The application server script calls a long running (> 1 minute) executable (that had been developed in C++). After 60 seconds (timed by my watch), the script fails with the following message.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /appServer/scriptName.php.
Reason: Error reading from remote server
Apache/2.2.15 (CentOS) Server at sitename.com Port 80
I commented out code in the application server PHP script and narrowed the problem down to the long-running C++ executable. I also ran the executable in the shell without any problems. So there is clearly a time-out issue and it seems to be associated with the web server. I have only recently replaced an old version of Ubuntu, with Centos 6.5, on the web server and I did not have this problem before I did that. Also, the PHP code is the same as before I made the switch and it did not give me this problem prior to that. So I am convinced that the problem lies with something on the web server and one of the setting I have, with php or apache, on the new system.
I edited /etc/php.ini, on the web server, and changed all of the uncommented-out 60 second time limits (max_input_time, default_socket_timeout, mysql.connect_timeout) from 60 seconds to 600 seconds. I still get the above proxy error after 60 seconds.
Solution.
On the (CentOS) web server, edit /etc/httpd/conf/httpd.conf
Include the line
ProxyPass /appServer/ http://[private IP address]/ timeout=600 Keepalive=On
Specifically add the
timeout=600 Keepalive=On
part.
I also restarted apache to be on the safe side.

Running Glype Proxy - Frequent Server Error - Number of Processes reaching allowed number

I am running a Glype proxy. Frequently, the site experiences "Internal server error".
At this time when I log in to my cPanel, I see in red "Number of processes: 10/10".
When I approach the support, they tell me that the site exceeded allowed resource usage. One of the support guys suggested that I may use PHP / MySQL Connection closed or die method.
Kindly guide me to avoid this error. I can edit the php files.
Regards.
Proxies use up a lot of resources, if you use shared hosting upgrade to a vps or dedicated. It's not a problem you can fix, but since it's glype, you can disable gzip compression to help.

showing httpd.exe application error on server

I am running online examination website on my localhost server. but when i have attached 8 another machines with LAN for conduct test. so it generate alert error message:-
httpd.exe Application error
The instruction at "0x006fb17f" referenced
memory at "0x028a1e20". The memory could not be "Read".
Click on OK to terminate.
Click on Cancel to debug.
I am using PHP+MySQL on windows and XAMPP s/w installed at my server.
Is this message for my server RAM? Because my server RAM is 512 MB.
I can't understand. Can anybody help me, plz.
Probably some virus on your XP. Try using IIS as a web-server or reinstall xampp or there is a new LAMP package called uniserver. Apache2 takes up lots of ram on windows this might effect PHP performance also.

Categories