Question

Wp-admin works but not website

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

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

So apparently all that was needed was replacing the wp-settings.php file. It appears there may have been a script added to that page to make it overload. Thanks for all of your help, now time to step up my server security game so that doesnt happen again.

Thanks!

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).

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.