Planetarion Forums

Planetarion Forums (https://pirate.planetarion.com/index.php)
-   Hardware and Tech Support (https://pirate.planetarion.com/forumdisplay.php?f=64)
-   -   Latest in the saga of my Linux router project... (https://pirate.planetarion.com/showthread.php?t=152449)

Gayle29uk 29 Oct 2002 13:30

Latest in the saga of my Linux router project...
 
It works \o/

Got everything working fine as a router/DHCP server but moving onto the next stage things have gone downhill again :(

I've installed Apache and the PHP4 module but every time I try to access a PHP page my browser (konqueror on the local system, IE on the remote) asks me if I want to download the file. Obviously I DON'T want to download it, I want Apache/PHP to pre-process it and send it to me as a webpage. The PHP app declarations are there in the httpd.conf file and the Apache test page shows the PHP4 module as present (as does rcapache start) yet it obviously isn't doing it's job.

Any suggestions gratefully received :)

Allfather 29 Oct 2002 13:48

stop trying to do something you got no clue about,and go back to what you know..

Gayle29uk 29 Oct 2002 13:56

Quote:

Originally posted by Allfather
stop trying to do something you got no clue about,and go back to what you know..
I've never set Apache up before, especially not with the PHP modules so I freely admit I know nothing about it. I would like to learn though :)

MT 29 Oct 2002 15:13

Quote:

Originally posted by Allfather
stop trying to do something you got no clue about,and go back to what you know..
Go away you horrible little troll.

Gayle: have you set up apache to use the PHP module and/or added -DPHP4 to the apache startup command?

NEWSBOT3 29 Oct 2002 20:54

Quote:

Originally posted by Allfather
stop trying to do something you got no clue about,and go back to what you know..
MT, make the nasty troll go awah.

puwwweeeeezzzz

Gayle29uk 30 Oct 2002 02:13

Quote:

Originally posted by MT


Go away you horrible little troll.

Gayle: have you set up apache to use the PHP module and/or added -DPHP4 to the apache startup command?

Okay...

On Slidey's advice I went to www.apachetoolkit.com and downloaded their install script. All the relevant source RPMs downloaded and installed fine, the make etc went fine, PHP 4 is installed as a module in apache. httpd -l | grep php shows the module is there and I've even tried starting it with -DPHP4 yet it still does the same thing, opens the file for download :(

.php is defined in httpd.config as the relevant mime type and I'm really fed up with this now :(

Anyone got a suggestion or a working php.config/httpd.config I can borrow? I'm almost certain it's a config error because the version I compiled earlier is totally different to the one with the distro and even installs itself in a different place.

Slidey 30 Oct 2002 10:16

grab me on irc and ill give you a working one from an apachetoolbox setup i used..

Vaio 30 Oct 2002 13:12

Re: Latest in the saga of my Linux router project...
 
just athought

go here

www.e-smith.org and grab their disto, php and apache come with it. I used it successfully for over a year as an adsl router. Total no brainer to use, and even allfather could install it once he has the cd the right way up

Vaio

Gayle29uk 30 Oct 2002 14:11

Well I got some help from a UV member who told me to create a file with <? phpinfi(); ?> in my wwwroot directory and waddya know it works.

When he tried to access the bcalc when I gave him the URL that worked too, just not for me.

So, I moved the bcalc into the wwwroot and now it works fine, I just can't have anything in a subdirectory.

Weird...

Cocaine 30 Oct 2002 14:15

Re: Re: Latest in the saga of my Linux router project...
 
Quote:

Originally posted by Vaio
just athought

go here

www.e-smith.org and grab their disto, php and apache come with it. I used it successfully for over a year as an adsl router. Total no brainer to use, and even allfather could install it once he has the cd the right way up

Vaio

You dont need to sign your name at the bottom of every post. We can see who made it.

BesigedB 30 Oct 2002 16:24

i am rebellious and use the cvs php for the sake of it

Vaio 30 Oct 2002 17:12

Re: Re: Re: Latest in the saga of my Linux router project...
 
Quote:

Originally posted by Cocaine


You dont need to sign your name at the bottom of every post. We can see who made it.

I do it to annoy people who tell me that

Vaio


All times are GMT +1. The time now is 10:18.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018