Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: how to: write files to 'var/www'

  1. #1
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    how to: write files to 'var/www'

    i know this is a really stupid question, sorry for asking it
    i got LAMP installed and it shows "it works!" and everything, but how can i add folders to the 'var/www' folder. i see it needs the permission of root.
    how can i do that??
    thnx in advance

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest
    Execute this command:

    Code:
    # sudo -s
    This will make you root (if your user account is in the wheel group/sudoers file) and you will be able to do whatever you like. However, once you are root you may want to add your username to the http/apache group or whoever owns var/www.

  4. #3
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81
    thnx alot, you are a life saver
    i bet i look like an idiot newbie now

  5. #4
    Jordan Guest
    Not at all. There are a lot of commands in the console and it would be impossible for anyone to immediately know them all.

  6. #5
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81
    that makes me feel better
    can i just copy phpAdmin from windows into the 'www' folder in linux, will that work?

  7. #6
    Jordan Guest
    Yes although you will need to modify the configuration file to use your Linux MySQL username and password.

  8. #7
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81
    yeah that would be easy.
    if things worked well like this for a while , i may use linux for developing php all the time, it saves alot of time and effort unlike windows
    -when i bench marked the same php script on windows and ubuntu, guess who won?

  9. #8
    Jordan Guest
    Hmmmm.. Ubuntu?

  10. #9
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81
    go figure!
    i wrote a blog about it, heres the link

  11. #10
    Jordan Guest
    Nice blog!

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I want to write an OS (seriously)
    By truth14ful in forum C and C++
    Replies: 10
    Last Post: 11-01-2011, 07:11 PM
  2. How to read and write files
    By Adriann in forum Java Help
    Replies: 10
    Last Post: 08-23-2009, 07:55 AM
  3. Differences between text files and binary files.
    By LoneWolf in forum C and C++
    Replies: 3
    Last Post: 02-24-2009, 04:36 PM
  4. How to write it in C++?
    By saurav in forum C and C++
    Replies: 2
    Last Post: 09-10-2007, 01:01 PM

Tags for this Thread

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