Skip to main content

Release and a test version of my website.

Comments

4 comments

  • Arbu
    Well, in File Manager of cPanel I have a folder called public_html. Under that there are four folders entitled "example.com", "resipsa", "server" and "server2". Each contains the same folders and files. example.com is the name of my domain, "resipsa" my product and the other two folders have been set up for me by a third party. Putting "server.example.com" or "server2.example.com" into the browser works but putting "resipsa.example.com" or ww w.example.com doesn't. The former tells me "500 Internal Server Error" and the latter gives me the "Index of" message which I described before. All three subdomains are listed under the subdomains facility of cPanel. So clearly just copying folders and files from a subdomain to another one or to the root folder for the domain doesn't work. I have to do something more. But what? I don't see what further information a screenshot would give you. Secondly, as I say, I have applied a password through cPanel to one of the server subdomains. But it doesn't seem to do anything. Where is it supposed to show up? When someone is navigating to the subdomain in a browser? Or when someone with access to my file system through cPanel is seeking to access the files? Just saying "oh, you can apply a password" isn't very helpful because it doesn't explain the effect of that password.
    0
  • Infopro
    Well, in File Manager of cPanel I have a folder called public_html.

    The public_html directory (or root directory) in File Manager is the same as example.com when opened your browser, example.com being your cPanel account's main domain.
    Under that there are four folders entitled "example.com", "resipsa", "server" and "server2". Each contains the same folders and files.

    Do you have a second domain added to your cPanel account as an addon domain? Assuming yes as that would create that example.com directory inside the public_html directory. If you don't, it sounds like your 3rd party help copied your account over incorrectly, if I was to guess.
    So clearly just copying folders and files from a subdomain to another one or to the root folder for the domain doesn't work.

    You should make sure the sub domains are working correctly first, before bothering to copy over files to them. If the files you've copied over to them is for a site that uses a database, wordpress or a shopping cart for example, those duplicated sites need their own databases.
    Just saying "oh, you can apply a password" isn't very helpful because it doesn't explain the effect of that password.

    That earlier worthless post in this thread has been removed. In the Directory Privacy area of your cPanel, you click the folder next to the public_html listing there. Next, click the resipsa directory name itself to get into that directory. There, you find your options to password protect the directory. Create a User and set his password, first, and save. Next, click the Go back to go back to the same place a second time. This time, tick the "Password protect this directory." option at top of page. Enter a name, it can be anything here for the "Enter a name for the protected directory" form. Click Save a second time. Now visit example.com/resipsa/ in your browser to find a pop up asking you for that username and password you just set for that specific directory. To remove the password protection, simply go back to that same location and untick the "Password protect this directory", and save. All that said, creating a duplicate site in a sub domain is a bit more work to manage (file paths etc.) than creating a duplicate site in a directory inside your public_html. IMHO. public_html/ = example.com public_html/resipsa/ = stage site, password protected
    0
  • Arbu
    Many thanks. The issue with duplicating my subdomain seems to have been that the htaccess file had to be updated for the new location. The passwording now works, thanks. It's a bit odd that you have to set up the user and then go back and name the protected folder, but I've done that and I now see what the idea is.
    0
  • Infopro
    Happy to help. :)
    0

Please sign in to leave a comment.