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.
I have Redhat 7.2 installed with apache and php installed by default. but I am getting the following error in a php file when viewed in browser at the client end.
=======================
// source code of php file
<?php
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
=======================
Error message at the client
=======================
Fatal error: Call to undefined function: mcrypt_ecb() in /home/httpd/html/test.php on line 4
1) The libmcrypt library is not installed on your system. Look through your rpms on your cds before getting something off the web. ("locate libmcrypt" to see if it's installed.)
2) php was not linked with libmcrypt. I think is is, but... You'd have to install the srpm, modify the /usr/src/redhat/SPECS/php.spec file and then do a rpm -ba php.spec to get an rpm which is linked.
3) if you're messing with system passwords, you probably want to be using the crypt function instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.