Find the answer to your Linux question:
Results 1 to 6 of 6
If i install apache / mysql etc. on one of my pc's running say suse, when I am on the other pc if i type in the ip address 192.168.1.2 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    44

    Apache


    If i install apache / mysql etc. on one of my pc's running say suse, when I am on the other pc if i type in the ip address 192.168.1.2 for example i will get the server.............but...................

    If i am setting up a PHP script where it asked for the base directory and the web directory what do i put in there is it /home/www/???? or what.

    So what is the base directory and what it the web directory?

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    varies depending on where you installed it, but should be

    /var/www/htdocs/

    please try to minimise the overuse of punctuation, its really not nessicary
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    The best place to find out is open your httpd.conf and find your DocumentRoot this will tell you where the server looks for its web pages.

    Most people place there webpages under /www not /var

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    wow, talk about the gentoo indoctrined, emerge apache defaults at /var/www ....... i need to try something new... or not... reguardless, that documentroot variable can be set to anywere you want, but for security purposes, you should probably not point it anywhere in /home /etc /lib or /bin.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  6. #5
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Most distros use /var/www just easyer to have it on its own partition under /www. Plus i remember reading some where that /var is not for webpages?

  7. #6
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    especialy in gentoo, var is used for workspace during portage compiles, unless im mistaken, i doubt its anything serious, but opens some possibilites especialy for large compiles.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

Posting Permissions

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