Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Please help me to insert captcha plugins in squirrelmail. My installed SquirrelMail version 1.4.20 [SVN]-0.rc2.20100104.fc12
I download tar.gz file and extract it in the plugins directory. After that I executed conf.pl script and installed it.
When I try to login, the page display totally blank.
So please help me.
Hi,
Running conf.pl is not enough.
You should select a backend (meaning a way to create the captcha image), by editing the config.php in the captcha directory.
Read the captcha/docs/INSTALL file for more details.
Thanks bathory,
I read INSTALL file,
I edit config.php file and insert this path there: $captcha_backend = '/usr/share/squirrelmail/plugins/captcha/backends/textcaptcha';
and also copy textcaptcha_config_example.php to textcaptcha_config.php.
But got no result.
I am very new in Server configuration, please help me.
You don't need the whole path to the file, but only the name of the backend (in your case "textcaptcha"):
Code:
$captcha_backend = 'textcaptcha';
I suggest you to use the "captcha_php" or "watercap" (or you can use the more simpler csi, freecap, opencaptcha backends). All you need to do is to add gd support in php if it doesn't already has it.
I changed that path. After that I found the following things in login page:
1. No image or text display in login page
2. A text box with a heading "Enter the text you see in the image above: "
3. I can' login with valid user name & password. Display the error message
"Sorry, you did not provide the correct challenge response."
I read textcaptcha_config.php file but can't understand then I create an images directory and change its group ownership apache and permission 770 as per INSTALL doc file. But got no result.
As per your advice I tried csi catch but got the previous result. There was no new result found.
Are you sure you have installed gd support for php? Since you didn't mention your distro, you should check with your package manager, if you have installed something like php-gd, or php5-gd or similar package.
You can also take a look at your web server logs to see what errors you get.
Are you sure you've posted the correct logs? Maybe you're running squirrelmail as a vhost with different log files.
Because I don't see any hit to squirrelmail login.php page
Also since you're running Fedora make sure it's not a SELinux problem
sorry friend I can't find any other log file related this. I think am doing some thing wrong in captcha plugins directory. Can you guide me to configure textcaptcha?
This is my config.php in captch directory.
Quote:
$captcha_backend = 'textcaptcha';
Is it any thing to be configure in ./backends/textcaptcha location????
I give here details of that directory:
The only thing I had to change in textcaptcha_config.php in order for textcaptcha to work was the path to x-fonts, as I have a customized xserver installation.
Quote:
$captcha_font_path = '/usr/share/X11/fonts/TTF/';
I have already told you to try a more simple backend, as textcaptcha needs some optional Pear packages in order to work.
For me captcha_php and csi worked out of the box, as the only thing they need is gd support.
Another thing to do is to change ownership to the whole plugons/captcha directory to the user/group apache runs as (I think for fedora is apache:apache):
Dear bathory
I understand that you really try to help me but, after doing all the thing I get the same result. I attach a screen shot. I think these are the perfect logs which we want:
[root@localhost plugins]# tail -f /var/log/httpd/ssl_error_log
[Sat Mar 27 19:28:03 2010] [error] [client ::1] File does not exist: /var/www/html/favicon.ico
[Sat Mar 27 19:28:04 2010] [error] [client ::1] PHP Warning: require_once(Text/CAPTCHA.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:28:04 2010] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required 'Text/CAPTCHA.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:28:24 2010] [error] [client ::1] PHP Warning: require_once(Text/CAPTCHA.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:28:24 2010] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required 'Text/CAPTCHA.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:29:47 2010] [error] [client ::1] PHP Warning: require_once(Text/CAPTCHA.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:29:47 2010] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required 'Text/CAPTCHA.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:29:47 2010] [error] [client ::1] File does not exist: /var/www/html/favicon.ico
[Sat Mar 27 19:30:05 2010] [error] [client ::1] PHP Warning: require_once(Text/CAPTCHA.php): failed to open stream: No such file or directory in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
[Sat Mar 27 19:30:05 2010] [error] [client ::1] PHP Fatal error: require_once(): Failed opening required 'Text/CAPTCHA.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/squirrelmail/plugins/captcha/backends/textcaptcha/image_generator.php on line 41, referer: https://localhost/webmail/src/login.php
You miss the Text_CAPTCHA pear extension. I've already told you that you need to install some extensions in order for textcaptcha to work. From config.php:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.