Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails with "parse_ini_file" disabled #678

Closed
RaymiiOrg opened this issue May 9, 2014 · 3 comments
Closed

Installation fails with "parse_ini_file" disabled #678

RaymiiOrg opened this issue May 9, 2014 · 3 comments
Labels
Milestone

Comments

@RaymiiOrg
Copy link

I wanted to install wallabag on a VPS where PHP is locked down, as in, it has the following functions disabled in the used php.ini:

disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source 

The install went fine (using mysql with a freslhy created database), however after I removed the install folder the site gave the following message:

wallabag mysql database looks empty. You have to create it (you can find database structure in install folder).

I tried to load the database manually:

mysql -u wallabag_user -p wallabag_db /var/www/wallabag/install/mysql.sql

That did not remote the error message.

In the nginx error log the following popped up:

2014/05/09 06:35:41 [error] 11412#0: *5276 FastCGI sent in stderr: "PHP message: PHP Warning:  parse_ini_file() has been disabled for security reasons in /var/www/wallabag/inc/poche/Poche.class.php on line 294
PHP message: PHP Warning:  parse_ini_file() has been disabled for security reasons in /var/www/wallabag/inc/poche/Poche.class.php on line 294" while reading response header from upstream, client: [xx.xx.xx.xx], server: [example.org], request: "GET /wallabag/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/php/php5-fpm.sock:", host: "[example.org]"

After removing the "parse_ini_file" from the disabled functions and restarting php-fpm and doing a reinstall it works without issues.

Information:

wallabag: 1.6.1

php:
PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr 4 2014 01:27:23)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

OS: ubuntu 12.04.4 LTS
Webserver: nginx 1.6.0

This was not in the documentation and an google search didn't help, so maybe this can be added to the compatibility check?

@tcitworld
Copy link
Member

Yup, will add.

@tcitworld tcitworld added the Bug label May 18, 2014
@tcitworld
Copy link
Member

Done.

@tcitworld tcitworld added this to the 1.6.2 milestone May 18, 2014
@RaymiiOrg
Copy link
Author

Thank you :)

@nicosomb nicosomb modified the milestones: 1.7.0, 1.6.2 May 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants