Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-13 09:02
[forum:993]
Thank you for your complete test. I finally got it working with two fixes :
1. In order phpcaptcha to appear in the pluginman page, it has to be present in /usr/share/fusionforge/plugins. However when I install phpcaptcha from sources, it is installed in /usr/share/local/fusionforge/plugins. Therefore I made a link to /usr/share/local/fusionforge/plugins/phpcaptcha in /usr/share/fusionforge/plugins :
cd /usr/share/fusionforge/plugins
sudo ln -s /usr/local/share/fusionforge/plugins/phpcaptcha/ phpcaptcha

2. I missed the dependency of securimage in php5-gd (I did not read carefully the documentation !). I realised it after reading your procedure and I installed php5-gd :
sudo apt-get install php5-gd

Now it works fine. A captcha is required when a user registers a new local account, which is what I was looking for. However I do not see it after 3 failed attempts on the login page, which would be nice also.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Franck Villaume on 2016-12-12 15:55
[forum:991]
Hi,

I did following the test on my side with a new platform:
as root:
make install-plugin-phpcaptcha
make post-install-plugin-phpcaptcha

I modified the phpcaptcha.ini file with:
plugin_status = 'valid'

I went to https://<myhostname>/admin/pluginman.php
I can see phpcaptcha plugin is activated.

Then I install securimage in /opt/securimage
Since securimage requires php-gd, I installed php-gd
I modified /etc/fusionforge/config.ini.d/phpcaptcha.ini file accordingly
I modified /etc/fusionforge/httpd.conf.d/00-defines.conf accordingly.

I had to modify /etc/fusionforge/httpd.conf.d/plugin-phpcaptcha.inc to fix forbidden access:
Alias /plugins/phpcaptcha ${FF__phpcaptcha__phpcaptcha_path}
<Directory ${FF__phpcaptcha__phpcaptcha_path}>
Include ${FF__core__config_path}/httpd.conf.d/auth-main.inc
</Directory>

Then click on login page, after 3 failed attemps, the fourth one should display a captcha.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-12 11:23
[forum:989]
Yes phpcaptcha.ini exists in /etc/fusionforge/config.ini/d. I tried to remove and reinstall everything and now securimage is in /usr/local/share/fusionforge/plugins/.

phpcaptcha.ini is owned by root and root's group, it has 644 rights. The content is as follows :

[phpcaptcha]

; Current phpcaptcha is to be validate by developers
; plugin_status is a string.
; valid means : production ready.
; Any other strings means it's under work or broken and plugin
; is available in installation_environment = development only.
plugin_status = 'valid'

; set the path to phpcaptcha installation
phpcaptcha_path = /usr/local/share/fusionforge/plugins/securimage

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Franck Villaume on 2016-12-12 11:12
[forum:988]
Is the file /etc/fusionforge/config.ini.d/phpcaptcha.ini exist?
What is the content?

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-12 09:44
[forum:987]
I tried to set plugin_status to "valid" but it does not make the plugin appear in the admin site.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Franck Villaume on 2016-12-10 14:52
[forum:986]
If plugin phpcaptcha does not show in the pluginman page, it may be due to phpcaptcha status not set to "valid".

Can you try to modify your phpcaptcha.ini and set:
plugin_status = "valid"

Then see if the plugin does show in the pluginman page to enable it.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-09 17:27
[forum:981]
Still no success :
- No captcha when a user registers ;
- No phpcaptcha plugin in the plugin page.

I installed from source :

- git clone https://scm.fusionforge.org/anonscm/git/fusionforge/fusionforge.git -b 6.0
- cd fusionforge/src
- sudo make install-plugin-phpcaptcha
- sudo make post-install-plugin-phpcaptcha
(however there is no post-install rule for phpcaptcha ...)

Then I changed my phpcaptcha.ini and I added the line you suggested to /etc/fusionforge/httpd.conf.d/00-defines.conf

Finally I restarted apache2.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Franck Villaume on 2016-12-09 15:00
[forum:980]

To install the plugin from source:
make install-plugin-phpcaptcha
make post-install-plugin-phpcaptcha

Then check your httpd configuration.
What is the value of the define: ${FF__phpcaptcha__phpcaptcha_path} ?
Check in 00-defines.conf
If line is missing: add
Define FF__phacaptcha__phpcaptcha_path "/usr/share/fusionforge/plugins/securimage"

Restart your apache2.

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-09 14:40
[forum:979]
Yes I tried to follow the 5.3.1 procedure but I was unable to activate the captcha plugin.

Here is what I tried to do in detail :
- I installed nothing with the package manager of my distribution (should I ? there is no "fusionforge-plugins-phpcaptcha" in the repositories)
- I downloaded securimage from https://www.phpcaptcha.org/download/
- sudo cp -r [Downloads_directory]/securimage /usr/share/fusionforge/plugins
- sudo touch /etc/fusionforge/config.ini.d/phpcaptcha.ini
- sudo nano /etc/fusionforge/config.ini.d/phpcaptcha.ini
- I pasted there the following:

[phpcaptcha]
; Current phpcaptcha is to be validate by developers
; plugin_status is a string.
; valid means : production ready.
; Any other strings means it's under work or broken and plugin
; is available in installation_environment = development only.
plugin_status = 'need validation'

; set the path to phpcaptcha installation
phpcaptcha_path = /usr/share/fusionforge/plugins/securimage

- sudo touch /etc/fusionforge/httpd.conf.d/plugin-phpcaptcha.inc
- sudo nano /etc/fusionforge/httpd.conf.d/plugin-phpcaptcha.inc
- I pasted there the following:

Alias /plugins/phpcaptcha ${FF__phpcaptcha__phpcaptcha_path}

- sudo service apache2 restart

RE: Enable captcha in FusionForge 6.0.x [ Reply ]
By: Franck Villaume on 2016-12-09 13:04
[forum:978]
phpcaptcha plugin is available.
Previous post for 5.3.1 version
https://fusionforge.org/forum/forum.php?thread_id=392&forum_id=5&group_id=6

Enable captcha in FusionForge 6.0.x [ Reply ]
By: Arnaud Beaumont on 2016-12-09 10:17
[forum:977]
Hello,

Is it possible to enable captcha in FusionForge 6.0.x for new account registration ?