Author Topic: How to upload webpage contend???  (Read 5391 times)

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
How to upload webpage contend???
« on: November 19, 2009, 05:12:50 pm »
Hi this might sound like a stupid Q but I'm struggling for quite a wile now to upload a web page to Apache on my ebox server ( now ver 1.2) I used core ftp but looking to the documentation it seems that you would not be able to upload via ftp ,ssh, or any of the protocols core ftp provides could anyone point me in the right direction please I can access it and even via my dns IT WORKS comes up when entering my URL so all is fine just need to upload contend now ??? ???
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #1 on: November 19, 2009, 05:47:23 pm »
You can upload the content to the home of the admin user by scp, and then you can move it to the proper directory by ssh.
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #2 on: November 20, 2009, 03:11:28 pm »
Okay so what I understand is I enable file server on ebox administration page for me (the administrator) and upload everything in there (This part is already done )


Now login on to page via ssl and transfer from admin user to www data file? How do I go about doing this???
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #3 on: November 20, 2009, 04:49:52 pm »
Uploading via file sharing (samba) as you have done is also valid, I told you to do it using "scp", but no problem, it's ok. Then you can use ssh, not any ssl web page. Using ssh you get a shell where you can execute any command like "mv" to move the files.
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #4 on: November 21, 2009, 11:09:41 pm »
not any ssl web page. Using ssh you get a shell where you can execute any command like "mv" to move the files.

Any specific programs I can use in this case? Sorry but Im new to the uploading process In ebox!
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #5 on: November 21, 2009, 11:50:28 pm »
ssh is a console program itself, if you want a windows client you have putty.

You can get a shell from any machine in the internal network with "ssh ebox-ip-address".
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #6 on: November 22, 2009, 12:01:39 am »
Can you explain this in a bit more detail for me please

Thanx for your help thus far!!
Only people that wants to no more will ask!!

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: How to upload webpage contend???
« Reply #7 on: November 22, 2009, 12:49:09 am »
Download 'putty' from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and use it to SSH into your ebox machine.

Once you have done that, you have a shell where you can write commands to move the files you have uploaded to the appropriate place. You can read about moving files here:
http://www.ee.surrey.ac.uk/Teaching/Unix/unix2.html

The directory used by the webserver is /var/www, so you'll need to move the stuff there.

Cheers!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #8 on: November 22, 2009, 01:14:41 am »
Thanx for you help just one Q though id like to know what do you type before the /var/WWW to get into this directory cos it tells me no such file or directory when I type this into putty after the login process
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #9 on: November 22, 2009, 01:43:32 am »
The directory is /var/www, in lower case.
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #10 on: November 22, 2009, 02:00:05 am »
Thank you I got that part right but now it tells me I cant move it because access denied

I used mv home/hannes/CSIWISP.html -t  /var/www

mv: cannot move `/home/hannes/CSIWISP.html' to `/var/www/CSIWISP.html':
Permission denied

What can I do now Sorry to bug you like this but this is the only way I would be able to learn how to do it myself!!
« Last Edit: November 22, 2009, 02:01:37 am by HANNES1985 »
Only people that wants to no more will ask!!

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: How to upload webpage contend???
« Reply #11 on: November 22, 2009, 02:05:06 am »
Thank you I got that part right but now it tells me I cant move it because access denied

I used mv home/hannes/CSIWISP.html -t  /var/www

mv: cannot move `/home/hannes/CSIWISP.html' to `/var/www/CSIWISP.html':
Permission denied

What can I do now Sorry to bug you like this but this is the only way I would be able to learn how to do it myself!!

You have to run the command as administrator, for that, just write 'sudo' before the command.

You can move the file using:
Code: [Select]
sudo mv /home/hannes/CSIWISP.html /var/www

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #12 on: November 22, 2009, 02:14:00 am »
Thanx I got it eventually thank you all for your help I appreciate it !!! :)
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #13 on: November 22, 2009, 02:18:57 am »
Okay all is uploaded but still cannot see the contend on the web page I did restart the server service an ideas what could be wrong?

Sorry I guess I have to upload an .htm file to view it by just typing the www.domain.com in !!

will fix this later thank you guys for all your help Im done for now have to go sleep now!!
« Last Edit: November 22, 2009, 02:27:04 am by HANNES1985 »
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #14 on: November 22, 2009, 02:28:55 am »
What is the URL that you are trying to access?
Zentyal Server Lead Developer