If you need to upload files to your hosting account, you will need to know to which directory to upload them. The specific directory you will upload them to will depend on whether you are working with the main domain, an addon domain, or a subdomain. In this guide, we discuss how to determine the document root of your website. (No hosting account? No problem- we’ve got you covered! Our VPS Hosting option takes the guesswork out of website hosting.)
Finding the Document Root
A domain’s document root, also known as the home folder, is the main folder that contains all of the files for either a domain or a subdomain.
Main Domain
The document root for your main domain name is your public_html folder. This means when someone visits your main domain, the server returns files that are located in the public_html folder.
Subdomains
The document root for a subdomain is a bit different. If your subdomain is https://store.example.com, then the document root folder would be public_html/store.
Addon Domains
Addon domain document roots are very similar to subdomains. If there is an addon domain on your account, you will need to look at the >cPanel Addon Domains section in order to see where the root folder has been set. Below is a charted explanation as well.
Domain type | URL path | File Structure |
---|---|---|
Main domain | https://example.com | public_html |
Subdomain | https://store.example.com | public_html/store |
Addon domain | https://example2.com | add_on_domains/example2.com |
How do I find the document root of an addon / subdomain?
If you are unsure of the document root folder for an addon or a subdomain because you did not go with the defaults, you can find it by using the following steps:
- Log into cPanel
- Click Addon domains
- You will see a list of addon domains configured in your account and the document root will be listed here.
Finding a subdomain’s document root
- Log into cPanel
- Click Subdomains
- You will see a list of addon domains configured in your account and the document root will be listed here.
What file loads first?
If no particular file is specified, the directory index file will be the first file the server loads from a folder. For example, if you type in example.com/contact_us.php, the server will return the contact_us.php page. If you type in simply example.com, the server will load the directory’s index file. The server looks for these specific files in the following order:
- index.htm
- index.html
- index.php
If the server does not find any of these files, it will display a default screen with a list of the files in the folder as shown to the right. This can be a security risk so you always want to ensure that a file will be served instead.
Can I change the directory index file?
Some website design applications name the home page something other than the standard index.htm, index.html or index.php. For example, the application may name your homepage Welcome.html, or Home.html. If your application does this, you will need to modify your .htaccess file and set your Directory Index setting to match that of website’s first page.
How do I change the directory index?
To change your directory index, edit your .htaccess file and add the following line:
DirectoryIndex some-file.html
For example:
Let’s assume that the homepage for your website is named Welcome.html. We need to update the .htaccess file so that the server knows to load Welcome.html first, instead of index.htm. Open (or create) the .htaccess file in your domain’s document root and add the following line:
DirectoryIndex Welcome.html
Yes, it is that easy! Please note that the server is case sensitive, so be sure to use the proper case. For example, Welcome.html is different than welcome.html.
Good Video. However i want to know how to edit a website deisgned with ASP.net in Dreamweaver or Visual Studio and stiil can see the design mode, i can’t find the root root file equivalent to index.html to edit the website. Did i asked the right question?
In this article, we’re referencing the document root according to server configuration. So this may depend on what kind of local or remote server environment you’re using. If you’re using ASP, I’d assume it’s a Windows server? We only use Linux servers and thus can’t properly support or advise you with regard to how Windows servers function. I’d refer you to whatever documentation your hosting provider has available to you.
Hello,
Appreciate your efforts. One question; I tried above step but the thing is i am trying this on local host. So i have a LAN network and wanted to access the site within LAN subnet for now. So i made changes as https://localhost/mysitename to https://mysite.com in WordPress settings –> Added the code in wp_config.php file –> Verified database and it has got the new name but site is not access now. Is it because i dont own a domain name for mysite.com? but m accessing it on localhost!
Our guides are intended to assist with using our servers to host your website. If you are using your own local machine to host the website, I recommend reviewing the WordPress.org website for assistance in configuring the website locally.
I accidentally deleted all the root files from server using the FTP. how do i restore all those files?
Thanks!
You must reach out to Live Support immediately to see if there is an emergency backup available. If not, you must check to see if you have a backup saved somewhere. Without backups there is unfortunately no way to recover the files.
Hi,
Somewhere and somehow while handling cpanel files. i lost the contents of index file it seems. but i dont know the page is not showing anything, www.companyname.com is empty whereas www.companyname.com/home is working. and all other pages are ok. while inspecting the www.companyname.com it is showing empty with just title tags. what can i do
The steps described in this article should provide you with some troubleshooting steps you can follow, but, if you are still having trouble finding the document root of your domain currently, I advise checking with our Live Support team.
This article is inaccurate. Add-on domains, by default, are NOT created inside the public_html directory. You have to specify that.
Hello,
Thanks for pointing this out. Earlier version of cPanel did automatically place addon domains into the public_html folder by default. However, the current release lets users determine where that folder will be. I have updated the documentation to reflect this. Thanks again for pointing out the needed update!
Hi There, very useful information, but i have one questions, It is out of the post’s context tho. I hope i can get an answer for it. A friend of a friend once made a website for me, he gave is almost all the information, like cpanel password and etc, but now that when we want to change the website design and we don’t know what he used making that website, and he is not willing to tell us that. contacted him several times but no response. Is there any way I can find which developer is used for my website through my Cpanel? or is there any other way to find that out?
If your site is still up and running, Wappalyzer is a good tool for determining how your site was built.
Typically, WordPress would contain ‘wp’ files such as ‘wp-content’. If you can provide a link to your site, we are happy to try and help you determine how it was built.
Thank you,
John-Paul
it worked. but problem is when i do backspace it donot load the previous .php but displays error how to fix that issue ???
Apologies, but we have no context regarding your post. Can you please provide further details on the actions you are taking resulting in the error that you are seeing?
Sir/Mam, how are you doing?
Just to make everything clear > I just want to insert SSL certificate on my site so that I want to upload it in public_html, but I couldn’t find that public_html, so please help me in finding the public_html or is there any alternative for that or can I create public_html?
Thank You
I suggest you reach out to your hosting provider. SSL certs have specific locations. Also, not all webservers your a “public_html” folder. Contact support and they should be able to help you out.
Hello,
My php file is in one domain and i want to access image from other domain.
For example.
example1.com->test.php
example2.com->image->img.jpg
i want to give path of img.jpg in test.php file.
How could i do that?
You can use an HTML hyperlink to grab the image from the other domain.
Link to image here.
Hey guys, newbie here. I’m trying to install GravityScan Accelerator to augment my WordFence plugin, and was instructed to upload a .php file to my document root and ensure that the file can be accessed via the web.
Following the information on the support guide @ https://www.inmotionhosting.com/support/website/getting-started-guides/where-to-upload-files, I uploaded the file (https://www.directpatientcarestl.com/gravityscan-agent-81XXXX.php) to /public_html.
In order to test if the Accelerator is functioning, I was instructed to access it via the same https://www.directpatientcarestl.com/gravityscan-agent-81XXXX.php in my browser.
But it didn’t work. I’ve always paid someone to do this in the past, but financial constraints require me to learn to do it myself. Either I didn’t interpret the document root nomenclature correctly — or else, as the installation troubleshooting tip stated, I may need to create rewrite rules in my .htaccess file or web server configuration to allow the Accelerator to be accessed.
I don’t know enough to even ask these questions properly, but where do you think I might have gone wrong?
Thanks for your time!
Hello Robbhicks,
Sorry for the issue with the file seeming to not be accessible after you uploaded it. I checked it and the file is in the right place. I also fixed the timezone error (timezone is set to “America/Los_Angeles” – that’s where your server is located). The remaining error will need to be discussed with Wordfence. It’s possible that you have caching set and it needs to be cleared, because the error that I’m seeing makes reference to a path that does not exist on our servers. Make sure you’re referencing the file by the correct and then try it again. If you see the fatal error, then you’re seeing the same thing as me. The problem needs to be resolved by the plugin developer at this point. Everything else appears to be functioning correctly.
If you have any further questions or comments, please let us know.
Regards,
Arnel C.
Good article, super easy to follow and very accurate. I had this problem that I named my index page indexBianca.html and i didn’t knew it will generate this kind of problem, being my first time building a website and publishing it.
But i have a question , can I make something about the fact that when i browse on other pages from the website on the navigation bar from the browser it still appears “www.website.com/about.html” (and the problem that bothers me is that .HTML at the ending). Is there a way to edit what appears on the navigation bar ?
(and instead of www.website.com/about.html to appear www.website.com/about )
Thanks a bunch,
Lavinia
Hello Lavinia,
You can use re-write rules in the .htaccess file to modify links so that they don’t show the extension. Check this article for more detailed information on using the rew-rite.
If you have any further questions or comments, please let us know.
Regards,
Arnel C.
Hello, i did what you told, but its not opening in my wordpress site. It’s coming internal server error, please help me, how to fix this error, Thanks you.Gatti RAQUL
If you are getting a 500 error, you may want to check out our article on troubleshooting 500 errors to see if that helps.
I’ve finished building my site with BoldGrid. It says its saving and publishing but I keep getting the “come back soon” page instead. I’ve tried exporting (which saved as XML). How do I get what I’ve created in Bold Grid to post on my Inmotion account?
I checked your site, and it is loading an index.htm file instead of the index.php file for BoldGrid/WordPress.
I recommend renaming or removing the “index.htm” file in your “/public_html” folder. For example, to: index.htm.old
This should allow the index.php file for BoldGrid to load your site successfully.
Thank you,
John-Paul
Sir,
I designed a small web page for an interactive signage monitor. I used OpenElements. the preview on my desktop is ok. when uploaded to the media monitor, instead of automatically loading the index.htm page (a few buttons which customer uses to trigger prearranged playlists media files) a list of the zip file content which I uploaded shows. I found index.htm in the list and touched it the dashboard comes up. I want the page to load by itself on the assigned space. can you help? Thank you
hablosss, it sounds like you may need to change what file is loaded as your default index page.
Hi,
i am trying to post data in a TCP Packet to a php webpage from my mobile device which in turn stores that data in a mysql database. I am trying to find the correct connection strings in order to access the php script. Can anyone help me connect to the server storing the script (i.e what is my server address which stores my website files) and what is the absoulte file path to a specific document stored within public_html in cpanel.
Kind Regards,
A
If I want a section like www.mydomain.com/something…
Then what I do is create a file called something in my public_html directory?
This has confused me for quite some time and I’m still learning this stuff.
Yes, that is correct. So for example, if you create a something.html file in the /public_html folder you should access it my going to example.com/something.html in a browser.
Thank you,
John-Paul
The Long path tool is the very best program for error, unlock solution.
Try it and solved your problem.
I used the long path tool and I solved my error, unlocks problem solution.
Hi,
I am not able to see “public_html” folder on server. Is it mandatory to upload files through “public_html”?? And also, as I am not able to see the folder “public_html” I have directly uploaded my files to my website i.e. the-page.website/admin/index.html. But the only prob now is script for the menu bar is not working properly only on my website. When I open the same page through dreamweaver in chrome or firefox it’s working properly.
Please Help….
Regards,
sampada.
I suggest checking your file paths on the server. Typically, menu links may change when added to the server. Also, your doc root depends on your host. If you’re not hosted with us, it may not be public_html.
Thank you so much issue is solved now
thank you so much it worked but having one minor issue https://*********.co.uk/
is to redirecting to www why ?? your tutorial is for .com but my site has .co.uk ?
i am facing problem one file is showing 3 times with diffrent url the site is made by someone else im just editing im working on seo
example
https://edensanitarium.co.uk//about_marie.html
https://edensanitarium.co.uk/about_marie.html
https://www.edensanitarium.co.uk/about_marie.html
when i work on one file it is chaning in all but as i am using seo it i saysing that 3 pages using same title and same description
please tell me the reason why pages are showing 3 times with diffrent url ?
regards
Danish Qaim Khani
Hi Danish, you need to force either the www or the non-www version of the website. This can be done in the htaccess file. We have a good tutorial on forcing www on your website.
Hii iam using a dedicated server for my web application.
i am using tomcat as my server and the server coding is done in java.
i want to store users profile images on the server file system , what is the best practice to that, i mean in which directory i should create images folder, and i want to avoid hotlinking.
please help me..
Thankyou
Hello Sheshu,
Thanks for your question. First, in terms of the location for storing image files, this can be a matter of preference. However, in general, we often see files that are being changed/uploaded located in a common area for files of that nature. Application/website infrastructure files are typically saved elsewhere. If you want an example of this, you can look at how WordPress saves their files on the server. Though they are in the same hard drive area, the content files that are uploaded by user or website admin are located in the WP-CONTENT folder. This makes it easy to update the other application files located in the other folders without touching the content. It also centralizes where the content files are located making it easy to backup or move. For better performance, if you have a lot of media files and you make use of a content distribution network (CDN), then if you set up your site to reference the CDN then there is a performance benefit to your viewers.
I hope this helps to answer your question, please let us know if you require any further assistance.
Regards,
Arnel C.
very helpful. Just need to know how to link to a folder next to website folder. I have a folder named ‘files’ next to my add on website. In local, its working fine but online, it takes me to index page rather downloading the file. how would I call document root because if I add it directly, it comes as such https://website.com/public_html/SSD/files/filename.doc and I know its not a correct path? if I remove it, it comes with https://website.com/files/filename.doc and still doesn’t work. takes me to website index page.
Just to clear a bit, my website is an add on website, public_html/SSD, and files folder is under public_html. so I have to move back from SSD to reach the files inside files folder
I’m not sure what you are trying to accomplish. Is this a file that you want to make downloadable? Or, is it supposed to display like a regular HTML page?
i have a dynamic site , many html pages are not found error 404 there. how can i fix them , where can i find them in ftp for correction
thanks
js
Typically dynamic sites generate the pages using a script, so there are not any html pages to edit. Instead, you would edit the code of the actual script generating the pages.
Thank you,
John-Paul
Hello,
My project is in WordPress and i hosted it on server. It is working nice with its primary domain.
But I want to add one additional domain to this project.
My Client already setup the project and both domain. When i ping to both domain it gives me same IP Address.
That means both domain are pointing to same server.
But, When i open one domain It will open my wordpress project. And when i try to open second domain it return cgi-bin directory.
I also tried to add Aliases But it gives me an Error : There was an error when the system attempted to create the alias. Park::park(**********.com) failed: (XID 6ae776) The domain “domain2.com” already exists in the Apache configuration.
It seems like you might be seeing the file structure, since there is not a site there to load yet.
As a test, try creating an index.html file and putting some basic text there. Then, see if the file will load.
Thank you,
John-Paul
I suggest you check out our Getting Started series. It is very complete.
Thank you Christopher. Eventually, I did figure that out, but it took me a while. 🙂
Hello Reza,
Sorry for the website issues. If you built your website using ASPX, then you are not hosting the site on our hosting service since we are a Linux-based hosting service. Based on what you have said, the most likely problem is that you are not using a standard INDEX page. By default, the web server typically looks for an index page. This is the first page of your site. If it’s not there, then web servers will typically list all of the pages and label the page as INDEX OF. If your first website page is NOT named INDEX.PHP, INDEX.HTM or INDEX.HTML, you will need to make sure that you have defined the index page in the HTACCESS file. This might be a little different in a Windows environment, but on our hosting service, the DIRECTORYINDEX command can be used in the .HTACCESS file to define the index page for your site. You will need to consult with technical support with a Windows-based host for further details on the requirements for your site to appear correctly.
I hope this helps to answer your question, please let us know if you require any further assistance.
Regards,
Arnel C.
I put my files in ecopraxis.com.br/public_html/FJS. The problem I don’t seem to understand is that I can only access them through FTP and not through HTTP. I mean, I can see them in my browser when I type ftp://ecopraxis.com.br/public_html/FJS but not when I type https://ecopraxis.com.br/public_html/FJS.
Can you please give me a hint about what I might have not understood yet? Thank you.
You should be need to type in the “public_html” directory when looking up the domain. Normally you would be able to look up the domain followed by the directory: example.com/FJS.
Hi,
Im trying to defer parsing of a javascript file and to move the code in to the bottom of the HTML file and include a JS code that tells the visualization to delay the loading of that file, because its big, and fisrt to load and render the visual elements (for the homepage ) and after that it can be loaded – so that can speed up my loading time of the home page.
So im trying to find that html file but i can’t, there are lost of html files in the ftp, but non of them seems to have that JS code that i need to change… Every file is about difrent think. For example 1 is for some buttons, other is for some part of the footer etc. How can i define where is that HTML file, cause on my homepage, when i click “page source” i can see the whole hmtl file but only there? Please help about that!
Thank you in andvance!
Hello George,
Sorry for the problem! We can try to help, but we do need more information. Also, I’m not sure how you’re looking at your files. Are you using FTP? Or the File Manager? If you’re a customer of InMotion, then you can use the cPanel file manager. Give us a little more information and we can look into the matter for you.
If you have any further questions, please let us know.
Kindest regards,
Arnel C.
When i search on Google for my website *****.in it shoes result but below website link it Says A description for this result is not available because of this site’s robots.txt. and suggest me to change robots.txt file. but i couldn’t find robots.txt file in my cPanel file manager and when i searched for “robot” in all my files it shows ‘no result found’. So please tell me where i can find this file. url of this page is ******.in/robots.txt
Hello Sunil,
We do not have a default robots.txt file in our accounts. I see your account is not one of ours, however. It is possible they do not give a default robots.txt file either. You can certainly create one in your account so you can configure it as needed.
Kindest Regards,
Scott M
Sir,
i cant find index.html and any main page source code file in public_html folder please help me.
Hello Zaee,
Thank you for contacting us. Depending on your specific site setup, there may not be an index.html file in your /public_html folder.
For example, if you just signed up there will be a default.html file. If you place any type of index file into the public_html folder, it will automatically become the primary index file.
If you are running a PHP based web builder (such as WordPress, Joomla, Drupal, etc.) there will be an index.php file instead.
Thank you,
John-Paul
Hi,
I’m doing a wordpress setup on a fresh UNIX Hosting, I’m doing it manually, I’m only stuck where and what to copy, should I copy the content of the “wordpress” folder to the “public_html” root or the main folder itself “wordpress”? Whats the better procedure? Please note that later my main WP will be a wordpress theme…
Thanks in advance
Hello Ali,
The wordpress files all go under the public_html folder individually. Having them under a folder named ‘wordpress’ would mean they need to view your that portion of your site at ‘example.com/wordpress’.
Kindest Regards,
Scott M
Hi,
I have created a website using HTML, it was running fine in localhost/browser but once I uploaded to my cpanel, and when I visited my site I could see only text and no images. I have uploaded the complete zip folder dont know whats gone wrong.
PLease help!!
Hello Kay,
Thank you for contacting us. We are happy to help, but will need some additional information.
When you view the image path (Chrome: right-click–>copy image URL, Firefox: right-click–>Copy image location), are they in the correct location?
Can you provide a link to the site, so we can test the images?
Thank you,
John-Paul
Hi – I have been developing my site (using drupal 7) at my.domain.com/beta subdirectory. When I am ready to “go live” do I need to move all my files up one directory or can I point my.domain.com to the /beta directory? If possible, I would want people NOT to see the /beta in the path.
Hello,
Drupal has a guide that may help you. It was designed for those who build their site in a different location and then need to move it to their main site.
Ray,
my common.js file is being returned as 403 Forbidden: Permission denied: file permissions deny server access
How can I change that? Thanks
Hello Michael,
You may want to check out our article on file permissions.
Kindest Regards,
Scott M
When I upload using FTP, with MS Front Page, do I have to upload 1 file at a time or does FP upload only changed pages or new pages?? I have 7-800 files per week that I upload and uploading only a couple at a time will be a BIG hassle.
Hello Ray,
FTP does not restrict you to only a couple of files at a time. You can upload as many as you need. I am not sure how FrontPage handles this currently as we no longer provide support for it. If it gives you issues, you can always use an FTP client such as WSFTP or FileZilla.
Kindest Regards,
Scott M
i made a site using php and already hosted but my registraion page access or use the register.php page.I dont know how to resolve this problem.
please tell me how to resolve it
Hello Devil,
Thank you for contacting us today. We are happy to help, but will need some additional information.
What problems/errors are you having?
What CMS are you using? For example are you using WordPress, Joomla, Drupal, etc.
Can you provide a link to the page you are having problems with?
Thank you,
John-Paul
Hi. I’m working on putting my site together using Joomla (bakerboysffl.com) but with one of my articles, I want to link to a file that visitors can download or view in another window. I’m confused about where I need to FTP the file in question. I don’t see a “index.htm” file perhaps because the Joomla site uses different terminology (?). Please point me in the right direction! Thanks.
Hello Todd,
Thank you for your question. There are many extensions available that will allow you to sell digital/downloadable products from Joomla.
Some of the most popular are PayPal Digital Goods, DigiStore, and J2Store.
If you have any further questions, feel free to post them below.
Thank you,
John-Paul
Hi, Im having problem with my php index file. It always disappeared from my host server at exactly 8:00am. I always have re-upload it.
Thank you for your assistance.
Hello AAkwami,
Sorry for the problem with the php index file. We’re not really sure why you’re losing your PHP.INI file. However, you have given us NO information on your account (if you’re an InMotion customer). I would check your CRON jobs to make sure that nothing making changes to your files. The server would not be purposefully deleting a critical file like the php.ini file.
If you wish for us to look into the matter further, then please provide more details on your account and we can investigate the matter in more depth.
Regards,
Arnel C.
this is my first time using paid hosting. there’s no index or default file. no directories also. so i put an index.html file but it didn’t do any changes. it still shows “website coming soon”. please help. thanks.
Hello marco,
Thank you for your question. I first recommend clearing your browser cache and testing your site again. This should pull the latest files associated with your site, and may fix your problem.
If it doesn’t change, you are most likely uploading your index.html file to the wrong location.
Our guide on How to remove the InMotion Coming Soon page, explains more in-depth how to replace the file.
Also, I could not locate an account on our servers associated with your information. If you are not hosted with us, you may have different file structure.
If you have any further questions, feel free to post them below.
Thank you,
John-Paul
Hello,
I have uploaded .7z files in server and applied link from html webpage when I click on .7z link, it could not open. Looking for help what is proper html scripts to link .7z files so that user can download .7z or how can i link .7z file in html webpage.
Hello Pawan Kumar,
You should be able to link them as normal such as with a “a href” tag. Can you please provide a link to your .7z file so we may look into the issue further?
Kindest Regards,
TJ Edens
I am trying to install opencart template .
For that I uploaded downloaded .rar file from google in my domain cpanel.
and after that when i open opencart admin
and in that when I select template it is getting selected but after saving default template getting selected .
plz give me any suggestion.
Hello Mangesh,
I am not quite understanding your question. This article is dealing with where to upload your files. Are you having issues uploading files to your OpenCart? Or are you saying once uploaded, when you select a new theme, the old one displays?
If your question is the based on theme selection and not where to upload the files, please give as many details as possible on the steps you took, your OpentCart version, and what themes you are using. But be sure to place them in a new question and not here so we can maintain the integrity of the Support Center.
Kindest Regards,
Scott M
hi
if i upload my files to the public_html…what should i use as my VIRTUAL_LOCATION in the config.php file cox it is giving me error
thanks
Hello Seye,
What software are you using? What is the error message you are getting? Is this for your site? What function is it trying to perform when the error occurs?
Kindest Regards,
Scott M
Thank you John-Paul,
This is exactly what I needed. I will try it afterwork tonight!
Cheers,
William
Hello PARRY,
Thank you for contacting us. You will have to create the pdf yourself, or use a 3rd party Addon such as Export PDF Catalog 1.5 – PS 1.5 & 1.6 Module.
can add the pdf as a downloadable product in PrestaShop, and set the price to free.
Thank you,
John-Paul
Good day,
I purchased a template from ThemeForest for my OpenCart website. I read your tutorials and downloaded Filezilla. It is my first time using FTP. Everything is a-okay so far and I managed to quickconnect without a sweat. I have already extracted the template into a folder on my desktop. I have two questions:
1. I would like to know where exactly in ‘Remote Site’ I should drag the template files. Do I put them directly in public_html or do I create a sub-folder in public_html? Is there a more appropriate folder to put website template files?
2. How do I then run the template so it takes effect on my new site. Usually, if I download a software, I can always look for the .exe and double-click that to run an application. Template files don’t seem to work like that and use unknown extensions such as .sh, .sql. What should I double-click to make my template work?
I wouldreally appreciate your assistance!
Cheers,
William
Hello William,
Thank you for contacting us. I recommend following our walk-through guide on Installing an OpenCart theme.
It explains where to upload the files to (the root of your OpenCart installation), and how to install the theme .
Thank you,
John-Paul
i am using hosting and domain with hostgator.com and designing web in prestashop 1.6 now i want to upload my product catalog in my webpage in pdf format. so that my customers can directly download from my web page or can i creat any link that can be uploaded in my web page so that i can send my customer that link to download from my web
hi,
just now i uploaded my php script page to my live server (free hosting site), its works fine but when i upload the same page to my paid server godaddy its says the system cannot find the path specified.
Hello prabudass,
Thank you for your question. I recommend checking the specified path in the script, and make sure it is correct with Godaddy’s file structure.
I tried to find a guide in Godaddy’s Support site, but could not find anything helpful. You may want to reach out to them via ticket or phone support.
If you have any further questions, feel free to post them below.
Thank you,
John-Paul
Hello,
I need some favour, actually I have uploaded my website on server.but it is in .net architecture.It all contains .aspx pages not .html. I uploaded that but these pages are showing code on my website.what shouls I have to do?
Hello,
Microsoft specific pages like asp will only work on servers that are Windows based or after extensive modification to be able to do so. Our servers do not work with Windows products as they are Linux based.
Kindest Regards,
Scott M
hi everybody i got an issue in php,i have uploaded a php code webpage to my server, but when i click on that anchor tag, i am getting a error message obviously its not a error message, i am getting The System cannot find the path specified.
i am using godaddy server
Hello Prabudass,
That type of error means that the server was told to look at a specific folder path. If it looks for that path but cannot find one or more elements of the path (folder or file) then it will throw that error. Check the code and any paths mentioned in it and then look to ensure that the exact same path exists in your hosting account.
For example: if the code needs a path of ‘abc/123/xyz.php’ but the server only has ‘abc/xyz.php’ then the error will occur because it cannot find the ‘123’ directory.
Kindest Regards,
Scott M
Hello Team,
I am facing one problem in my magento website.
I have a email newsletter which have some images to show.
My problem is to access the images outside the website. For example, when i typed the url/path of images paced in website, it shows 404 error, because magento think this is a some page name(which is not actually).
I just want to access those images. For example example.com/newsletter_images/offer.jpg
Guys, please help. I am stucked in this.
Thanks in advance
-Amrinder
Hello Amrinder,
You may want to make this a new question under the Magento category.
By the basic description, we would not be able to give any advice. Do you have a specific link to an image in your newsletter you can share so we can check? Also, if you are a customer, we are able to assist by checking files and folders in the account for things such as permissions, or hotlink protection, etc.
Kindest Regards,
Scott M
article is fine, just not what I need. I cannot find my WP pages (dozens of them) via ftp
Hello Jonathan,
Word press posts do not exist in the account as files. Each post, page, etc is created at the time it is clicked by the server. The data for each post/page is kept in the wordpress database.
Kindest Regards,
Scott M
information for code development sharing……
Hello,
Thank you for contacting us today. After creating a phpinfo page, you should be able to see your PHP settings right away.
If it is not, we are happy to help, but will need some additional information.
What happens when you go to your phpinfo page? Are you getting any errors? What are the errors?
Can you provide a link to the page you are creating, so we can test the problem?
Thank you,
John-Paul
Hello Joseph,
Thank you for contacting us. We are happy to help, but will need some additional information.
What is happening, are you getting any errors?
Is this a new subdomain? Keep in mind newly created domains/subdomains can take up to 24 hours to propagate.
Is the domain name pointed to our nameservers? If not, you must create the subdomain where your DNS is hosted, and point it to your shared IP.
If you have any further question, feel free to post them below.
Thank you,
John-Paul
Hello Joseph,
Thank you for your feedback. Our guide on moving your websiteto InMotion Hosting may help with your transfer.
Also keep in mind Live Support is available 24/7 365 days a year, and we are located in Virginia Beach.
If you have any further questions, feel free to post them below.
Thanks,
John-Paul
Hello Mors,
Thank you for your question. As long as your user has permission to the .js, and .php file, you should be able to access it via absolute path.
If you have any further questions, please feel free to post them below.
Thank you,
John-Paul
How to fix the php issue? I won’t execute the simple phpinfo().
Hi everyone,
I’ve been searching for couple days and really fraustrated and did could not found the answer I am looking for. I have a small web application which uses php, javascript, jquery, and html. the only file the user is supposed to see is html file. java script and jquery are the only files communicating with php script (sending data over and receiving data). Therefore, I don’t want to place my php file inside htdocs and I rather put it in cgi-bin. But my problem is when I place them in any folder before htdocs, it does not work. for example: if my html file is in htdocs and i leave my files in htdocs/bin/myJsfile.js , myPhp.php , it works.
I’m using apache 2.2 and I’m sure I have the correct permisson for cgi-bing which is 755. Overall, the only reason for me to do that is because if the user opens up my js file from page source view, they can see what is the name of php file it’s communicating with which can be very harmful. The reason is if the user search for example: localhost/myphp.php, it means they can have access to that actual file, regardless of they wont see the code.
Is there anyway I can place and read php file on cgi-bin?
I appreciate if someone help me with that.
Cheers,
How to ftp to my root directory? I’m learning web development and I would like to know how to move my files/pictures to the root directory so people can see my webpage. Also, would you please tell me if inmotion server support C++ script?
Thank you,
Hello Binh,
The root folder for your primary domain name is public_html. The root folder for any addon domain would be named after the domain and under the public_html folder. For example, if you had an addon domain for example.com the root folder would be public_html/example.com
As for the C++ scripts, they cannot run in the default server setup, but can be set up if you have root access on a VPS or Dedicated server.
Kindest Regards,
Scott M
PHP isn’t working for the subdomain I created.
Too early for me to judge. Wait till I upload my site folders and files and then I willl know whether you are better than godaddy. If so, I will consider moving my other sites from godaddy to inmotion.
In the past there was the option of uploading multiple images. It is no longer there. This is a huge inconvenience. Even if I were to upload them through ftp, there is no folder for the photo albums to place them in. This is one of my main uses for sharing religion and family events. Can the team make it so that at least through ftp, we can upload into album folders?
Hello Jag,
You can use FTP to upload multiple images at once to the server.
For instance, on your desktop if you created a folder called my_images, and then inside that folder created another 3 folders called religion, family, and photos and then started placing images that fit into each of those categories into those folders. You could then simply connect with FTP to the server and upload the my_images folder from your desktop to the /public_html directory on the server.
You would then be able to access those images from your website, for instance if your website was example.com you would access those uploaded images at:
https://example.com/my_images/
https://example.com/my_images/religion
https://example.com/my_images/family
https://example.com/my_images/photos
Or you can just create the folders directly on the server via FTP that you’d like to move images into and upload multiple images that way too.
Please let us know if you have any further questions at all!
– Jacob
Can I change my document root?
Hello Ben,
Thank you for your comment. While it is not common, there are ways to change your document root; here is a link to our full guide.
If you are on a shared server, you would have to submit a ticket, and request that Live Support make the change for you.
If you have a VPS or Dedicated server, you can make the change with Root access.
Changing a primary domain’s doc root is NEVER RECOMMENDED by InMotion Hosting. cPanel restores packages based on default settings and miss document root changes. So if the account is moved, the accounts with the doc root change may break.
If you have any further questions, feel free to post them below.
Thank you,
-John-Paul
Hello Gulf Safety,
Thanks or the comment. As per my earlier reply, some of the older accounts may have an index file, but any newly purchased account starts with a “default.htm”. The article above refers to a “document root” which is set to PUBLIC_HTML by default. However, this can be changed as per our article: Changing the document root.
If you have any questions, let me know.
Arnel C.
This article was written for older accounts that have the INDEX.HTML file within the public_html folder. Our apologies for any confusion. I will update the article with a note shortly.
Gulf Safety Equips Trading LLC
Hello Tmgiles6,
If your account is fairly recent you will NOT see the INDEX.HTML file. They have removed it and only the default.html file exists now. If you place any type of index file into the public_html folder, it will automatically become the primary index file.
This article was written for older accounts that have the INDEX.HTML file within the public_html folder. Our apologies for any confusion. I will update the article with a note shortly.
If you have any further questions, please contact technical support or leave a comment at the bottom of the page.
Regards,
Arnel C.
You say in this article to delete InMotion’s index.html file and we shouldn’t see the “Website Coming Soon” page. I can’t find that file. Where is it located?