Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: How can I put web-site files to the Apache web-server when I

  1. #1
    Join Date
    Jun 2008
    Location
    UK; deep south, far below Watford.
    Posts
    275

    Default How can I put web-site files to the Apache web-server when I

    I'm folllowing the execllent HOWTO from Sweerdna to set up an Apache based web-server on my home lan (as a setep to publishuing on a hosted system). I was geeting on fine until I moved to one of my Windows clients, started Dreamweaver and began to define a site. For the remote site, Dreamwaver 2004 MX offers to browse to the web-server location where I want to build my web--site - which, according to Swerdna's guide is in /<servername>/srv/www/htdocs.

    My windows (and other Linux) client can only see users and groups on the server - how can I possibly get to /srv/www/htdocs. with write permission, from a client machine -any client machine? Surely none is ever going to have write permission to that location?
    They said I wasn't fit to live with a pig; my brother stood up for me and said I was.

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,721
    Blog Entries
    20

    Default Re: How can I put web-site files to the Apache web-server wh

    I'm not sure on your solution but if I tell you my experience, it may help.

    I use ftp: to access my Son's windows server to manage web site folders and files. Access is secured by IP, username and password.

    My home Box (Linux) I can access on the LAN (Only the LAN) from my Laptop using fish://. Or kssh which allows me to run any application on the Box with X-display on the laptop. Once in that way I can access anything. But it's secured by IP allocation, Public Key and password.

    Maybe @swerdna! can advise
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Jun 2008
    Location
    UK; deep south, far below Watford.
    Posts
    275

    Default Re: How can I put web-site files to the Apache web-server wh

    I appreciate the guidance. There's clearly something I don't understand here:

    Apache. under Linux. is overwhelmingly the web-server of choice across the complete range of web-site sophistication. Dreamweaver is still, for a major proportion of windows/mac-based developers, the tool of choice. Both of these claims of mine have been true (I think) for at least 5 years.I think it is entirely reasonable of me to expect therefore that DreamWeaver can define and create a remote site on a Linux/Apache server without problem - but I just cannot see how it can do it without having write permission to root-owner resources. This seems to me to be extremely unlikely.

    I really want to use DreamWeaver in this way because it will give me the great benefit of being able to synchronise my local, remote and test web-sites - avoiding some horrible problems thereby.

    I have posed the question to Swerdna. He has requested that I post it here on this forum, presumably so that others can benefit from any replies that kind people, like yourself, provide.
    They said I wasn't fit to live with a pig; my brother stood up for me and said I was.

  4. #4
    Camalen NNTP User

    Default Re: How can I put web-site files to the Apache web-server when I

    XEyedBear wrote:

    > I'm folllowing the execllent HOWTO from Sweerdna to set up an Apache
    > based web-server on my home lan (as a setep to publishuing on a hosted
    > system). I was geeting on fine until I moved to one of my Windows
    > clients, started Dreamweaver and began to define a site. For the remote
    > site, Dreamwaver 2004 MX offers to browse to the web-server location
    > where I want to build my web--site - which, according to Swerdna's guide
    > is in /<servername>/srv/www/htdocs.
    >
    > My windows (and other Linux) client can only see users and groups on
    > the server - how can I possibly get to /srv/www/htdocs. with write
    > permission, from a client machine -any client machine? Surely none is
    > ever going to have write permission to that location?


    Just setup the DW FTP site the same way as standard FTP client: use the
    user/password you have configured to access files under your linux box,
    which probably is your opensuse user.

    Greetings,

    --
    Camalen

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,716
    Blog Entries
    2

    Default Re: How can I put web-site files to the Apache web-server wh

    Hi

    Underneath htdocs I make a series of folders, one for each website I want to put there, and I make them to be owned by webmaster suzette. Suzette administers the website. (look for the word "suzette" in my tutorial).

    Look more closely at the tutorial and follow the travels of webmaster suzette. She owns the document root /srv/www/htdocs/swerdna.org and puts her files in the folder "swerdna.org" and makes that her document root. She has ftp access to that folder and edit's files in there using Quanta+, so I suppose if she understood dreammaker, she could access the files from that too.
    Leap 42.2 & Leap 42.3 [&KDE]
    FYIs from the days of yore

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: How can I put web-site files to the Apache web-server wh

    It's ok to make subfolders within /srv/www/htdocs owned by the people who will be updating them so that they can write to files within them. Just make sure the files are publicly readable so that Apache can serve them. I recommend using sftp if updating from outside the LAN so that password cannot be sniffed.

    If you are using DW on a Mac, be sure to set the line endings to Unix style or your PHP scripts won't render.

  7. #7
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,716
    Blog Entries
    2

    Default Re: How can I put web-site files to the Apache web-server wh

    PS I think you were going to your doc root via Samba -- IMO scrap that and go there (as ken_yap says) by sftp.
    Leap 42.2 & Leap 42.3 [&KDE]
    FYIs from the days of yore

  8. #8
    Join Date
    Jun 2008
    Location
    UK; deep south, far below Watford.
    Posts
    275

    Default Re: How can I put web-site files to the Apache web-server wh

    All these response are most helpful - thank you all. Actually, I think I am just confusing myself as well as confusing you all. Here's the step that I cannot take:

    When using DreamWeaver, the starting point is to define local (development) and remote (production) web-sites (which is nothing more, I think, than the creation of a suitable folder in which to put an 'index.html' file). Creating the local site is no problem. DW asks for the location of the remote site to be specified using what I would describe as a file-naming convention. One can either type this in an entry box or use the option to browse to the desired location on the remote machine which is going to act as the web-server.

    Having done that, then DW can 'upload', or put, the site files, when they are ready, using a number of methods - of which ftp is the most obvious and usual. I don't think there will be any problem in doing the ftp step.

    The big issue is that I cannot browse to a site like //<my-web-server>/srv/www/htdocs - and I don't understand why. Yes, I have got my own version of Suzette (not as nice looking I'm sure, but still functional) who 'owns' the files as Swerdna suggests.

    I guess the key difficulty is that I am using SAMBA shares - users and groups - in order to browse files and folders across the LAN. I didn't see anything in the HOWTO about not using SAMBA . I'll read again to see what I missed.
    They said I wasn't fit to live with a pig; my brother stood up for me and said I was.

  9. #9
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,721
    Blog Entries
    20

    Default Re: How can I put web-site files to the Apache web-server wh

    I stoped using windows apps some time ago, but I am fully familiar with the Dreamweaver version you are using. It works very nicely.
    Now I use Quanta and Bluefish.
    But even back when I did use dreamweaver I never used the function you are trying to use.
    I always prefer to use ftp:// manually from konqueror.
    Login to the server which is configured to permit me full r/rw access. I then just copy and paste the new folder contents to the server. But this I can see may seem rather clonky in comparison.
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  10. #10
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,716
    Blog Entries
    2

    Default Re: How can I put web-site files to the Apache web-server wh

    Quote Originally Posted by XEyedBear View Post
    All these response are most helpful - thank you all. Actually, I think I am just confusing myself as well as confusing you all. Here's the step that I cannot take:

    When using DreamWeaver, the starting point is to define local (development) and remote (production) web-sites (which is nothing more, I think, than the creation of a suitable folder in which to put an 'index.html' file). Creating the local site is no problem. DW asks for the location of the remote site to be specified using what I would describe as a file-naming convention. One can either type this in an entry box or use the option to browse to the desired location on the remote machine which is going to act as the web-server.

    Having done that, then DW can 'upload', or put, the site files, when they are ready, using a number of methods - of which ftp is the most obvious and usual. I don't think there will be any problem in doing the ftp step.

    The big issue is that I cannot browse to a site like //<my-web-server>/srv/www/htdocs - and I don't understand why. Yes, I have got my own version of Suzette (not as nice looking I'm sure, but still functional) who 'owns' the files as Swerdna suggests.

    I guess the key difficulty is that I am using SAMBA shares - users and groups - in order to browse files and folders across the LAN. I didn't see anything in the HOWTO about not using SAMBA . I'll read again to see what I missed.
    In the tutorial I didn't mention any method for going to the remote site. I should edit it and tell users two things: (a) not to use Samba and (b) that a good method is an encrypted ftp like sftp. I have used Konqueror as my ftp client (like caf4926) and lately I use Filezilla because I've switched from KDE to the excellent Gnome (don't flame me ppl).

    If dw uses a built in ftp client to get to remote sites, then if you enable password protected ftp access to the doc root you'll probably be good to go there in dw. But am I hearing from you that dw uses windows-style file sharing?
    Leap 42.2 & Leap 42.3 [&KDE]
    FYIs from the days of yore

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •