I run a home web server on OpenSuse 11.1 and want to run a script that will display the contents of a database on one of my websites.
The script cannot seem to connect to the database.
I can log-in to the site against the database I want to display so it seems to me that either the script is wrong or there is some wider problem with the configuration of my server.
I ran the script through a debugger and am confident that is OK.
Does anyone have an idea to help me identify where the problem might lie? Could it be some feature of AppArmor? (I know SELinux can cause some weird problems…).
Have the error returned by PHP? Does the PHP script work when run from
the command line (if possible)? Does the user you are using have
permissions to login? Does PHP have the modules required to connect to MySQL?
Good luck.
NormanNippy wrote:
> Hi
>
> I run a home web server on OpenSuse 11.1 and want to run a script that
> will display the contents of a database on one of my websites.
>
> The script cannot seem to connect to the database.
>
> I can log-in to the site against the database I want to display so it
> seems to me that either the script is wrong or there is some wider
> problem with the configuration of my server.
>
> I ran the script through a debugger and am confident that is OK.
>
> Does anyone have an idea to help me identify where the problem might
> lie? Could it be some feature of AppArmor? (I know SELinux can cause
> some weird problems…).
>
> Thanks in advance.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
NormanNippy wrote:
> Thanks for the ideas.
>
> In the end, it was a buggy script. I was using NuSphere under Wine and
> I don’t think it works as well as I thought it did!
>
> I have amended it and it’s working fine now.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/