problem setting up PHP

Ben Edwards funkytwig at gmail.com
Thu Oct 28 19:19:27 UTC 2004


Worked out what it was - I specified index.php, rather than yust the
site root and it worked.

I now get 
Fatal error: Call to undefined function: mysql_connect() in
/var/www/singleparents.org.uk/lib/db.inc on line 18

I suess I need to enable the mysql extension in php but dont know how?

Ben

On Wed, 27 Oct 2004 20:35:58 +0100, Ben Edwards <ben at serverone.co.uk> wrote:
> I have installed apache2 OK and added mysql and mod php4.
> 
> In /etc/apache2/apache2.conf have uncommented
> 
> I have restarted apache2 I have uncomented
>   AddType application/x-httpd-php .php
> 
> In  /etc/apache2/mods-available I have
>   php4.conf -> /etc/apache2/mods-available/php4.conf &
>   php4.load -> /etc/apache2/mods-available/php4.load
> 
> When I I try to load a .php page is popes up a 'Opening' box talking and
> talkes about PHTML.
> 
> Any Ideas?
> 
> Ben
> 
> --
> Ben Edwards - Poole, UK, England
> If you have a problem sending me email use this link
> http://www.gurtlush.org.uk/profiles.php?uid=4
> (email address this email is sent from may be defunct)
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 


-- 
Ben Edwards - Poole, UK, England
WARNING:This email contained partisan views - dont ever accuse me of
using the veneer of objectivity
If you have a problem emailing me use
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)




More information about the ubuntu-users mailing list