Quantcast
Channel: Topic Tag: apache | WordPress.org
Viewing all 833 articles
Browse latest View live

isaacmtait on "Site Crashing - Apache possible culprit"

$
0
0

My site http://www.fallfishtenkara.com has crashed 6 times in the last 30 hours or so. I enter the comand ping www.fallfishtenkara.com

PING http://www.fallfishtenkara.com (104.18.58.163) 56(84) bytes of data.
64 bytes from 104.18.58.163: icmp_seq=1 ttl=61 time=1.60 ms
64 bytes from 104.18.58.163: icmp_seq=2 ttl=61 time=1.58 ms
64 bytes from 104.18.58.163: icmp_seq=3 ttl=61 time=1.50 ms
64 bytes from 104.18.58.163: icmp_seq=4 ttl=61 time=1.50 ms
^C
--- http://www.fallfishtenkara.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 1.503/1.549/1.606/0.065 ms

Not to mention I am able to SSH into the server, so it would appear that the server is running fine

Next I run the command top and the results come back:

PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
   28 root      20   0       0      0      0 R 34.4  0.0   3:10.47 kswapd0
12337 isaact8+  20   0   24940   1584   1064 R  8.6  0.2   0:00.04 top
 1403 root       0 -20       0      0      0 S  4.3  0.0   0:01.26 kworker/u3:1
11789 www-data  20   0  394080   7268   2656 R  4.3  0.7   0:03.03 apache2
11795 www-data  20   0  394080   7572   2672 D  4.3  0.7   0:02.89 apache2
11797 www-data  20   0  394336   7172   2748 R  4.3  0.7   0:03.02 apache2
11822 www-data  20   0  393828   9144   5652 R  4.3  0.9   0:02.84 apache2
11830 www-data  20   0  392036   7184   3600 R  4.3  0.7   0:02.82 apache2
11893 www-data  20   0  393060   7732   4412 R  4.3  0.8   0:02.61 apache2
11977 www-data  20   0  392040   9740   5664 R  4.3  1.0   0:02.43 apache2
12095 www-data  20   0  392036   7632   4996 R  4.3  0.7   0:02.34 apache2
    1 root      20   0   33472    120    120 S  0.0  0.0   0:01.90 init
    2 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S  0.0  0.0   0:00.20 ksoftirqd/0
    5 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0H
    6 root      20   0       0      0      0 S  0.0  0.0   0:00.12 kworker/u2:0
    7 root      20   0       0      0      0 S  0.0  0.0   0:17.88 rcu_sched

A quick check on google tells me that kswapd0 is process that manages virtual memory... So I'm thinking that I'm having memory allocation issues so I run the command df -h and the results come back

Filesystem                 Size  Used Avail Use% Mounted on
udev                       487M  8.0K  487M   1% /dev
tmpfs                      100M  336K  100M   1% /run
/dev/disk/by-label/DOROOT   30G  8.7G   20G  32% /
none                       4.0K     0  4.0K   0% /sys/fs/cgroup
none                       5.0M     0  5.0M   0% /run/lock
none                       498M     0  498M   0% /run/shm
none                       100M     0  100M   0% /run/user

and the command free -m

total       used       free     shared    buffers     cached
Mem:           994        930         63         16          0         22
-/+ buffers/cache:        907         86
Swap:         2047       1524        523

I am concerned about the amount free memory in the buffer/cache row so I run the command ps aux | more and the results come back

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  33472    32 ?        Ss   Jun07   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Jun07   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Jun07   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kworker/0:0H]
root         7  0.1  0.0      0     0 ?        S    Jun07   0:21 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    Jun07   0:16 [rcuos/0]
root         9  0.0  0.0      0     0 ?        S    Jun07   0:00 [rcu_bh]
root        10  0.0  0.0      0     0 ?        S    Jun07   0:00 [rcuob/0]
root        11  0.0  0.0      0     0 ?        S    Jun07   0:00 [migration/0]
root        12  0.0  0.0      0     0 ?        S    Jun07   0:00 [watchdog/0]
root        13  0.0  0.0      0     0 ?        S<   Jun07   0:00 [khelper]
root        14  0.0  0.0      0     0 ?        S    Jun07   0:00 [kdevtmpfs]
root        15  0.0  0.0      0     0 ?        S<   Jun07   0:00 [netns]
root        16  0.0  0.0      0     0 ?        S<   Jun07   0:00 [writeback]
root        17  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kintegrityd]
root        18  0.0  0.0      0     0 ?        S<   Jun07   0:00 [bioset]
root        19  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kworker/u3:0]
root        20  0.0  0.0      0     0 ?        S<   Jun07   0:00 [kblockd]
root        21  0.0  0.0      0     0 ?        S<   Jun07   0:00 [ata_sff]
root        22  0.0  0.0      0     0 ?        S    Jun07   0:00 [khubd]
root        23  0.0  0.0      0     0 ?        S<   Jun07   0:00 [md]
root        24  0.0  0.0      0     0 ?        S<   Jun07   0:00 [devfreq_wq]

I've been following this article mostly https://www.smashingmagazine.com/2010/12/what-to-do-when-your-website-goes-down/ it is a little old but I feel that it is still applicable to my situation. At this point after I've run the command ps aux | more and I see that Apache is not running I'm pretty sure my issue is that Apache has crashed.

When I run the command /etc/init.d/apache2 restart my website comes back online, sometimes for a few hours sometime less than that...

Looking into the error.log file I find this:

[Tue Jun 07 21:37:50.727260 2016] [mpm_prefork:notice] [pid 1709] AH00169: caught SIGTERM, shutting down
[Tue Jun 07 21:37:51.685688 2016] [mpm_prefork:notice] [pid 13608] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 configured -- resuming normal operations
[Tue Jun 07 21:37:51.685791 2016] [core:notice] [pid 13608] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jun 07 21:39:45.617022 2016] [core:alert] [pid 13687] [client 108.162.237.250:50121] /var/www/wp-content/updraft/.htaccess: deny not allowed here, referer: https://vaultpress.com
[Tue Jun 07 21:39:45.881250 2016] [core:alert] [pid 13655] [client 173.245.52.140:54743] /var/www/wp-content/updraft/.htaccess: deny not allowed here, referer: https://vaultpress.com
[Tue Jun 07 21:39:46.198784 2016] [core:alert] [pid 13697] [client 173.245.52.140:17020] /var/www/wp-content/updraft/.htaccess: deny not allowed here, referer: https://vaultpress.com
[Tue Jun 07 21:39:46.738494 2016] [core:alert] [pid 13687] [client 108.162.237.250:35083] /var/www/wp-content/updraft/.htaccess: deny not allowed here, referer: https://vaultpress.com
[Tue Jun 07 21:39:47.268006 2016] [core:alert] [pid 13655] [client 108.162.237.250:43514] /var/www/wp-content/updraft/.htaccess: deny not allowed here, referer: https://vaultpress.com
[Tue Jun 07 21:44:54.466348 2016] [core:alert] [pid 13838] [client 162.158.57.65:21824] /var/www/wp-content/plugins/akismet/.htaccess: Require not allowed here, referer: http://www.fallfishten$
[Tue Jun 07 21:44:55.475237 2016] [core:alert] [pid 13839] [client 162.158.57.29:49788] /var/www/wp-content/plugins/akismet/.htaccess: Require not allowed here, referer: http://www.fallfishten$
[Tue Jun 07 21:45:16.580154 2016] [core:alert] [pid 13859] [client 162.158.57.65:15744] /var/www/wp-content/plugins/akismet/.htaccess: Require not allowed here, referer: http://www.fallfishten$
[Tue Jun 07 21:45:16.672686 2016] [core:alert] [pid 13816] [client 162.158.57.29:34160] /var/www/wp-content/plugins/akismet/.htaccess: Require not allowed here, referer: http://www.fallfishten$
[Tue Jun 07 22:03:14.437769 2016] [core:notice] [pid 13608] AH00052: child pid 14133 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.437882 2016] [core:notice] [pid 13608] AH00052: child pid 14275 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.437900 2016] [core:notice] [pid 13608] AH00052: child pid 14325 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.437914 2016] [core:notice] [pid 13608] AH00052: child pid 14329 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.437950 2016] [core:notice] [pid 13608] AH00052: child pid 14182 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.437998 2016] [core:notice] [pid 13608] AH00052: child pid 14005 exit signal Segmentation fault (11)
[Tue Jun 07 22:03:14.438077 2016] [mpm_prefork:notice] [pid 13608] AH00169: caught SIGTERM, shutting down
[Tue Jun 07 22:03:27.262255 2016] [mpm_prefork:notice] [pid 1116] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 configured -- resuming normal operations
[Tue Jun 07 22:03:27.264088 2016] [core:notice] [pid 1116] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 08 03:26:17.729067 2016] [core:notice] [pid 1116] AH00051: child pid 12012 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 08 03:26:17.843558 2016] [core:notice] [pid 1116] AH00051: child pid 12033 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 08 03:26:17.843974 2016] [core:notice] [pid 1116] AH00051: child pid 12076 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 08 03:26:18.850228 2016] [mpm_prefork:notice] [pid 1116] AH00169: caught SIGTERM, shutting down
[Wed Jun 08 03:26:19.538198 2016] [mpm_prefork:notice] [pid 12749] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.17 configured -- resuming normal operations
[Wed Jun 08 03:26:19.538497 2016] [core:notice] [pid 12749] AH00094: Command line: '/usr/sbin/apache2'

The issue started within a day or so after I updated my server. I ran the command sudo apt-get update && time sudo apt-get dist-upgrade which I have done about a dozen times in the past with no issues.

At this point I am totally lost. Support from my host said that "Your apache instance is core dumping. You may need to use advanced debug tools like strace and gdb to debug the issues you are experiencing with your apache server....core dumping is a sign that either a plugin or module is misbehaving, or it can be a sign that a process is hitting a OOM event (out of memory) and is being forcefully closed." Problem is I have no idea how to debug with strace or gdb...

I am self hosting on a Digital Ocean droplet, so any help or pointers would be appreciated.


mlvitor on "HTTP Error uploading images"

$
0
0

I am using a local installation on a ISP Config server.
I had http error uploading images and this is what I did:

1. Edit file fcgid.conf

nano /etc/httpd/conf.d/fcgid.conf

2. Add line MaxRequestLen 15728640 (value is in bytes so it equals to roughly 15MB) the file then looks like this:

MaxRequestLen 15728640

3. Restart apache webserver

apachectl restart

May be usefull for someone :-)

Based on original solution at:
https://www.hackerway.ch/2013/06/05/wordpress-isp-config-and-weird-http-error-on-media-uploads/

abel406 on "[Plugin: qTranslate X] Web site URL broken after setting Pre-path Mode with Postname in permalinks"

$
0
0

Hi folks,
I am bulding a multilanguage site and for that reason i installed qtranslate-x plugin.Using the traditional WAMP enviroment with out virtual host, just the clasic /localhost/my-installed-wordpress-folder/ URL, everything was working nice after setting Pre-path mode in Languages settingsd and Postname in permalinks, but after creating a virtual host i was unable to get the website working getting error pages.

Please, if anyone has had the same problem, i am all eyes!

https://wordpress.org/plugins/qtranslate-x/

jstei on "add_rewrite_rule() weird behaviour"

$
0
0

I'am actually having weird problems with add_rewrite_rule().

As soon as i use index.php? in my 2nd argument regexp, the function fails writing anything in the .htacees file.:

function qvs( $vars ){
 $vars[]= 'myvar';
}
add_action( 'query_vars, 'qvs' );
function myrewrite(){
 add_rewrite_rule('something/([0-9]+), 'index.php?pagename=something&myvar=$matches[1]' );
}
add_action( 'init', 'myrewrite', 10, 0 );

this simply doesn't write any rule in the .htaccess file

function myrewrite(){
 add_rewrite_rule('something/([0-9]+),'something/?myvar=$matches[1]' );
}
add_action( 'init', 'myrewrite' );

A rewriteRule is written :

RewriteRule something/([0-9]+) /a-wordpress-plugins-work/something/?myvar=$matches[1] [QSA,L]

But it doesn't work ... still ending to my 404 page

add_rewrite_rule('^something/([0-9]+), '/something/?myvar=$matches[1]' );

Prints a weird rule that looks like this :
RewriteRule ^^something/([\d]+) /a-wordpress-plugins-work//something/?myvar=$matches[1] [QSA,L]

Of course none of these are working ...

Really need help for this !!!

Thanks

blue-suit on "Latest apache server 64 bit easy install fully working"

$
0
0

Now before you people at WP get stressed and delete this I want to assure you I have created this to help not hinder.

This is a 64 bit version of apache mysql server
Apache/2.4.20 (Win64)
PHP/7.0.7
Mysql 5.5.50
phpmyadmin 4.6.2
mysql workbench 6.3
All passwords and usernames are root and root.

This will work on any drive including a USB stick

I have configured the apache to work with permalinks’ and pictures of SMF 2, wordpress, joomla, and prestashop all working on this system can be seen in the folder server progs. there is also some files configured for wordpress multisite and these can be found under the folder website/wp-multisite/.

This is so simple to install just unzip the package to your hard drive, your secondary drive or your USB Stick.
All the apache mysql and php files have been configured to work from "/"

Please read the readme file in the archive to install this correctly.

That’s basically it, it’s a simple unzip to a selected drive installation.
It has been tested with Joomla, WordPress, Wp multisite, Prestashop, SMF 2 not smf 2.1 as Smf have not upgraded their system to work with MYSQLi.

you will also need a temp and tmp folder in windows or you will get mysql errors, so just create a windows/ temp and a windows/tmp folder/ one of these will exist and the other must be created...
I have also included the 13-14 and 15--- 32 bit and 64 bit versions of the vc redist files in the server-progs folder.

Enjoy

John

the link to the file is

https://drive.google.com/open?id=0Bx2UdJTTvcKHTGxyUVNRSko2Z3M

krazymuffla on "How to disable Apache web server banner"

$
0
0

Hi,

I have run a malware scan using Sucuri Security and it has recommended disabling the Apache server banner by editing the httpd.conf and add

ServerSignature Off
ServerTokens Prod

Can someone guide me on how to do this and where I can locate this file? The website is hosted by SGIS.

vinyclortho on "[Plugin: Calendar Event] Permission denied admin-ajax.php"

wiredhosting on "Visualcomposer + opcache"

$
0
0

HI, I wanted to know if visualcomposer and OpCache are compatible. Anyone had issues with it?

After I enable opcache, the wordpress visualcomposer (frontend editor) stops working or takes 4 minutes to load something that without OpCache takes 5 seconds to load..

PHP 5.6
Visual Composer 4.11.2.1
Wordpress 4.5.3
apache 2.4.18

Thanks!


e_guardia on "[Plugin: WP Encrypt] Stuck at *Detect which Apache config file to edit*"

$
0
0

Hey guys,

I installed the plugin and went through the registration and now have all certificates and keys on my server.

Now I'm stuck at the Detect which Apache config file to edit. step.

When I access the etc folder on my server, there is only a mywebsitesname.com folder and a file named cacheid. There is neither a httpd folder nor an apache2. I've also searched for a .conf file through FileZilla and it didn't find anything.

To my acknowledgment I'm running my WP install on an Apache CentOS server. What could I do now to fix this problem?

Thanks

https://wordpress.org/plugins/wp-encrypt/

hmithani on "http:/localhost:88/wp giving a blank page"

$
0
0

I have set up AMPPS and configured Apache to run on port 88 (since 80 is in use by SYSTEM). when I installed WordPress, both these URL's: http://locahost:88/wp and http://locahost/wp return a blank page and I am unable to figure out why. Any help is greatly appreciated. Thanks

8bitkid on "modify .htaccess to redirect to app via deep-link"

$
0
0

I have a marketing site for my iOS app at http://www.example.com. I'd like to make it so if someone visits http://www.example.com/invite/invitecode (random numbers and letters) it redirects to app_name://invitecode/.

Right now I have:

#Invite Referral
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(invite|invite/.*)$
RewriteRule ^invite/(.*)$/? app_name://$1/ [L,R=301]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

However, this only gives me: http://www.example.com/app_name:/invitecode/

essah77 on "[Plugin: Htaccess by BestWebSoft] How to get rid of the WordPress folder from URL without moving the files > .htac"

$
0
0

I have two WP installations on one domain and two folders.

How to get rid of the WP installation folder > watercolorpainting.com/watercolor-painting-tutorials/ without moving the wordpress installation to the root domain?

The .htaccess rewrite rule is the following:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /watercolor-painting-tutorials/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /watercolor-painting-tutorials/index.php [L]
</IfModule>

I want my links without the WP folder like this:

watercolorpainting.com/for-beginners/

not like this: watercolorpainting.com/watercolor-painting-tutorials/for-beginners/

The solutions I found doesn´t fix my problem, because I have already an existing WP installation on the root with following .htaccess rewrite rules:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Can someone help me? Thanks!

https://wordpress.org/plugins/htaccess/

jmkinne on "Apache 2.2 -> 2.4: Permalinks broken."

$
0
0

Hey guys, running WordPress on an AWS EC2 server. Had to install SSL, which required rolling Apache up from 2.2 to 2.4. That carried PHP up to 5.5, so I installed MySQLi. Got that all running after a day of troubleshooting.

My homepage loads, but none of my other pages do. I can log into my admin, see/edit the pages, but they don't show up at any of their links. My domain is: usethewall.com

I've done a few modifications to my httpd.conf file:

1) Changed AllowOverride <em>to</em> <strong>All</strong>

2) Added:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

After restarting httpd, I get a "Syntax error on line 191 of /etc/httpd/conf/httpd.conf:
RewriteBase: only valid in per-directory config files" error.

3) Tried:

<Directory /var/www/html/usethewall/>
Options FollowSymLinks
AllowOverride All
</Directory>

Nothing seems to be bringing my alternate links back. Welcoming all suggestions and help!

Thanks.

jobbag on "PHP Fatal error: Allowed memory size of bytes exhausted error causing server cr"

$
0
0

Already been searching on this topic for a while.

I have an apache server set up on windows server 2008 with 2 Wordpress sites running.
PHP version is 7. Apache version 2.4

Looking in the apache log files for one of the sites I see the following error occurs very frequently:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 30962681236553923 bytes)
The file it points to is wp-includes/functions.php on line 4946. Looking on this line is the following code: $wrappers_re = '(' . join('|', $wrappers) . ')';

Here is the full function where that line sits:
function wp_is_stream( $path ) {
$wrappers = stream_get_wrappers();
$wrappers_re = '(' . join('|', $wrappers) . ')';

return preg_match( "!^$wrappers_re://!", $path ) === 1;
}

This doesn't seem to cause a problem on the other site though the installation is virtually identical apart from the content. Also when isolating and running this function in a test page it does not cause any problem. Perhaps the error log is misleading me here.

All plugins are up to date and I just deactivated and reactivated them all.

Is this likely to be a plugin issue,a theme issue, or maybe something to do with accessing the database?
Anybody had and solved a similar issue?

liquidRock on "Override All Wordpress Error Redirects"

$
0
0

Been searching for a while and can't find an answer to this that doesn't involve using wp_die_handler and writing countless lines of unnecessary code, so...

I simply want to override (completely) how WordPress handles error pages, and let Apache handle it rationally via htaccess. WordPress seems to redirect all http errors to a 404.php in your theme. I already have a nice setup for dynamically generating error pages and only need to point to this in htaccess. Works fine on custom sites, fails in WordPress.

Any way of doing this?

As an example, the below code is all that is needed in .htaccess for Apache to properly redirect one to custom error pages.

ErrorDocument 400 /errors/error_page.php
ErrorDocument 401 /errors/error_page.php
ErrorDocument 402 /errors/error_page.php
ErrorDocument 403 /errors/error_page.php
ErrorDocument 404 /errors/error_page.php
ErrorDocument 405 /errors/error_page.php
ErrorDocument 406 /errors/error_page.php
ErrorDocument 407 /errors/error_page.php
ErrorDocument 408 /errors/error_page.php
ErrorDocument 409 /errors/error_page.php
ErrorDocument 410 /errors/error_page.php
ErrorDocument 411 /errors/error_page.php
ErrorDocument 412 /errors/error_page.php
ErrorDocument 413 /errors/error_page.php
ErrorDocument 414 /errors/error_page.php
ErrorDocument 415 /errors/error_page.php
ErrorDocument 416 /errors/error_page.php
ErrorDocument 417 /errors/error_page.php
ErrorDocument 500 /errors/error_page.php
ErrorDocument 501 /errors/error_page.php
ErrorDocument 502 /errors/error_page.php
ErrorDocument 503 /errors/error_page.php
ErrorDocument 504 /errors/error_page.php
ErrorDocument 505 /errors/error_page.php

SEOToronto7 on "[Plugin: All In One WP Security & Firewall] Apache 2.4 Wrong htaccess rules applied"

$
0
0

I was having some issues with my site and found that my error log reported problems associated with the .htaccess rules.

AH01797: client denied by server configuration:

There are some old support threads about this that are 1 year old but your plugin still doesn't enter the correct rules based on the Apache version.

Rule Changes: (see Apache website upgrading to 2.4 from 2.2)

2.2 configuration:
Order deny,allow
Deny from all

2.4 configuration:
Require all denied

In previous threads you said that it will be addressed but 1 year later and nothing has been changed. I'm having to update the code manually but this should not be necessary and many users may be unaware why there site is responding slow or losing connection in the admin.

https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/

manuel38 on "Server keeps crashing, cannot determine the cause"

$
0
0

In the last month my server just started blowing up randomly. I had a perfect installation that worked flawlessly for 9 months but in the last month the load and memory usage just randomly start spiraling out of control.

It appears that something external causes this to happen but I have no idea what it could be. Rebooting the server will make it run normally for anywhere from a few minutes to 18-24 hours but that's about the max.

The memory usage just keeps going up and up and up until the Apache process core dumps. The load spirals up to 20+.

[Tue Jan 05 11:31:22.629436 2016] [core:notice] [pid 1246] AH00052: child pid 8127 exit signal Segmentation fault (11)

For 9 months prior to this this server operated flawlessly with loads [in top] ranging from .01 - .20.

The server is running digital ocean's one click WordPress installation image, it has 1 GB of memory and 1 GB swap file.

My list of active plugins is as follows: Blubrry PowerPress, CloudFlare, Disqus Comment System, Jetpack,
Login LockDown, Monarch Plugin (Share On Theme123.Net),
Nofollow Links, TinyMCE Advanced, Yoast SEO

None of the plugins have been changed in many months.

My server is running only one WordPress installation and one site. WordPress and plugins are always updated to the latest version. There are no major modifications on the site.

I have had problems in the past 100% on every WordPress installation with the sites being crashed via brute force hacking attempts to /xmlrpc.php I have had to completely deny access to that even though it screws up jetpack because I have not been able to get Order Allow,Deny to work. It either causes 520's to all URLs across the whole server or it reports "order not allowed here" in the error log and it doesn't work. This is a separate issue but I would be very grateful if anyone can explain that one either. Past experience indicates leaving xmlrpc.php open to the public will result in crashed sites 100% of the time.

Can anyone help? I'm getting really desperate here this is destroying my site. Haven't been able to keep it online for more than 24 hours since early December. Nobody has any answers.

njuin on "404 error message when accessing wordpress admin"

$
0
0

[ Moderator note: title adjusted, please refrain from using help, urgent, emergency, asap, etc. in topic titles. ]

I have an old website that was created a long time ago by a web developer. This website is old and the content is out of date. Recently I have decided to take control of it and try to redesign the webpage but I have no prior knowledge of web design at all and figured I could start with using wordpress.

I have recently transferred my domain from my local registrar to hostgator. After installing wordpress from quickinstall I encountered the following 404 error message.

The requested URL /wp-admin was not found on this server.
apache/2.2.22 (ubuntu) server at localhost port 80

I have been stuck in this phase for awhile now not knowing the solution to the problem.
I do not know how relevant is this information but i do not wish to keep any of the content. I only wish to retain the domain name and start designing from scratch again to give it a fresh new look.

I would really appreciate any help i can get.

davidoct14 on "Robust Requests Feature WordPress 4.6"

$
0
0

My site can no connect to wordpress.org after update to wordpress 4.6, the principal error is:

HTTP
Missing header/body separator

HTTPS
Missing header/body separator

I think this error is related with the new "Robust Requests" wordpress feature. My web site is hosted in my own server. Anyone knows what apache2.4/php 5.5.9 requeriments needs the new feature??

Thanks for the answer.

Regards,

[ moved to How-To and Troubleshooting]

makingmyway on "Pointing apache website.conf files to WordPress in a subdirectory"

$
0
0

Hi all,

I've searched, and read tons of how-to articles, and I think I'm just missing something somewhere obvious. But this is driving me batty.

I have a working WP 4.5.3 website which (for now) I'd like to avoid linking too, but I can in some kind of private message or email if necessary. This is a standard vanilla WP install--single installation--but using modified themes and about a dozen plugins, and the like.

Anyway, right now the site is set up in a subdir off of \var\www\, named \wpdirectory. There is an .htaccess and index.php file in var\www (i.e. the web root).

Here's the contents of .htaccess in the root (\var\www):

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

And here's the contents of index.php in the root (\var\www):

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wpdirectory/wp-blog-header.php' );

In the subdirectory and install locale itself (\var\www\wpdirectory), there's an .htaccess file that reads:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wpdirectory/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpdirectory/index.php [L]
</IfModule>

# END WordPress

Wordpress itself is set with the following values in the panel\db:

Wordpress Address (URL): http://somedomain.com/wpdirectory
Site URL: http://somedomain.com

Now, this all works great! Any incoming requests to http://somedomain.com are routing to the WP install (and site) as needed. Fantastic, right?

BUT, now we want to come in and stand up a new WP install in a different subdirectory. Let's say it's at var\www\newsite

And we can't do that, as it stands, because we're not using \sites-available\website.conf files of any kind. If you hit this box in any way, including by the server IP, your browser traffic is routed to the somedomain.com WP site. That's not the end of the world as long as only a single domain is pointed at the site, but you can see the obvious issue if we want to come in with a second production domain pointing to a different subdir\installation.

As part of that, it makes sense to go ahead and create a somedomain.com.conf file in Apache and enable it in sites-enabled, and then do the same thing for the new site. We want everything nice and segregated between the two completely different sites and installs, after all, and in the future we can add more sites this way...

So here's the kind of .conf file we tried to do for the existing somedomain.com website. After all, it's a good dry run for the upcoming site anyway.

<VirtualHost *:80>

	ServerAdmin support@somedomain.com
	ServerName somedomain.com
	ServerAlias www.somedomain.com

	DocumentRoot /var/www/wpdirectory
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/wpdirectory>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/wpdirectoryerror.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog ${APACHE_LOG_DIR}/wpdirectoryaccess.log combined

</VirtualHost>

...And we enable this in apache sites-enabled using the typical console commands, and it appears to work, and then...

We get weird errors on the site. Only the homepage and some of the images and the like appear.

The hosting company's Linux admins' suggestion was to go ahead and set up the .conf file, but remove the subdir reference from the .htaccess file in the /wpdirectory subdir itself (we have Apache support, which is good because my kung fu is not strong in Apache). So we wind up with the .htaccess file in the subdir looking like:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

This enables us to browse more of the site, but things like images and the like--which are stored in the media library and db with refs like /wpdirectory/wp-content/uploads/blah.jpg--break at this point.

So I'm not sure what to do. I have a staging site, but I've been unable to replicate this exact setup there, for a number of reasons (one being that I don't have a valid domain to point to staging, and even spoofing one in my hosts file and changing the db refs in the staging db to the spoofed domain doesn't work).

In a perfect world, we can segregate that production domain AND be prepared for the second production and site, which as I said will also be in its own site and subdir. This is a big deal because we have a hard launch date of next week, and if I can't get this all figured out before then I'm going to have to stand up a new cloud server instance just to run one WP install.

All this indicates, to me, that I'm overlooking something elementary somewhere.

Thanks SO MUCH to anyone who can help. And forgive me if anything seems obvious. As I said, I'm not a LAMP guy. I'm learning what I can as fast as I can.

Viewing all 833 articles
Browse latest View live