Apache Error on new install: File does not exist: /var/www/html/wp-cron.php
I have multiple WordPress sites on a new WHM Installation on top of Centos 7 at Linode.com
The apache error log is filled with
[Tue Jul 26 12:55:03.306183 2016] [:error] [pid 11784:tid 140346126178048] [client 2600:3c03::f03c:91ff:fe79:6c48:38154] File does not exist: /var/www/html/wp-cron.php
I've tried modifying the Hosts file with no affect. All the sites run fine but why the error. Also whats with the client id? Shouldn't it be an IP address?
I had the same setup on a Digital Ocean droplet with no such errors and used the Transfer Tool to move the sites.
Any help is most appreciated!
GT
-
Hello, The path you are using is not valid with cPanel. The document root should look like this example: /home/$username/public_html/wp-path/wp-cron.php
Note that if you have uploaded files to public_html directly, then "wp-path" is not required. Please ensure to update the configuration of your PHP applications to use the correct document root. Thank you.0 -
Thanks for the reply! The document root for the entries are as you say. The issue seems to be that when WordPress fires the call to wp-cron.php it doesn't know the path and defaults to the vhost for unbound IPs document root or vhosts for shared IPs? ` ################################################## ################################################## # # Define default vhosts for unbound IPs # ################################################## ################################################## ServerName do.example.ca DocumentRoot /var/www/html ServerAdmin xxxxxx@gmail.com suPHP_UserGroup nobody nobody ################################################## ################################################## # # Define the virtual host configurtion for user domains # ################################################## ################################################## # BEGIN: HTTP vhosts list ServerName chsa.ca ServerAlias www.example.ca DocumentRoot /home/someusr/public_html ServerAdmin webmaster@example.ca UseCanonicalName Off CustomLog /etc/apache2/logs/domlogs/example.ca combined CustomLog /etc/apache2/logs/domlogs/example.ca-bytes_log "%{%s}t %I .\n%{%s}t %O ." ## User chsa # Needed for Cpanel::ApacheConf UserDir enabled chsa # Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4. # To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in # the user's .htaccess file. For more information, please read: # mod_include - Apache HTTP Server Version 2.4 SSILegacyExprParser On suPHP_UserGroup someusr someusr SuexecUserGroup someusr someusr RMode config RUidGid someusr someusr # For more information on MPM ITK, please read: # apache2-mpm-itk AssignUserID someusr someusr ScriptAlias /cgi-bin/ /home/someusr/public_html/cgi-bin/ # To customize this VirtualHost use an include file at the following location # Include "/etc/apache2/conf.d/userdata/std/2_4/someuser/example.ca/*.conf" `0 -
Upon further research I realize the Client is an IP v 6. How do I get WHM to add both ip4 and ip6 to the vhosts entries in the conf file? 0 -
Solved by adding the ipv6 to the Tweak> settings>system and the hosts file. 0 -
Solved by adding the ipv6 to the Tweak> settings>system and the hosts file.
I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.0
Please sign in to leave a comment.
Comments
5 comments