CPanel New Domain












0















Background Note: When I first asked this here, I was told that it is off topic and I should ask at StackOverflow. StackOverflow said it is off topic and I should ask on ServerFault. Serverfault said it is off topic and I should ask on Unix&Linux. So, I am asking again here.



I am trying to add a new domain using CPanel. I went into Addon Domains and added the domain. I went into the domain's folder and added an index.html file. When I go to http://sottovoci.net, I get



Template Error: The template file must be given (or the template could not be opened)


I've been Googling for a week and I haven't found a solution to this problem. However, I have found that if I go to http://sottovoci.net/index.html, I get the placeholder index page that I made. Further, if I go to http://www.sottovoci.net, it defaults to the index page. If I go to http://sottovoci.net, it default to http://sottovoci.net/cgi-sys/defaultwebpage.cgi instead of using index.html.



Now, having spent the weekend reading endless documentation that all says to just add the domain and it magically works, I am out of sources of information to search. Where does CPanel hide whatever setting it is that is redirecting to cgi-sys/defaultwebpage.cgi instead of index.html? How can I change it to use index.html instead of cgi-sys/defaultwebpage.cgi?










share|improve this question























  • It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

    – derobert
    Mar 9 '15 at 13:31











  • I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

    – kainaw
    Mar 9 '15 at 14:27











  • Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

    – derobert
    Mar 9 '15 at 14:30













  • @derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

    – kainaw
    Mar 9 '15 at 14:36











  • I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

    – kainaw
    Mar 9 '15 at 16:43
















0















Background Note: When I first asked this here, I was told that it is off topic and I should ask at StackOverflow. StackOverflow said it is off topic and I should ask on ServerFault. Serverfault said it is off topic and I should ask on Unix&Linux. So, I am asking again here.



I am trying to add a new domain using CPanel. I went into Addon Domains and added the domain. I went into the domain's folder and added an index.html file. When I go to http://sottovoci.net, I get



Template Error: The template file must be given (or the template could not be opened)


I've been Googling for a week and I haven't found a solution to this problem. However, I have found that if I go to http://sottovoci.net/index.html, I get the placeholder index page that I made. Further, if I go to http://www.sottovoci.net, it defaults to the index page. If I go to http://sottovoci.net, it default to http://sottovoci.net/cgi-sys/defaultwebpage.cgi instead of using index.html.



Now, having spent the weekend reading endless documentation that all says to just add the domain and it magically works, I am out of sources of information to search. Where does CPanel hide whatever setting it is that is redirecting to cgi-sys/defaultwebpage.cgi instead of index.html? How can I change it to use index.html instead of cgi-sys/defaultwebpage.cgi?










share|improve this question























  • It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

    – derobert
    Mar 9 '15 at 13:31











  • I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

    – kainaw
    Mar 9 '15 at 14:27











  • Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

    – derobert
    Mar 9 '15 at 14:30













  • @derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

    – kainaw
    Mar 9 '15 at 14:36











  • I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

    – kainaw
    Mar 9 '15 at 16:43














0












0








0








Background Note: When I first asked this here, I was told that it is off topic and I should ask at StackOverflow. StackOverflow said it is off topic and I should ask on ServerFault. Serverfault said it is off topic and I should ask on Unix&Linux. So, I am asking again here.



I am trying to add a new domain using CPanel. I went into Addon Domains and added the domain. I went into the domain's folder and added an index.html file. When I go to http://sottovoci.net, I get



Template Error: The template file must be given (or the template could not be opened)


I've been Googling for a week and I haven't found a solution to this problem. However, I have found that if I go to http://sottovoci.net/index.html, I get the placeholder index page that I made. Further, if I go to http://www.sottovoci.net, it defaults to the index page. If I go to http://sottovoci.net, it default to http://sottovoci.net/cgi-sys/defaultwebpage.cgi instead of using index.html.



Now, having spent the weekend reading endless documentation that all says to just add the domain and it magically works, I am out of sources of information to search. Where does CPanel hide whatever setting it is that is redirecting to cgi-sys/defaultwebpage.cgi instead of index.html? How can I change it to use index.html instead of cgi-sys/defaultwebpage.cgi?










share|improve this question














Background Note: When I first asked this here, I was told that it is off topic and I should ask at StackOverflow. StackOverflow said it is off topic and I should ask on ServerFault. Serverfault said it is off topic and I should ask on Unix&Linux. So, I am asking again here.



I am trying to add a new domain using CPanel. I went into Addon Domains and added the domain. I went into the domain's folder and added an index.html file. When I go to http://sottovoci.net, I get



Template Error: The template file must be given (or the template could not be opened)


I've been Googling for a week and I haven't found a solution to this problem. However, I have found that if I go to http://sottovoci.net/index.html, I get the placeholder index page that I made. Further, if I go to http://www.sottovoci.net, it defaults to the index page. If I go to http://sottovoci.net, it default to http://sottovoci.net/cgi-sys/defaultwebpage.cgi instead of using index.html.



Now, having spent the weekend reading endless documentation that all says to just add the domain and it magically works, I am out of sources of information to search. Where does CPanel hide whatever setting it is that is redirecting to cgi-sys/defaultwebpage.cgi instead of index.html? How can I change it to use index.html instead of cgi-sys/defaultwebpage.cgi?







apache-httpd cpanel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 9 '15 at 13:13









kainawkainaw

192110




192110













  • It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

    – derobert
    Mar 9 '15 at 13:31











  • I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

    – kainaw
    Mar 9 '15 at 14:27











  • Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

    – derobert
    Mar 9 '15 at 14:30













  • @derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

    – kainaw
    Mar 9 '15 at 14:36











  • I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

    – kainaw
    Mar 9 '15 at 16:43



















  • It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

    – derobert
    Mar 9 '15 at 13:31











  • I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

    – kainaw
    Mar 9 '15 at 14:27











  • Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

    – derobert
    Mar 9 '15 at 14:30













  • @derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

    – kainaw
    Mar 9 '15 at 14:36











  • I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

    – kainaw
    Mar 9 '15 at 16:43

















It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

– derobert
Mar 9 '15 at 13:31





It sounds like you have a redirect or rewrite enabled somewhere... Has there already been troubleshooting done on all those other questions? If so, could you provide links, at least to the one here (I couldn't find it on your profile, but maybe that's because its closed).

– derobert
Mar 9 '15 at 13:31













I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

– kainaw
Mar 9 '15 at 14:27





I received no troubleshooting advice. I have been hunting for the string "defaultwebpage.cgi" on the entire harddrive. I found it in the MySQL install. So, I think cPanel has it as a setting in MySQL somewhere. Trying to figure out the MySQL user/pass now so I can hunt through the data in there.

– kainaw
Mar 9 '15 at 14:27













Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

– derobert
Mar 9 '15 at 14:30







Haven't actually personally used cPanel in a long time, but the docs say documentation.cpanel.net/display/ALD/Redirects ... of course, you probably already know that. If you can't figure out the MySQL password, recovering it is fairly easy... not sure if we (or Database Administrators, or Server Fault, or Stack Overflow) already have a question on that or not.

– derobert
Mar 9 '15 at 14:30















@derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

– kainaw
Mar 9 '15 at 14:36





@derobert Thanks. I've never used cPanel before. It is hell. I checked redirects. There are none (it actually says, "you have no redirects"). It is to me as though the directoryindex setting in Apache is set to cgi-sys/defaultwebpage.cgi for "sottovoci.net", but properly set to index.html for "www.sottovoci.net". The problem is that cPanel doesn't use the /etc/httpd/httpd.conf file (or anything in that directory). It uses some other settings, so I am having a hell of a time trying to fix it.

– kainaw
Mar 9 '15 at 14:36













I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

– kainaw
Mar 9 '15 at 16:43





I am leaving this here because I've seen so many people ask about this. The solution turned out to be in my web browser. Google Chrome and Firefox both cached the fact that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi and refused to behave otherwise. I cleared the history on both browsers and now they properly redirect to sottovoci.net/index.html

– kainaw
Mar 9 '15 at 16:43










1 Answer
1






active

oldest

votes


















0














There are many causes for this error:



Template Error: The template file must be given (or the template could not be opened)


In this case, the problem was caused by this process:




  1. Added sottovoci.net to cPanel using the "Addon Domains" interface from the main cPanel interface.

  2. cPanel created the directory/folder for sottovoci.net with nothing in it.

  3. I went to sottovoci.net and I was redirected to cgi-sys/defaultwebpage.cgi. I don't have any cgi templates set up, so I got the error that there was no defaultwebpage.cgi template.

  4. I created the index.html file.

  5. I went to sottovoci.net and I was immediately redirected to cgi-sys/defaultwebpage.cgi again. I did not see the the index.html page I created.


What happened is a hidden step right after step 3. My web browser stored in a cache that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi. So, even though I created the index.html file, my web browser refused to check to see if it was there. It immediately forced a redirect.



The solution, in this case, was to flush my browser's history (every browser has some setting, usually in privacy or security, to flush browser history). Once flushed, my web browser actually asked the server what to do and the server redirected to sottovoci.net/index.html.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189017%2fcpanel-new-domain%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    There are many causes for this error:



    Template Error: The template file must be given (or the template could not be opened)


    In this case, the problem was caused by this process:




    1. Added sottovoci.net to cPanel using the "Addon Domains" interface from the main cPanel interface.

    2. cPanel created the directory/folder for sottovoci.net with nothing in it.

    3. I went to sottovoci.net and I was redirected to cgi-sys/defaultwebpage.cgi. I don't have any cgi templates set up, so I got the error that there was no defaultwebpage.cgi template.

    4. I created the index.html file.

    5. I went to sottovoci.net and I was immediately redirected to cgi-sys/defaultwebpage.cgi again. I did not see the the index.html page I created.


    What happened is a hidden step right after step 3. My web browser stored in a cache that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi. So, even though I created the index.html file, my web browser refused to check to see if it was there. It immediately forced a redirect.



    The solution, in this case, was to flush my browser's history (every browser has some setting, usually in privacy or security, to flush browser history). Once flushed, my web browser actually asked the server what to do and the server redirected to sottovoci.net/index.html.






    share|improve this answer




























      0














      There are many causes for this error:



      Template Error: The template file must be given (or the template could not be opened)


      In this case, the problem was caused by this process:




      1. Added sottovoci.net to cPanel using the "Addon Domains" interface from the main cPanel interface.

      2. cPanel created the directory/folder for sottovoci.net with nothing in it.

      3. I went to sottovoci.net and I was redirected to cgi-sys/defaultwebpage.cgi. I don't have any cgi templates set up, so I got the error that there was no defaultwebpage.cgi template.

      4. I created the index.html file.

      5. I went to sottovoci.net and I was immediately redirected to cgi-sys/defaultwebpage.cgi again. I did not see the the index.html page I created.


      What happened is a hidden step right after step 3. My web browser stored in a cache that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi. So, even though I created the index.html file, my web browser refused to check to see if it was there. It immediately forced a redirect.



      The solution, in this case, was to flush my browser's history (every browser has some setting, usually in privacy or security, to flush browser history). Once flushed, my web browser actually asked the server what to do and the server redirected to sottovoci.net/index.html.






      share|improve this answer


























        0












        0








        0







        There are many causes for this error:



        Template Error: The template file must be given (or the template could not be opened)


        In this case, the problem was caused by this process:




        1. Added sottovoci.net to cPanel using the "Addon Domains" interface from the main cPanel interface.

        2. cPanel created the directory/folder for sottovoci.net with nothing in it.

        3. I went to sottovoci.net and I was redirected to cgi-sys/defaultwebpage.cgi. I don't have any cgi templates set up, so I got the error that there was no defaultwebpage.cgi template.

        4. I created the index.html file.

        5. I went to sottovoci.net and I was immediately redirected to cgi-sys/defaultwebpage.cgi again. I did not see the the index.html page I created.


        What happened is a hidden step right after step 3. My web browser stored in a cache that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi. So, even though I created the index.html file, my web browser refused to check to see if it was there. It immediately forced a redirect.



        The solution, in this case, was to flush my browser's history (every browser has some setting, usually in privacy or security, to flush browser history). Once flushed, my web browser actually asked the server what to do and the server redirected to sottovoci.net/index.html.






        share|improve this answer













        There are many causes for this error:



        Template Error: The template file must be given (or the template could not be opened)


        In this case, the problem was caused by this process:




        1. Added sottovoci.net to cPanel using the "Addon Domains" interface from the main cPanel interface.

        2. cPanel created the directory/folder for sottovoci.net with nothing in it.

        3. I went to sottovoci.net and I was redirected to cgi-sys/defaultwebpage.cgi. I don't have any cgi templates set up, so I got the error that there was no defaultwebpage.cgi template.

        4. I created the index.html file.

        5. I went to sottovoci.net and I was immediately redirected to cgi-sys/defaultwebpage.cgi again. I did not see the the index.html page I created.


        What happened is a hidden step right after step 3. My web browser stored in a cache that sottovoci.net redirects to sottovoci.net/cgi-sys/defaultwebpage.cgi. So, even though I created the index.html file, my web browser refused to check to see if it was there. It immediately forced a redirect.



        The solution, in this case, was to flush my browser's history (every browser has some setting, usually in privacy or security, to flush browser history). Once flushed, my web browser actually asked the server what to do and the server redirected to sottovoci.net/index.html.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 9 '15 at 17:58









        kainawkainaw

        192110




        192110






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189017%2fcpanel-new-domain%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?