Results 1 to 10 of 10

Thread: Localhost Programming (Windows to Ubuntu conversion)

  1. #1
    Join Date
    Nov 2006
    Beans
    40

    Question Localhost Programming (Windows to Ubuntu conversion)

    Hi,

    I am a Linux noob but fairly accomplished doing web development in Windows. I am having an issue setting up my web development environment in a manner I am used to.

    I use Eclipse for my coldfusion development IDE. In windows I specified the folder which could be used as the default web directory so i could just type http://localhost and the default page would display. My development would be done on the files in that folder. Only when the pages were tested in the localhost environment would I move them to the remote host for my page.

    I am not allowed to edit the files from the /var/www folder in Eclipse. I understand that if I logged in as root I would be able to do this, but obviously I don't want to do that. Is there a way to set the permissions on that /var/www folder to allow the Eclipse IDE to make changes to those files but still keep the access restrictions from outside that IDE.

    Thanks,

    Michael
    http://jobsearchlog.com

  2. #2
    Join Date
    Feb 2007
    Location
    Edinburgh, Scotland
    Beans
    391

    Re: Localhost Programming (Windows to Ubuntu conversion)

    Not sure but from reading that i think you just need to make the folder writable

    Code:
    sudo chmod a+w /var/www

  3. #3
    Join Date
    Jun 2006
    Beans
    124
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Localhost Programming (Windows to Ubuntu conversion)

    I don't think so...You could change the permissions or ownership on your /var/www/ directory, but that'll change it for everything (not just Eclipse).

    Is that a problem, though? If you're not using the same box for your production environment, I don't see a big problem with changing the permissions.

    *EDIT: I agree with bobbocanfly .

  4. #4
    Join Date
    Nov 2006
    Beans
    40

    Re: Localhost Programming (Windows to Ubuntu conversion)

    sudo chmod a+w /var/www
    Well that seems pretty easy.

    Now I just need to set up SVN.

    Thanks

  5. #5
    Join Date
    Jun 2006
    Beans
    206

    Re: Localhost Programming (Windows to Ubuntu conversion)

    I'd like to advise RapidSVN for that purpose It does its job very well.
    On the other hand, I'd love to see TortoiseSVN on Linux. There's something like it for KDE, but not for Gnome

  6. #6
    Join Date
    Nov 2006
    Beans
    40

    Re: Localhost Programming (Windows to Ubuntu conversion)

    Thanks very much. I will take a look into RapidSVN.

  7. #7
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Localhost Programming (Windows to Ubuntu conversion)

    http://localhost/~username/

    make sure that the account 'username' has a public_html directory in his home directory

  8. #8
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Localhost Programming (Windows to Ubuntu conversion)

    I usually more-or-less use slavik's approach.

    As an alternative, you can add yourself to the group that has the correct permissions on /var/www (on my slackbox that's group nobody); just check the ownerships. But there might be security implications.

  9. #9
    Join Date
    Nov 2006
    Beans
    40

    Re: Localhost Programming (Windows to Ubuntu conversion)

    That is a simpler solution. Please don't hate me, but this was something so easy to do in Windows that I never thought about it in a long time.

    Hey, I will learn. Thanks for the help.

    Michael

  10. #10
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: Localhost Programming (Windows to Ubuntu conversion)

    Quote Originally Posted by mickbw View Post
    Please don't hate me, but this was something so easy to do in Windows that I never thought about it in a long time.

    Hey, I will learn. l
    Obviously it was simpler - in Windows, you run as superuser all the time. That is exactly what you want to avoid and why you switched to Linux.

    BTW with Vista, it will be same on Windows as on Linux: you should not run as superuser, and think about permissions once a while...

Bookmarks

Posting Permissions

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