Prev: How verify whether browser arrived via IPv6, IPv4, domain or number
Next: Regular expressions, filter option1 OR option2
From: Ashley Sheridan on 19 Aug 2010 10:16 On Thu, 2010-08-19 at 09:41 +0100, e-letter wrote: > On 19/08/2010, David McGlone <david(a)dmcentral.net> wrote: > > On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote: > >> On 18/08/2010, David McGlone <david(a)dmcentral.net> wrote: > >> > On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote: > >> >> On 18/08/2010, David McGlone <david(a)dmcentral.net> wrote: > >> >> > > >> >> > Do you have php5 installed? > >> >> > > >> >> Yes, but don't know how to confirm; I used urpmi to install. > >> > > >> > Use the command in a terminal: rpm -q php5 > >> > > >> No package by this name in the repository; have libphp5_common5 installed. > > > > Ok let me ask you this, When you try to view a php file on your server > > does it ask you if you would like to download it? > > I don't understand: isn't the example I provided a php file? > I think it's fairly clear that for whatever reason, PHP isn't properly configured with Apache. You've mentioned you're using Mandriva, which, coincidentally, is what i've just recently installed on my home machine. It has a very good graphical package manager that you can use to install PHP and Apache. I'm not at my home machine right now, so I don't recall the exact name, but it's found somewhere in the Computer Settings main menu dialogue. From here, you can install Apache and PHP, which will configure Apache as well to recognise PHP scripts and execute them. Thanks, Ash http://www.ashleysheridan.co.uk
From: e-letter on 19 Aug 2010 10:35 On 19/08/2010, Ashley Sheridan <ash(a)ashleysheridan.co.uk> wrote: > I think it's fairly clear that for whatever reason, PHP isn't properly > configured with Apache. You've mentioned you're using Mandriva, which, > coincidentally, is what i've just recently installed on my home machine. > It has a very good graphical package manager that you can use to install > PHP and Apache. I'm not at my home machine right now, so I don't recall > the exact name, but it's found somewhere in the Computer Settings main > menu dialogue. From here, you can install Apache and PHP, which will > configure Apache as well to recognise PHP scripts and execute them. > mcc (mandriva linux control centre) is the command (or more specifically, rpmdrake) To my knowledge, using this tool, all necessary files are installed. I suspect that there is a fault with the way that mandriva builds the packages.
From: Ashley Sheridan on 19 Aug 2010 10:35 On Thu, 2010-08-19 at 15:35 +0100, e-letter wrote: > On 19/08/2010, Ashley Sheridan <ash(a)ashleysheridan.co.uk> wrote: > > I think it's fairly clear that for whatever reason, PHP isn't properly > > configured with Apache. You've mentioned you're using Mandriva, which, > > coincidentally, is what i've just recently installed on my home machine. > > It has a very good graphical package manager that you can use to install > > PHP and Apache. I'm not at my home machine right now, so I don't recall > > the exact name, but it's found somewhere in the Computer Settings main > > menu dialogue. From here, you can install Apache and PHP, which will > > configure Apache as well to recognise PHP scripts and execute them. > > > mcc (mandriva linux control centre) is the command (or more > specifically, rpmdrake) > > To my knowledge, using this tool, all necessary files are installed. I > suspect that there is a fault with the way that mandriva builds the > packages. As Colin suggested on another email, check to see if apache-mod_php was installed too. It seems likely that it wasn't for some reason. Thanks, Ash http://www.ashleysheridan.co.uk
From: e-letter on 19 Aug 2010 11:30 On 19/08/2010, Ashley Sheridan <ash(a)ashleysheridan.co.uk> wrote: > As Colin suggested on another email, check to see if apache-mod_php was > installed too. It seems likely that it wasn't for some reason. How to verify please? Also, the instruction to use task-lamp; it seems this is for mysql but the database to be used is postgresql?
From: Ashley Sheridan on 19 Aug 2010 11:33
On Thu, 2010-08-19 at 16:30 +0100, e-letter wrote: > On 19/08/2010, Ashley Sheridan <ash(a)ashleysheridan.co.uk> wrote: > > As Colin suggested on another email, check to see if apache-mod_php was > > installed too. It seems likely that it wasn't for some reason. > > How to verify please? Also, the instruction to use task-lamp; it seems > this is for mysql but the database to be used is postgresql? Use the package manager to check and see if that was installed. I'm not familiar with the command line for rpmi, having used Yum on Fedora mostly, but on that you would just do a 'yum list apache-mod*' to see what apache mods were installed and available, so I assume something similar exists for rpmi. The task-lamp will be using MySQL, as it is the 'm' of lamp (Linux, Apache, MySQL & PHP) Thanks, Ash http://www.ashleysheridan.co.uk |