Jump to content

how to: write files to 'var/www'

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
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
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Execute this command:

# 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.

#3
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
thnx alot, you are a life saver
i bet i look like an idiot newbie now :D:D

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Not at all. There are a lot of commands in the console and it would be impossible for anyone to immediately know them all.

#5
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
that makes me feel better
can i just copy phpAdmin from windows into the 'www' folder in linux, will that work?

#6
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Yes although you will need to modify the configuration file to use your Linux MySQL username and password.

#7
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
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?

#8
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Hmmmm.. Ubuntu? :D

#9
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
:D go figure!
i wrote a blog about it, heres the link

#10
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Nice blog! :D

#11
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
yeah, the admin in that site is pretty cool
have you ever been to that site?

#12
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Not yet, but I plan on visiting soon. :)