Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It means that you probably don't have PHP installed on your computer and you need to install it.
[Edit]
Sorry, missed the part about the which results being e-mailed to you. I assumed you had typed it. Moral, don't answer questions just before going to bed.
cron doesn't have the same environment as you; to get this working you'll
have to find where php lives ('which php') and add the path to it to your
cron-tab entry
e.g.
0 2 * * * PATH=$PATH:/path/to/php your_script
thank you for your help did run which php to get path
It seems that my hosting company has a php module that is trying to load but does not exist. Is that right. Anyone know how to fix that.
THank you
but I got the following error PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in Unknown on line 0
No input file specified.
Quote:
Originally Posted by Tinkster
cron doesn't have the same environment as you; to get this working you'll
have to find where php lives ('which php') and add the path to it to your
cron-tab entry
e.g.
0 2 * * * PATH=$PATH:/path/to/php your_script
The error message you have posted sais simply that the web server can't find
the pgsql.so shared library, which refers to the libpq.so.3 library.
As the names of these libraries suggest, the libraries handle the access to PostGres SQL databases.
So, if your site (PhP code) is trying to access/use such a database, it will fail to do so, simply because the
required library cannot be found.
Note that this can also be an environment issue. Most shared libraries are found via specific environment variables, like LD_LIBRARY_PATH and alike.
The fix is rather simply, if you have access to the web server. If you don't have that, ask your ISP (or whomever has sufficient access) to set up the PostGres support in PhP for you.
If you have access, you may want to try:
-looking for the libraries that are said to be "missing". If they are on the system, but the website can't find them, then it's most like an environment issue. Use tools like "locate", "slocate", "which" and/or "whereis" to find the libs and also look at your environment variables.
-if the libraries are not on your system, then you need to install them. You may want to download them from
a PhP related website, or you may also be able to find them on some general package downloading sites, like
rpmfind.net and alike.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.