Finnley 565 Posted May 20, 2016 So I am doing an assignment for school and I am stuck. Basically my last assignment was: build a website. I have done that, but now I have to actually host the website. What I was told to do is run an Ubuntu server using a virtual machine. Done that. Then install a FTP server on your computer and on the virtual machine. Got them both running. Now what? By the way I am a rookie in programming, especially in website hosting etc. How do I get my HTML and CSS files running on the Ubuntu server and where does the FTP come in? I assume I have to use the FTP servers to get the files to my Ubuntu server, but I am not sure... Can anyone help me make the next step? Quote Share this post Link to post
Lurker 1 Posted May 20, 2016 Use a ftp client like filezila to set those files or you can do it in raw format from the terminal and filetransfer/script. Quote Share this post Link to post
Gunstar 513 Posted May 20, 2016 I am assuming you have to use FTP to transfer your files into the server. You put your html and css files in a folder in that server and then you open the website html file from a web browser. Poke me if you see me on Teamspeak and I will help you with it. I have done it before although the server was already set up for us and all we did was connect to the server and put our website files in there. Quote Share this post Link to post
Finnley 565 Posted May 20, 2016 Alright, thanks for the offer Gunstar, however I figured something out... I now know how to use Filezilla properly and I somehow got permission, but now my website looks like this: Please don't say I have to rename the home to index.html, because that would mean I have to edit every html file as they have a picture that sends them back to home.html How do I set the default page? Quote Share this post Link to post
ColdMeekly<3 16 Posted May 20, 2016 Nice and easy fix to start on "home.html" Go ahead and locate your htaccess file, or create it if you don't have one. and paste this inside the file: DirectoryIndex home.html Quote Share this post Link to post
Gunstar 513 Posted May 20, 2016 If anyone was wondering, what I suggested to Finn was this: Make a index.php file with the following code: <?php header('Location: home.html'); ?> and it worked for him. 2 ColdMeekly<3 and Raw reacted to this Quote Share this post Link to post
ColdMeekly<3 16 Posted May 20, 2016 +1 to Gunstar for helping out :3 Quote Share this post Link to post