Knowledgebase
Knowledgebase
Parked Domain Redirection Error Invalid Command suPHP_ConfigPath
Posted by Will Kruss on 20 March 2015 11:49 AM

When you try to create a redirect through cPanel, sometimes, you may come across an error message similar to the one below.

Apache detected an error in the Rewrite config.
Syntax error on line x of /home/user/public_html/.htaccess.xxxxxxxxxxxxxxxxxxxxxxxxxxx:
Invalid command ‘suPHP_ConfigPath’, perhaps misspelled or defined by a module not included in the server configuration
Please try again.

This error is caused by using a custom php.ini file.

The solution:

  1. Edit the .htaccess file at /home/user/public_html (where user is your cPanel username)
  2. Open the .htaccess file and search for the following line and comment it out

    suPHP_ConfigPath /home/user/www (where user is your cPanel username)

    Add a # to the front of the line to comment it out

    # suPHP_ConfigPath /home/user/www (where user is your cPanel username)

  3. Save the .htaccess file and apply the redirects within your cPanel account
  4. Once the redirects are set uncomment that line and save the .htaccess again to re-apply your php.ini file
(0 vote(s))
Helpful
Not helpful

Comments (0)