Red HatThis forum is for the discussion of Red Hat Linux.
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.
Hi,
First i would like to explain my problem clearly and am beginner to Linux. I have an Dell server with redhat 5 OS. In that i have hosted one database using mysql and html+perl. It is located in /var/www/html/xxx folder. It is working fine but at present i want to host another database. That database created by using mysql and html+php. When i am moved that files to /var/www/html folder its working good with html file but the search (php) files are not working. Then tried to executing php file in command line i found error as " PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/msql.so' - /usr/lib64/php/modules/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/test_php.php on line 2 "
This php file located in /var/www/html/test_php.php. That coding is
Php installed on server but dont know it is configured or not.
I think php configuration was wrong. Pl help me to fix this problem and where am did wrong.
Thanks for reply. In my server Yum function not working because of RHN registration problem. I have tried to install manually ( php-mysql-5.1.6-39.el5_8.x86_64.rpm) but it was failed due to dependencies such as, # rpm -ivh php-mysql-5.1.6-39.el5_8.x86_64.rpm
warning: php-mysql-5.1.6-39.el5_8.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
php-common = 5.1.6-39.el5_8 is needed by php-mysql-5.1.6-39.el5_8.x86_64
php-pdo is needed by php-mysql-5.1.6-39.el5_8.x86_64
Then i was tried to install failed dependencies,
# rpm -ivh php-common-5.1.6-27.el5.x86_64.rpm
Preparing... ########################################### [100%]
package php-common-5.1.6-27.el5_5.3.x86_64 (which is newer than php-common-5.1.6-27.el5.x86_64) is already installed
file /usr/lib64/php/modules/dbase.so from install of php-common-5.1.6-27.el5.x86_64 conflicts with file from package php-common-5.1.6-27.el5_5.3.x86_64
and
#rpm -ivh php-pdo-5.1.6-27.el5.x86_64.rpm
error: Failed dependencies:
php-common = 5.1.6-27.el5 is needed by php-pdo-5.1.6-27.el5.x86_64
Is there any alternate way to use yum command without RHN registration?.
Since you're using RHEL, you should register (and pay for support) with RHN.
Anyways, if you insist not to do so, you can have a look here to see how to use a Centos repository
Thanks for reply. In my server Yum function not working because of RHN registration problem. I have tried to install manually ( php-mysql-5.1.6-39.el5_8.x86_64.rpm) but it was failed due to dependencies such as, # rpm -ivh php-mysql-5.1.6-39.el5_8.x86_64.rpm
warning: php-mysql-5.1.6-39.el5_8.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
php-common = 5.1.6-39.el5_8 is needed by php-mysql-5.1.6-39.el5_8.x86_64
php-pdo is needed by php-mysql-5.1.6-39.el5_8.x86_64
Then i was tried to install failed dependencies,
# rpm -ivh php-common-5.1.6-27.el5.x86_64.rpm
Preparing... ########################################### [100%]
package php-common-5.1.6-27.el5_5.3.x86_64 (which is newer than php-common-5.1.6-27.el5.x86_64) is already installed
file /usr/lib64/php/modules/dbase.so from install of php-common-5.1.6-27.el5.x86_64 conflicts with file from package php-common-5.1.6-27.el5_5.3.x86_64
and
#rpm -ivh php-pdo-5.1.6-27.el5.x86_64.rpm
error: Failed dependencies:
php-common = 5.1.6-27.el5 is needed by php-pdo-5.1.6-27.el5.x86_64
Is there any alternate way to use yum command without RHN registration?.
You could use CentOS. CentOS is a community built distribution of the RH platform.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.