Symptoms
In some cases, you may see the WHM API call set_primary_servername does not work as expected with edits made to the Apache template files.
Description
If you have adjusted the Apache template file to have your IP address defined for the VirtualHost manually, this will prevent the API call set_primary_servername from properly changing the primary server name within the Apache configuration.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-37082. Follow this article to receive an email notification when a solution is published in the product.
Workaround
At this time, you will want to move aside to all of the local template files, then rebuild the Apache configuration file and restart Apache. Doing that should allow you to set the primary server name as intended.
Comments
1 comment
Update: We would like to thank you for your interest in this article/case and encourage your submissions as they are valuable to the ever-expanding development of cPanel & WHM. At this time, this particular issue has not been selected for action from our Development Team, as it may require more development resources than we can allot, or alters the direction cPanel envisions for the product. Submissions persist in our Issue Tracking System in the event the impact of the related issue grows or product direction changes. If you feel that this defect requires direct action, we strongly encourage you to submit a Feature Request to allow the cPanel Community to vote and support your cause.
Thank you again for helping us make cPanel & WHM the hosting platform of choice.
Article is closed for comments.