Hi I have been learning how to design a website and it went ok but i tested it on localhost and everything is working as it should but i have been having some trouble with functionality when i have uploaded my files to my hosting provider Arvixe.
I've been trying to learn how to structure my website properly in the domain folders but i can't work out how it should be properly organised.
I have a Parent website, and subdomains that need to go together so for example -
Parentwebsite.com
Subdomain1.Parentwebsite.com
Subdomain2.Parentwebsite.com
Subdomain3.Parentwebsite.com
On my locahost test server i just created the websites individually and put them under the htdocs folder in XAMPP. However the folder structure for the Arvixe hosting is a lot different - it currently looks like this:
http://imgur.com/brqSp9W
Am i laying out my folders correctly?
And also if i have PHP scripts for the website are they better suited to go into their own folder inside public html? Or they better suited to go directly into the public html folder?
Thanks in advance for any help :)
Your web host is using cPanel and it has typical directory structure which is quite different compared to your Local XAMPP environment.
Here's how cPanel stores the website files.
/home/cPanel-user/public_html ==> Main domain
/home/cPanel-user/public_html/addon-domain-directory ==> Addon domain
/home/cPanel-user/public_html/subdomain-directory ==> Sub-domain
To make your website accessible via web, upload your web content files to
/home/cPanel-user/public_html directory.
When you add a addon domain from cPanel, its web files will be stored at;
/home/cPanel-user/public_html/addon-domain-directory
When you add subdomain, its web files will be stored at;
/home/cPanel-user/public_html/subdomain-directory
Related
I have designed a website using HTML5 and now want publish it. But that website previously was built in ASP.NET. Now I want to upload my data, but there is no "public_html" folder. So how to upload my data??
Some hosts have a public_html folder to place your files inside while others do not. Just connect to the server and upload them to the folder like usual.
I'm trying to make a simple four page website, all HTML with some CSS and images. This is my first site. After I'm done building the HTML documents, what do I need to upload them and get the site running?
In order to put up a website, you need a web hosting provider. So the first thing you need is a hosting provider. Make sure that your provider offers FTP access to your website. You will need to contact your hosting provider (http://webdesign.about.com/od/webhosting/f/blfaqwebhosting.htm) if you aren't sure.
Once you have a hosting provider, in order to connect by FTP you need some specific information:
your username
password
the host name or URL where you should upload files
your URL or web address (especially if it's different from the host name
You can get this information from your hosting provider if you aren't sure what it is.
Make sure your computer is connected to the internet and that your WiFi is working.
Open an FTP client. As I mentioned above, most computers come with a built-in FTP client, but these tend to be fairly hard to use. It's better to use a visual style editor so you can drag and drop your files from your hard drive to your hosting provider.
Best FTP Clients for Windows
Best FTP Clients for Macintosh
Following the instructions for your client, put in your host name or the URL where you should upload your files.
If you try to connect to your hosting provider, you should be prompted for a username and password. Enter them in.
Switch to the correct directory on your hosting provider.
Select the file or files you want to load onto your website, and drag them to the hosting provider pane in your FTP client.
Visit the website to verify that your files uploaded correctly.
Tips:
Don't forget to transfer images and other multimedia files that are associated with your website, and put them in the correct directories.
It can often be easiest to just select the entire folder and upload all the files and directories at once. Especially if you have fewer than 100 files.
What You Need
FTP client
check this out http://webdesign.about.com/cs/beginninghtml/ht/htupload.htm i hope this could help you
quick question to day. I've done a little digging around on the net and i can't really find a very definitive answer.
Basically, I run my own server on a redundant dual core, 4gb ram 2Tb pc (server1)
And on here, i would like to make an FTP partition. Reason being, i would very much like to be able to transfer files back and forth work, uni and home as i please.
I also run a website from my server which allows me to stream media from my hard drive to any laptop, tablet, desktop, iphone, android.. you name it!
I would LIKE to be able to add a section on my website where by I can log in and access my files as a sort of HTMF5 Front end.
I am aware and know how to create a login with a database which has md5 hash and store cookies to stop un-authorised people accessing my ftp.
Any help or a shove in the right direction would be much appreciated! Thanks in advance :D
Yes it's possible. but that won't be HTML5 ftp server etc that you mentioned.
You can achieve this by installing a web server on your machine like apache and then make directories public - run Apache on some port and you will be able to access the directory. if your server is running on port 8080, URL will be like: domain.com:8080 - You can style directory using this simple script & make this password protected as well using .htaccess .
osFileManager
The other option is to use some php script. Many commercial scripts are available and as well as open source. i recommend you trying osFileManager - it has a lot of features like:
Browse the directory structure
Create files
Upload files
Rename files
Move files
Delete files
Edit files
Change permissions
Change password
Create users
Here is it's installation instructions: http://www.osfilemanager.com/osfilemanager-docs.html
or a paid HTML5 & AJAX based script can be bought for 14$ from here:
http://codecanyon.net/item/file-manager-and-backup-system/5177206
I created a website using Code Ignitor and MySQL and want to upload everything to 000webhost.com
How do I:
upload my models, views and controllers to the public_html folder of 000webhost?
get my MySQL database up and running on 000webhost?
Thanks in advance
I am presuming that your control panel is cPanel. If thats the case then upload all your files in the web root of the server. Create a database, and change that details in database.php inside config folder. thats it, your site will be up and running.
Your .htaccess (at least mod_rewrite for codeigniter) will not work if you use the free 000webhost service (at least the last time i wanted it, the support told me that they doesn't support it... that was thy time i signed up for their free service for private test of scripts i wrote). Another thing is that for the free hosting they use their own control panel (not cPanel), cPanel is for the paid accounts.
Anyway they both offer ftp accounts, mysql databases and of course web ftp (online file manager). All you need is a ftp client (such as FileZilla or even Windows Explorer itself).
Am very to new to web development.
I have the web pages; web pages are developed in html, CSS Style sheet.
For Example
I have the ftp domain or crystal.com for hosting my web page
For hosting my web pages, I have to create setup file for hosting my web page or simply post my html files.
Can any one tell the procedure, what are the things I have to do for the web hosting?
Note: I am not asking about Web hosting domain. Already I have the domain, but how to post my html files in that domain.
Need Help?
Ftp is the best way to publish your files. Use something like filezilla and read the help docs. You will upload the files to a folder (usually something like public_html) and then the files correspond to your domain. Example:
you upload a file:
/public_html/blog/index.htm
then go to your site:
http://www.yourdomain.com/blog/index.htm
Here is a good tutorial on FTP. It's pretty easy once you get the hang of it.
You need to set up your domain provider's DNS server to point to the server where your files are located. For example, I have my domain (brasee.com) through GoDaddy.com, and I host my site locally. So I go to the GoDaddy website and update their DNS server to forward brasee.com requests to my server's IP address.