Results 1 to 3 of 3

Thread: Apache gives"it works" page but nothing else

  1. #1
    Join Date
    Jun 2007

    Unhappy Apache gives"it works" page but nothing else

    EDIT :: I highlighted what the important point here was. thanks =)!
    I read this thread about another person's problems:
    I sincerely hope that the bug/issue discussed there is not still with Ubuntu at this time. I hope that the below just is an accident that helped me in my sleepiness.

    I looked at my Ubuntu 8.04 fresh install and found this ->

    sudo vi /etc/hosts: localhost mycomputersname
    after installing the LAMP business, I could only get the "it works" page and nothing beyond that in depth /var/www/folder
    or even contents of the /var/www/somefile.blahfoo same folder

    I read that post, change the above to the below:
    [sudo gedit for dumb lazy me]
    sudo gedit /etc/hosts localhost mycomputersname mycomputersname
    save exit.
    remove firefox 3b. reinstall firefox 3b.
    I deselected gnome support and "ubufox" that came preinstalled.
    I checked apache running (yup still)
    for giggles I sudo /etc/init.d/apache2 restart
    I also ran the ls -l and checked owner/group/permissions
    for www/ folder but did not change them (none of that).
    so now my page /var/www/dictionary-parser.php (or other crap)
    works fine.
    Last edited by lunatinker; May 20th, 2008 at 06:48 PM.

  2. #2
    Join Date
    Jul 2007
    Segura, Spain

    Re: Apache gives"it works" page but nothing else

    well, you can configure apache2 with file /etc/apache2/sites-available/default

    for example:

    NameVirtualHost *
    <VirtualHost *>
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride None
    	<Directory /var/www/>
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride None
    		Order allow,deny
    		allow from all
    		# This directive allows us to have apache2's default start page
                    # in /apache2-default/, but still have / go to the right place
                    #RedirectMatch ^/$ /apache2-default/
    you must comment the bold line to see the /var/www normal index view

    you can change that line to make default index another file
    mujeres y hombres de esta tierra
    un otro mundo es posible
    otro mundo diferente
    justo si, y sin miedo de su gente

  3. #3
    Join Date
    Feb 2008

    Re: Apache gives"it works" page but nothing else

    I had the same problem. And I had followed the [server guide][sg] pretty well.


    In the end I realised that I had to refresh my firefox browser!! Bummer..

Tags for this Thread


Posting Permissions

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