Skip to main content

Apache Error on new install: File does not exist: /var/www/html/wp-cron.php

Comments

5 comments

  • cPanelMichael
    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
  • GTMAN
    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
  • GTMAN
    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
  • GTMAN
    Solved by adding the ipv6 to the Tweak> settings>system and the hosts file.
    0
  • cPanelMichael
    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.