Pre Exam Test Practice
Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
WordPress can't write files on HHVM and nginx
mysql 5.5.40-0ubuntu0.14.04.1 (Ubuntu)
hhvm 3.5.0 (rel)
Any hhvm users here?
Superficial problem: auto updates to core, theme, plugins asks for FTP credentials. Same for uploading media. WordPress canâ€™t write to server
Everything was running really well on my LEMP server until I needed to reboot my DO VPS last month. Still running well, but now simply canâ€™t write files.
I currently (temporarily) have all mod permissions at 775 with www-data:www-data owner/group to root wp directory.
This is more a question of best practices running WP on hhvm. Is it all that different than running php-fpm?
From I can â€˜senseâ€™, it seems the hhvm process canâ€™t write to the directories, as it either isnâ€™t using the www-data user or part of the www-data group.
php5-fpm explicitly declares this in the /etc/php5/fpm/pool.d/www.conf file, but I canâ€™t find a similar file or declaration for hhvm. There is a /etc/hhvm/ directory containing a php.ini and server.ini files, but currently there is no explicit user line in the files.
Upon further review in htop, it seems my â€˜caseyâ€™ user owns the 6 hhvm processes. Do I just need to start hhvm as â€˜www-dataâ€™? If this was the case, since â€˜caseyâ€™ is a member of www-data, hhvm should be able to write to directories given the current 775 mod (but I might be mistaken about how that works). Regardless, the hhvm server process should obviously be owned by another user, but unclear what the best practice is here. If I recall, I manually booted hhvm after the server reboot, probably better to set up as a daemon.
Before I mess with the config files I want to make sure Iâ€™m relatively correct about this.
My google searches werenâ€™t bringing up exact results on this. Am I headed in the right direction?
Jun 9, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening