Apache Server configuration support - Can't start webpage.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2007 > Can't start webpage.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can't start webpage.
Henk Oegema

2007-07-04, 7:19 pm

I'm using Kubuntu7.04 with Apache 1.3 web server.

The webserver is running. (!)

When I do
http://localhost

I get a popup window:


---------------------------------------
You have chosen to open

which is a: PHTML file
from: http://localhost
What should firefox do with this file?

O Open with Browse
O Save to disk

Cancel OK
--------------------------------------

This also happens when I try to open a *.php file.

However, when I type
file:///var/www/index.html

Then the webpage appears, which is suppose to open with http://localhost.

How can help me to solve this problem?

Rgds
Henk.





petersprc

2007-07-05, 1:24 am

Try checking if you have php enabled, e.g.:

LoadModule php5_module modules/mod_php5.so
[...]
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml

On Jul 4, 2:57 pm, Henk Oegema <h...@oegema.com> wrote:
> I'm using Kubuntu7.04 with Apache 1.3 web server.
>
> The webserver is running. (!)
>
> When I dohttp://localhost
>
> I get a popup window:
>
> ---------------------------------------
> You have chosen to open
>
> which is a: PHTML file
> from:http://localhost
> What should firefox do with this file?
>
> O Open with Browse
> O Save to disk
>
> Cancel OK
> --------------------------------------
>
> This also happens when I try to open a *.php file.
>
> However, when I type
> file:///var/www/index.html
>
> Then the webpage appears, which is suppose to open withhttp://localhost.
>
> How can help me to solve this problem?
>
> Rgds
> Henk.



Henk Oegema

2007-07-05, 1:23 pm

petersprc wrote:

> Try checking if you have php enabled, e.g.:
>
> LoadModule php5_module modules/mod_php5.so
> [...]


Don't have that module.
Can't find it either. (using Package Manager in Kubuntu 7.04)
ALL php5 modules which I could find, have been loaded.

> AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml


I have (added) that line.

But ....... :-([vbcol=seagreen]
>
> On Jul 4, 2:57 pm, Henk Oegema <h...@oegema.com> wrote:

Henk Oegema

2007-07-06, 1:23 pm

>>[vbcol=seagreen]

After installing a fresh Kubuntu7.04 everything worked again as normal. :-)

Your Best Friend

2007-07-20, 1:24 am

PHP isn't installed.

Henk Oegema wrote:
> I'm using Kubuntu7.04 with Apache 1.3 web server.
>
> The webserver is running. (!)
>
> When I do
> http://localhost
>
> I get a popup window:
>
>
> ---------------------------------------
> You have chosen to open
>
> which is a: PHTML file
> from: http://localhost
> What should firefox do with this file?
>
> O Open with Browse
> O Save to disk
>
> Cancel OK
> --------------------------------------
>
> This also happens when I try to open a *.php file.
>
> However, when I type
> file:///var/www/index.html
>
> Then the webpage appears, which is suppose to open with http://localhost.
>
> How can help me to solve this problem?
>
> Rgds
> Henk.
>
>
>
>
>


--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **
SnowBlind

2007-07-25, 1:24 pm

On Thu, 19 Jul 2007 23:42:52 -0400, Your Best Friend
<bk@bkworksproducts.com.info> wrote:
[vbcol=seagreen]
>PHP isn't installed.
>
>Henk Oegema wrote:
I'd check first that index.html is listed as the first file in the
default index file list.
<IfModule dir_module>
DirectoryIndex index.html Index.php Index.htm
</IfModule>

This tells apache which order to serve the default files in so if it
looks in a directory and finds index.html it will serve this file
first before index.php or index.htm depending on your directives.
You will then need to link the other index files to access them.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com