Activity Stream
48,167 MEMBERS
63408 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1.     
    #1
    Member
    Website's:
    tribalz.eu

    Default var/www

    hi how to change var/www to /home/....

    I use VPS debian 6
    waito Reviewed by waito on . var/www hi how to change var/www to /home/.... I use VPS debian 6 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Retired NinJa
    Website's:
    loledhard.com
    you have to alter settings in httpd.conf

    You can change ever path that says /var/www/ to /home/

    to know the exact path of httpd.conf in your OS use this command in ssh

    Code: 
    find / -name httpd.conf
    this would show you path of every httpd.conf file in ur file system



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  4.     
    #3
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    replace /var/www with /home in httpd.conf

  5.     
    #4
    Member
    Website's:
    tribalz.eu
    my httpd.conf is Blank

    link to screnn http://www.filpic.eu/di-I15G.png

  6.     
    #5
    Member
    Website's:
    bypassx.com
    Perhaps you have more than one httpd.conf file on your system?

  7.     
    #6
    Member
    Website's:
    tribalz.eu
    one im system debian 6

  8.     
    #7
    Member
    Website's:
    epicimagehost.com
    You can enter this in your terminal/console/ssh...
    Change username to the actual username!
    Code: 
    sudo cp -R /var/www/ /home/username/
    sudo chown -R username:username /home/username/www/
    sudo rm -r /var/www/
    sudo ln -s /home/username/www /var/www
    .. Ok I'm joking.

    Do this
    Code: 
    sudo nano /etc/apache2/sites-enabled/default
    Look for /var/www/ and replace it to what you want.
    Pro-tip: /var/www/ might occur multiple times, make sure to change ALL /var/www's
    Pro-tip?: when you're done, make sure to restart apache.
    Code: 
    sudo /etc/init.d/apache2 restart
    edit:
    to all those saying edit httpd.conf.
    In debian httpd.conf is named apache2.conf
    In debian all the virtualhost-shit isn't set in apache2.conf but placed in /etc/apache2/sites-enabled/ ( actually /sites-available and linked to sites-enabled )
    This ofcourse if the apache2 package got installed using the package manager.

  9.     
    #8
    Member
    Website's:
    tribalz.eu
    I use Debian 6.0 and ISP CONFIG

  10.     
    #9
    Member
    Website's:
    epicimagehost.com
    Yes, but you should have root access, so just fire up putty ( google it ) and connect to your server like a boss.

    I can't help you further if you can't connect using SSH.
    Perhaps someone else can take it from here.

    EDIT:
    Checked your screenshot.
    You have SSH, good. Now just do what I said.
    If ISP CONFIG crashes due to what you're going to do, you'll have killed two birds with one stone!

  11.     
    #10
    Member
    Website's:
    tribalz.eu
    I connect SSH

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

BE SOCIAL