Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Http://localhost/ Not found. help please!

  1. #11
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Http://localhost/ Not found. help please!

    Check out my edit ^.

    Try that and see if anything is shown.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  2. #12
    Join Date
    Apr 2010
    Location
    40 cm from the screen
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Http://localhost/ Not found. help please!

    Quote Originally Posted by CharlesA View Post
    If you get a blank page, can you view the source and see php code?

    EDIT: Try creating a file with this:

    Code:
    <html>
    <head>
    <title>PHP Test</title>
    </head>
    <body>
    <?php phpinfo(); ?>
    </body>
    </html>
    Save it as phpinfo.php

    Then open it the browser.

    See here.

    i got a php page now when i enter http://localhost/phpinfo.php

    but my index.php (now called test.php) is still not working :/ i think i should try program further on now to see if it's working then..

    thanks for saving my day
    Free tips & tricks for you PC www.justrehhoff.org
    Tips for both linux and windows !
    Missing a guide for ubuntu ? don't hestitate we have that to !

  3. #13
    Join Date
    Apr 2010
    Location
    40 cm from the screen
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Http://localhost/ Not found. help please!

    ouh and also i see the deafult index.html document is locked to something (according to the little lcok in the corner of the file) in var/www/

    is it possible to lock the deafult page to another ?
    Free tips & tricks for you PC www.justrehhoff.org
    Tips for both linux and windows !
    Missing a guide for ubuntu ? don't hestitate we have that to !

  4. #14
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Http://localhost/ Not found. help please!

    index.html is probably owned by root, which is why it has a lock on it.

    You'd have to move it using sudo.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #15
    Join Date
    Apr 2010
    Location
    40 cm from the screen
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Http://localhost/ Not found. help please!

    Quote Originally Posted by CharlesA View Post
    index.html is probably owned by root, which is why it has a lock on it.

    You'd have to move it using sudo.
    i'd run sudo nautilus, moved the file to the desktop, moved the phpinfo.php to var/www/
    but i still got the default page tried rename it to index.php index.html but! it still showing the default screen
    i want it to show my file or just the phpinfo.php as default.
    Free tips & tricks for you PC www.justrehhoff.org
    Tips for both linux and windows !
    Missing a guide for ubuntu ? don't hestitate we have that to !

  6. #16
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Http://localhost/ Not found. help please!

    Use gksudo nautilus to start with with root permissions.

    Can you post the output of this please:

    Code:
    ls -l /var/www
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #17
    Join Date
    Apr 2010
    Location
    40 cm from the screen
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Http://localhost/ Not found. help please!

    totalt 8
    -rw-r--r-- 1 root root 177 2010-12-13 16:19 index.html
    -rw-r--r-- 1 allan allan 208 2010-12-13 18:28 index.php

    to help make it less frustrating. I will post the codings of each file below.



    index.php
    Code:
    <!doctype html> 
    <html> 
        <head> 
         
        </head> 
        <body> 
            <div id="wrap" style="width: 900px; margin: 0px auto;"> 
                <?php 
                    echo "<h1>It's works</h1>"; 
                    $php_info; 
                ?> 
            </div> 
        </body> 
    </html>
    yea i know it's another index.php but i edited the old index.php so this one works when i enter http://localhost/index.php

    index.html


    Code:
    <html><body><h1>It works!</h1>
    <p>This is the default web page for this server.</p>
    <p>The web server software is running but no content has been added, yet.</p>
    </body></html>
    to summerize (spelling) it's the index.php i want as the default page.
    Free tips & tricks for you PC www.justrehhoff.org
    Tips for both linux and windows !
    Missing a guide for ubuntu ? don't hestitate we have that to !

  8. #18
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Http://localhost/ Not found. help please!

    Remove index.html, and index.php should be the the default page.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #19
    Join Date
    Apr 2010
    Location
    40 cm from the screen
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Http://localhost/ Not found. help please!

    i have moved the files to thrash bin now,
    still get's the default IT WORKS! screen from index.html
    Free tips & tricks for you PC www.justrehhoff.org
    Tips for both linux and windows !
    Missing a guide for ubuntu ? don't hestitate we have that to !

  10. #20
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Http://localhost/ Not found. help please!

    So index.html isn't there any more?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 2 of 3 FirstFirst 123 LastLast

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
  •