By tony596131
A few days ago my website, after months of my website being up, went down. The thing is mysite.com/wp-admin works just fine and I can access the Wordpress Dashboard. Furthermore, I can access and view all other domain’s on this server.
Here is the structure of the folders (in case that matters)
The site that is not working is in /var/www/ The working site is in /var/www/mysite2.com
I am running on Ubuntu 14.04 LAMP
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks for the location of the logs!
It is bringing me to a connection time out page (firefox).
The last two errors in the log are:
[Mon Aug 18 17:36:30 2014] [error] [client 222.77.203.77] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 18
[Wed Aug 20 12:14:04.067120 2014] [core:notice] [pid 6494] AH00051: child pid 8778 exit signal Segmentation fault (11), possible coredump in /etc/apache2
Looks like your are running up against the PHP memory limit. Edit the file /etc/php5/apache2/php.ini and increase the memory limit. Find this part of the file:
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
and increase the number to something higher. Then restart Apache with:
sudo service apache2 restart
Though this also suggests that you should audit your plugins to see what’s using the memory.
Okay, I have increased to
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 512M
Restarted Apache and am still getting the connection timed out error.
Also as for plugins, I have all plugins deactivated for the time being (I am only using advanced custom fields and a 301 redirect plugin so they shouldn’t too resource intensive anyways).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.