Page 1 of 9 123 ... LastLast
Results 1 to 10 of 87

Thread: local host and missing folders

  1. #1

    Default local host and missing folders

    I have built a sandbox to play web developer in, I have 3 websites and phpmyadmin in the /public_html directory but wen I brows to localhost in my browser, 2 of the websites and phpmyadmin have vanished.

    I can see them in dolphin and the console but not browsing to loxalhot - this happened this morning

    Also, if I create a directory in the public_html folder, it does nnt show up on ocalhost.

    Does anybody know what is going on and how to fix it?

    Thank you in advance for your time

    SYSTEM:
    OS: Linux 3.1.10-1.16-desktop x86_64
    System: openSUSE 12.1 (x86_64)
    KDE: 4.8.4 (4.8.4) "release 513"

    AMD Phenom(tm) II X6 1090T Processor
    Speed: 3,200.00 MHz
    Cores: 5
    Display Info
    Vendor: ATI Technologies Inc
    Model:
    2D driver: fglrx
    3D driver: ATI

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,274

    Default Re: local host and missing folders

    There is normaly no directory /public_html.

    The default website on an Apache2 installation on openSUSE is;
    Code:
    DocumentRoot "/srv/www/htdocs"
    Now, it is possible to change a lot of things and to move around everything. But when you do not even show us one tiny bit of e.g. your Apache2 configuration (where it should show where your thre "websites" are), not very many people can even try to help you.
    Henk van Velden

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: local host and missing folders

    On 2012-07-22 14:06, coasterad wrote:

    > Also, if I create a directory in the public_html folder, it does nnt
    > show up on ocalhost.


    How do you type that URL?
    Have you enabled userdir in APACHE_MODULES in /etc/sysconfig/apache2?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



  4. #4

    Default Re: local host and missing folders

    Quote Originally Posted by hcvv View Post
    There is normaly no directory /public_html.

    The default website on an Apache2 installation on openSUSE is;
    Code:
    DocumentRoot "/srv/www/htdocs"
    Now, it is possible to change a lot of things and to move around everything. But when you do not even show us one tiny bit of e.g. your Apache2 configuration (where it should show where your thre "websites" are), not very many people can even try to help you.
    I do not have any issue sharing my config file to you however, I am a linux newb and do not know which file you need nor it's location.

    If you would be so kind, I will happily post it

  5. #5

    Default Re: local host and missing folders


  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,274

    Default Re: local host and missing folders

    Reading @Carlos post, it seems that he suggests that you are not talking about serving from the system, but from a users home directory. In that case the directory you mention is NOT /public_html, BUT /home/<username>/public_html. Which is of course something completly different.

    When you want to serve from users home directories, you should configure this (like Carlos says). This is not on by default because:
    a) it is normaly only needed by Internet Server Providers who want to give their users the possibility of publishing web pages from their own environment;
    b) it is not so good for security (this is while ISPs stop using this feature and solve this in another way).

    So please explain what you are doing and what you want to achieve. And never assume that the persons you are talking to (we) did that the same way or with the same intentions. E.g. I repeat that you say that you have three web sites, but you do not explain what they are, or where they are. Nothing. And difficult to guess for others.
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,274

    Default Re: local host and missing folders

    Oh yes, and the configuration files of Apache2 are in /etc/apache2. An important one there is default-server.conf.
    Henk van Velden

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: local host and missing folders

    On 2012-07-22 15:26, coasterad wrote:
    >
    > http://localhost/


    That will not go to public_html. For that one you type:

    Code:
    http://localhost/~USERNAME
    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: local host and missing folders

    On 2012-07-22 15:26, coasterad wrote:

    > If you would be so kind, I will happily post it


    Start with the file I mentioned previously (sysconfig...)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: local host and missing folders

    Am 22.07.2012 15:26, schrieb coasterad:
    >
    > http://localhost/
    >
    >

    In your other thread
    http://forums.opensuse.org/showthread.php?t=476818
    I told you that what you did does not look clean to me
    (setting the document root to the users public_html)
    Is the configuration still identical with what you showed in the
    screenshots quoted below or did you change it?
    So my guess that it works on your sandbox was simply wrong, it obviously
    worked for some time and then stopped.
    Revert the document root to the standard and use the supported syntax
    for the user dirs in your browser, which is in your case simply

    http://localhost/~bilbo

    [QUOTE]
    Am 19.07.2012 18:26, schrieb coasterad:
    >
    > [image: http://i3.photobucket.com/albums/y68...mainhost3.jpg]
    >
    > AND
    >
    > [image: http://i3.photobucket.com/albums/y68...rad/Host3.jpg]
    >
    >

    I had to contemplate a bit to understand which implications and
    complications you might get by setting the document root to your home
    public_html directory.
    My guess it that it just works for you on your sandbox and you will most
    probably not suffer from adverse effects.
    I have some mixed feeling about that though, it does not look clean and
    I would never do that on a production machine.
    [/QOUTE]

    --
    PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
    ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
    eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10



Page 1 of 9 123 ... LastLast

Posting Permissions

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