Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Install Website To Web Server

  1. #1
    Join Date
    May 2011
    Location
    Plymouth
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question Install Website To Web Server

    Hey All,

    I've installed LAMP and I can now log into phpmyadmin.

    I've been sent the website I need to work on, but I don;t know how to install it to the server. I need to put an RSS feed onto it.

    I'm new to LAMP so bare with

    Any Ideas?
    Think a Little, Change a Lot

  2. #2
    Join Date
    Jun 2011
    Location
    Netherlands
    Beans
    175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Install Website To Web Server

    I suppose you want to copy that website to your local computer, so you can work on it offline?
    Then you probably want to copy that website to your www map. In your www map is /var/www (if you didnt change it)

    If you want a database migrated, you can export it via phpmyadmin, and import it in the other phpmyadmin.

  3. #3
    Join Date
    May 2011
    Location
    Plymouth
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Install Website To Web Server

    Yeah, I've got the index.html file. I've saved it to my documents and i've copied it to the /var/www folder.

    I'm running it off WiFi

    How do I access the website now so I can start editing it?
    Think a Little, Change a Lot

  4. #4
    Join Date
    Apr 2009
    Location
    Houston, TX
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Install Website To Web Server

    You will need to edit it manually or with whatever design software you choose, if you just want to view if it is working and is up and running you should be able to enter "localhost" into your address bar in FireFox (for example) and see the index.html that is currently in the WWW directory.

  5. #5
    Join Date
    May 2011
    Location
    Plymouth
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Install Website To Web Server

    Ok man, cheers.

    What software would you recommend? I need to add an RSS Feed and a calender (with a password protection)
    Think a Little, Change a Lot

  6. #6
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: Install Website To Web Server

    A simple text editor, like gedit, should suffice. Assuming you know what you're doing.
    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  7. #7
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Install Website To Web Server

    1. Keep a copy of the original files you were sent.

    2. Work with another copy that's in your home directory.

    3. When you want to test your changes on the live server, copy them to /var/www.

    In short, keep a backup and don't do your work on the live copy.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  8. #8
    Join Date
    May 2011
    Location
    Plymouth
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Install Website To Web Server

    In my var/www file, I've got an index.html and a testphp.php from when I was setting it up. Can I delete them?

    If I do, what files do I need to copy over. The files I,ve been sent as a css, img and js in folders and an index.html
    Think a Little, Change a Lot

  9. #9
    Join Date
    May 2011
    Location
    Plymouth
    Beans
    112
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Install Website To Web Server

    I've dragged them in the folder and all I get is "It Works" when I type localhost.

    Also I can't view the pictures on the site, am I doing something wrong?
    Think a Little, Change a Lot

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

    Re: Install Website To Web Server

    The files that you received did not contain an index.html. So when you go to http://localhost, it will still use the original file that was there already; it probably takes precedence over e.g. an index.php.

    Code:
    sudo mv index.html index.html.old
    will move index.html out of the way.

    As an alternative, you can figure out which file you 'have'. assuming it's called abc.html, use http://localhost/abc.html.

    With regards to images
    • filenames in Linux are case sensitive; so Img01.jpg is not the same file as img01.jpg; if the html refers to Img01.jpg but the file is img01.jpg, it will not work
    • there might have been a separate directory where all images are supposed to be located and you copied them somewhere else; time to analyze the code and check the apache error logs (in /var/log/apache or /var/log/httpd; not sure which one exists)
    Last edited by Wim Sturkenboom; August 2nd, 2011 at 01:27 PM.
    If you don't make backups of your important data, your data is obviously not important to you.

Page 1 of 2 12 LastLast

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
  •