[wellylug] Setting up PHP on Mandrake 9

Jamie Dobbs jamie.dobbs at orcon.net.nz
Thu Sep 18 18:57:13 NZST 2003


[root at Gir root]# urpmi php
Everything already installed

[jamie at Gir jamie]$ php -h
bash: php: command not found


It's my guess that some update at some stage has completely screwed up 2
of my systems as this is the same on both.

On Thu, 2003-09-18 at 18:22, Damon Lynch wrote:
> I didn't have PHP installed on my desktop system.
> 
> I did this:
> 
> [root at damon damon]# urpmi php
> One of the following packages is needed:
>  1- apache2-mod_php-2.0.44_4.3.1-2mdk.i586
>  2- mod_php-4.3.1-1mdk.i586
>  3- php-cli-4.3.1-11.1mdk.i586
>  4- php-cgi-4.3.1-11.1mdk.i586
> What is your choice? (1-4) 1
> To satisfy dependencies, the following packages are going to be
> installed (1 MB)
> :
> apache2-mod_php-2.0.44_4.3.1-2mdk.i586
> libphp_common430-430-11.1mdk.i586
> Is this OK? (Y/n) y
>    
> ftp://ftp.club-internet.fr/pub/unix/linux/distributions/Mandrake/updates/9.1
> /RPMS/libphp_common430-430-11.1mdk.i586.rpm
> installing
> /mnt/hd/mandrake9.1/Mandrake/RPMS/apache2-mod_php-2.0.44_4.3.1-2mdk.i
> 586.rpm /var/cache/urpmi/rpms/libphp_common430-430-11.1mdk.i586.rpm
>  
> Preparing...               
> ##################################################
>    1:libphp_common430      
> ##################################################
>    2:apache2-mod_php       
> ##################################################
> Shutting down httpd2: [  OK  ]
> Checking configuration sanity for Apache 2.0:  [  OK  ]
> Starting httpd2: [  OK  ]
> 
> 
> and ended up with this:
> 
>                           Welcome to localhost
> This site is powered by:  Apache-AdvancedExtranetServer/2.0.47 (Mandrake
>          Linux/1.1mdk) mod_python/3.0.3 Python/2.2.2 PHP/4.3.1!
> 
> On Thu, 2003-09-18 at 15:40, Jamie Dobbs wrote:
> > I would have too, but it's not listing it. I'm almost at the point of
> > blowing it all away and reinstalling as the RPM database appears to be
> > screwed as well.
> > eg. I do a urpmi -e php and get told php installed, but if I do an rpm -i
> > php I get told that everything is already installed ... ratehr confusing!
> > 
> > ----- Original Message ----- 
> > From: "Damon Lynch" <damon at photo.geek.nz>
> > To: <wellylug at lists.naos.co.nz>
> > Sent: Thursday, September 18, 2003 3:33 PM
> > Subject: Re: [wellylug] Setting up PHP on Mandrake 9
> > 
> > 
> > > I would expect it to mention PHP, if you have installed that already.
> > > And anything else you install, like mod_python, mod_perl, ssl support,
> > > etc..
> > >
> > > Damon
> > >
> > > On Thu, 2003-09-18 at 15:17, Jamie Dobbs wrote:
> > > > I get the following:
> > > >
> > > >       This site is powered by: Apache-AdvancedExtranetServer/2.0.47
> > > > (Mandrake Linux/1.1mdk)!
> > > >
> > >
> > > --------------------------------------------------------------------------
> > > >       Note: If you are seeing this instead of the webpage you expected,
> > it's
> > > > most likely because the server is not yet fully configured, or is under
> > an
> > > > upgrade. Come again tomorrow and your usual content should be back.
> > >
> > > --------------------------------------------------------------------------
> > > >
> > > >       Congratulations! The Web Server software on this system is
> > > > operational. If you're the webmaster of 155.190.50.55, you may now add
> > > > content to this directory and replace this page.
> > > >
> > > >       Please note that you can choose between Apache 1.3 and 2.0, and
> > that
> > > > you can install them in parallel. If you have both versions installed,
> > 2.0
> > > > will start by default. To switch from one to the other, run the
> > following
> > > > commands: "/usr/sbin/advxrun1.3" or "/usr/sbin/advxrun2.0".
> > > >       The Apache documentation packages (if installed) are available
> > here:
> > > > [2.0] [1.3], as well as the Documentation for some standard modules
> > [2.0]
> > > > [1.3]. Also, if you're accessing this page as http://localhost, you can
> > read
> > > > the documentation for some ADVX specific addon modules.
> > > >
> > > >
> > > >
> > > > So I'm guessing that I have a rather mixed up configuration?
> > > > ----- Original Message ----- 
> > > > From: "Damon Lynch" <damon at photo.geek.nz>
> > > > To: <wellylug at lists.naos.co.nz>
> > > > Sent: Thursday, September 18, 2003 2:58 PM
> > > > Subject: Re: [wellylug] Setting up PHP on Mandrake 9
> > > >
> > > >
> > > > > did you set up using urpmi? Do you have only apache2 installed? (You
> > can
> > > > > also have apache 1 installed side by side, if you wish).  If so, which
> > > > > one is running?
> > > > >
> > > > > When you look at the default index page, does does the server
> > > > > description line say?
> > > > >
> > > > > Damon
> > > > >
> > > > > On Thu, 2003-09-18 at 12:45, Jamie Dobbs wrote:
> > > > > > Sorry, its 9.1 and installed from Mandrake RPMs but hasn't set
> > things up
> > > > > > properly.
> > > > > >
> > > > > > ----- Original Message ----- 
> > > > > > From: "Damon Lynch" <damon at photo.geek.nz>
> > > > > > To: <wellylug at lists.naos.co.nz>
> > > > > > Sent: Thursday, September 18, 2003 12:01 PM
> > > > > > Subject: Re: [wellylug] Setting up PHP on Mandrake 9
> > > > > >
> > > > > >
> > > > > > > Are you running 9.1, or 9?  Did you install Mandrake RPMs, or from
> > > > > > > another source?  The Mandrake RPMs should set everything up
> > > > > > > automagically.
> > > > > > >
> > > > > > > Damon
> > > > > > >
> > > > > > > On Thu, 2003-09-18 at 09:49, Jamie Dobbs wrote:
> > > > > > > > Have tried this and it doesn't seem to work - does it make any
> > > > > > difference
> > > > > > > > that Mandrake 9 runs Apache 2?
> > > > > > > >
> > > > > > > > ----- Original Message ----- 
> > > > > > > > From: "Murray Fox" <mfox at actrix.co.nz>
> > > > > > > > To: <wellylug at lists.naos.co.nz>
> > > > > > > > Sent: Thursday, September 18, 2003 9:33 AM
> > > > > > > > Subject: Re: [wellylug] Setting up PHP on Mandrake 9
> > > > > > > >
> > > > > > > >
> > > > > > > > > Be sure to set :
> > > > > > > > >
> > > > > > > > >     AddType application/x-httpd-php .php
> > > > > > > > >     AddType application/x-httpd-php-source .phps
> > > > > > > > >
> > > > > > > > > ..in your httpd.conf. In fact you might just need to crawl
> > through
> > > > > > > > > httpd.conf and un-comment a few lines, then restart Apache.
> > > > > > > > >
> > > > > > > > > -- Murray
> > > > > > > > >
> > > > > > > > > Jamie Dobbs wrote:
> > > > > > > > >
> > > > > > > > > >I've got a box set up with Mandrake 9, Apache, PHP and have
> > > > installed
> > > > > > > > > >mod_php but Apache does not appear to recognise PHP code in
> > web
> > > > pages
> > > > > > it
> > > > > > > > is
> > > > > > > > > >serving.
> > > > > > > > > >I'm sure that I have simply forgotten to change on of the
> > Apache
> > > > > > config
> > > > > > > > > >files, but for the life of me I can't remember which one -
> > any
> > > > help
> > > > > > would
> > > > > > > > be
> > > > > > > > > >appreciated.
> > > > > > > > > >
> > > > > > > > > >Thanks
> > > > > > > > > >
> > > > > > > > > >Jamie
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > -- 
> > > > > > > > > Wellington Linux Users Group Mailing List:
> > > > wellylug at lists.naos.co.nz
> > > > > > > > > To Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > -- 
> > > > > > > Wellington Linux Users Group Mailing List:
> > wellylug at lists.naos.co.nz
> > > > > > > To Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug
> > > > > > >
> > > > >
> > > > >
> > > > > -- 
> > > > > Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz
> > > > > To Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug
> > > > >
> > >
> > >
> > > -- 
> > > Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz
> > > To Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug
> > >
> > 
> 




More information about the wellylug mailing list