[LUNI] Epic LAMP Fail
Hef
hef at pbrfrat.com
Sun Sep 12 19:15:59 CDT 2010
did you restart apache after changeing the php.ini file and installing
php5-mysql?
On Sun, Sep 12, 2010 at 6:53 PM, Clyde Forrester
<clydeforrester at gmail.com> wrote:
> I have Ubuntu 9.10, Apache 2, MySQL, PHP 5. But I'm getting errors
> trying to tie it all together.
>
> mysql_connect("localhost","root","password");
> gives me: Fatal error: Call to undefined function mysql connect() ...
>
> I googled up a storm on this one. I have php5-mysql and libmysqlclient.
> There is no php5-mysqli available through the package manager, but I
> think it's irrelevant. I did uncomment the extension=msql.so line, and
> even change it to mysql.so, and reboot. Didn't seem to help.
>
> I tried other examples, like the one in the O'Reilly book. require
> 'DB.php'; gave me: Warning: require(DB.php) [function.require]: failed
> to open stream: No such file or directory ...
>
> This should be THE simplest application of THE most common use of Linux
> (web serving) on possibly THE most common distro. Yet it's lookin' at me
> like maybe I got two heads, tryin' to do sumpthin' so radical.
>
> I'm hoping it's some logical oversight, like when the Hello.c program
> won't compile because they thought that no one would need the header
> files in a standard install.
>
> Any ideas?
>
> c4
>
> (Full disclosure: I posted this on chicagolinux a few minutes ago, also.)
> --
> Linux Users Of Northern Illinois (Chicago) - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>
More information about the LUNI
mailing list