×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: No captcha on 4.0

No captcha on 4.0 15 years 7 months ago #3432

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hi Daniel, I've installed 4.0 version and had to solve the error: "Parse error...." fixed with your help changing code... Now I've another problem: captcha doesn't display and I didn't find anything on forum solving my day :( Could you help me? Permissions are 755 on all, except captcha.php (644). what else I can check?

No captcha on 4.0 15 years 7 months ago #3433

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
are the freetype and gd libraries installed?

No captcha on 4.0 15 years 7 months ago #3434

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
where I need to check? I don't know 'em...

No captcha on 4.0 15 years 7 months ago #3435

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
backend - > help -> system info

No captcha on 4.0 15 years 7 months ago #3436

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Is it ok in this way?

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype

No captcha on 4.0 15 years 7 months ago #3437

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Can you give me a link to your web site. I want to see what error message the captcha is generating.

No captcha on 4.0 15 years 7 months ago #3438

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0

No captcha on 4.0 15 years 7 months ago #3439

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, This email address is being protected from spambots. You need JavaScript enabled to view it. and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Can you find the server error log?

No captcha on 4.0 15 years 7 months ago #3440

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Where I could find it?

No captcha on 4.0 15 years 7 months ago #3441

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Your hosting plan should give you some kind of control panel such as cpanel or ispconfig?

No captcha on 4.0 15 years 7 months ago #3443

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
I got those:

suexec policy violation: see suexec log for more details, referer: www.zonalibera.net/index.php?option=com_...rooli&catid=1:ultime

Premature end of script headers: captcha.php, referer: www.zonalibera.net/index.php?option=com_...rooli&catid=1:ultime

No captcha on 4.0 15 years 7 months ago #3444

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Aha!
Ok, that is a start, but I will need the help of your hosting support, since I'm not so into configuring servers.

here is a little information about alain.knaff.lu/howto/PhpSuexec/

You are running your web site in virtual host. Perhaps that is the reason why you get the next error message
Premature end of script headers: captcha.php, referer.

I don't know under what user the php script is executed:

Suexec functionality for PHP
On a standard Apache installation, suexec does not work for PHP, as PHP is implemented using a dynamically loadable module that runs within the context of Apache. All PHP scripts thus run under the same user as Apache itself runs as (www-data)

In order to allow users to safely execute PHP scripts, this paradigm must be changed: rather than using mod_php, user's PHP scripts should be executed via php-cgi. There are two steps necessary to make this happen:

1. Disable mod_php
2. Enable php-cgi

These 2 steps will be described in the next sections.
Disabling mod_php
The easiest method is to simply not install libapache2-mod-php5. However, php-cgi is less performant than mod_php and you might want to keep mod_php for safe system-wide web applications such as mediawiki, Horde/IMP, etc. Thus a solution is needed to only disable php for the users' home directories. This can be achieved using the following Apache config:

<Directory /home>
php_admin_flag engine off
</Directory>

Using php_admin_flag rather than simply php_flag makes sure that users can't re-enable php using their .htaccess file.
Enabling php-cgi
There are two ways to do it: suphp or suexec
Suphp
As of September 2008, the most recent released version of suphp does not yet support public_html. However, there is an unreleased snapshot that does:
www.suphp.org/download/suphp-SNAPSHOT-2008-03-31.tar.gz

Unpack this and compile it:

tar xfzv suphp-SNAPSHOT-2008-03-31.tar.gz
cd suphp-SNAPSHOT-2008-03-31
./configure --with-apxs=/usr/bin/apxs2 --with-setid-mode=owner
make
make install

and activate it by putting the following into Apache's config:

LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.so
<Directory /home>
AddHandler application/x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-php
suPHP_Engine on
</Directory>

and the following in /usr/local/etc/suphp.conf:

[global]
webserver_user=www-data
docroot=/var/www:${HOME}/public_html
check_vhost_docroot=false

[handlers]
;Handler for php-scripts
application/x-httpd-php="php:/usr/bin/php-cgi"


Please ask you hosting support to look into the problem. They should be of great help to us since they are competent in administrating web servers and I'm not :)

No captcha on 4.0 15 years 7 months ago #3445

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Now I' ve updated my php to 5.0 version, maybe something could change? At the moment, I don't receive more error logs...but it still don't works...

No captcha on 4.0 15 years 7 months ago #3446

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, you keep getting the internal server error.
www.zonalibera.net/components/com_commen...484ceef65a8700d34d0d

Could you check again the folder permissions and captcha.php permissions? (captcha.php should be 644)

No captcha on 4.0 15 years 7 months ago #3447

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
permissions only for folders or "apply to enclosed items"?

No captcha on 4.0 15 years 7 months ago #3448

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
now I read all the reports...little late delivery but all error logs, all the same problems... really too complicated... is it so dangerous for security use comments without captcha, but only for registred users? It's possible that some robots could pubblish register users and pubblish comments in this way?

No captcha on 4.0 15 years 7 months ago #3449

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
try the following
components - 775
com_comment - 775
joscomment - 755
captcha - 755

captcha.php - 644

Basicly it is absolutly not dangerous to disable the captcha for registered users. You just have to make sure that there are no registered bots :) since they can post spam too :)

Using captcha with the registration can help (also don't forget e-mail account activation).

But please let us first make everything possible for the captcha to work.

No captcha on 4.0 15 years 7 months ago #3450

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Permissions are all right set, but still don't works... I don't know what else I could do...

No captcha on 4.0 15 years 7 months ago #3451

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

No captcha on 4.0 15 years 7 months ago #3452

  • Claudio
  • Claudio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
How long should test? Is working from some minutes but nothing changes... still "Testing..."
  • Page:
  • 1
  • 2
Time to create page: 0.189 seconds