New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Wordpress on MooseVZ
tomahawkeer
Member
in Help
Anyone here installed wordpress on a MooseVZ VPS?
I've installed it manually, however run into updating issues with plugins / themes etc. I assumed it was a permission issue, but it doesn't appear to be so. (prompting for ftp info to update / install them)
If I install it via installatron the install works flawless. I don't mind using the installatron however, its bugging me that the manual install isnt quite working as it should.
Even as recommened, I can manually chmod all the folders permissions to 777, and still have the issue (manual install). I have also reset all file permissions to the recommended 644. Same issue. Any ideas?
Comments
What webstack you're running?
Who's the web user?
Who's the web app user? Nginx, apache, www-data, httpd?
I can paste in sample config for nginx and php5-fpm if you want.
apache
sorry, the user is www-data. im getting click happy today it seems
Can't help you with apache I'm afraid. I better like nginx and php5-fpm with mariadb.
wp-content/uploads needs to be writable and proper ownership. I had this issue this weekend with a manual install of Wordpress.
I manually went through and changed all permissions on all folders to 777, and still had the issue. How did you resolve it?
777 for wp-content/uploads and nginx:nginx for permission.
apache:apache or www-data:www-data will work for you on ownership
777 is terrible security wise. 755 is recommended and that the webserver can write to the wp-content directory.
On nginx, my systemuser/webuser is the one I use on the terminal. And the systemuser(webuser1) owns the public folder.
This is based on debian jessie and nginx mainline 1.9.5
This is from /etc/nginx/nginx.conf:
One webapp.conf from conf.d:
I will refer to webapp as that's what the example will be after www/webapp and in the php socket too.
Php5-fpm pool file from /etc/php5/fpm/pool.d/webapp.conf
Not the best logged system, but wordpress works and doesn't give webserver access/write errors.
It could surely do optimizations and all that, but for a low traffic site it works.
I don't know how secure it is, but I run each domain/subdomain on different users, but www-data remains the same in php5-fpm config. I also use different php5-fpm socket files.
The webuser/www/appname structure was taken from serverpilot.io, they do /srv/users/username/apps/appname/public. Mine is shorter and less logged anyway.
I try to learn this on my own as well to become independent of their free services, which is nice, but better to learn this stuff.
The 777 is how installatron sets the directories / subs, however the manual install has all of them at 755, which is what it should be period, however the manual install will not allow it with 755 or 777. Installatron has to be doing something, that the manual install doesn't do, to be making it function like its supposed to.
Try nginx and do this manually.
It took me hours to figure the above config out, but now I can make a new domain in 5 minutes manually.
after the above config is done, a new domain/subdomain is just making a A/AAAA record and downloading wordpress/unzipping it.
Mysql is easy as well:
Thanks for the feedback. Ill take a look at nginx later tonight or tomorrow. I'm new to running linux and VPS , but im slowing getting the hang of it.
You can try serverpilot's free plan which is good and light enough to run websites on. It's fairly secure and they keep updating your server's software security wise.
But it only runs on ubuntu 14.04/12.04 64 bit, which why I try to leave it. I don't like ubuntu's attitude to dash search, plus it's a bastard of debian. Debian all the way.
This is one of the reasons why this forum exist! Help each other!
You can try nginx php5 fpm mariadb on a new debian jessie install with the following code:
Run this as root.
Clean the server a bit.
This will install nginx mainline from nginx.org directly. https://gist.github.com/hpherzog/8824136
nano nginx-mainline.sh
You can then run
to install nginx mainline.
You could use
for nginx stable 1.8.0 instead.
You can use the mariadb.com for mariadb https://downloads.mariadb.org/mariadb/repositories/
Debian Jessie from London for example:
https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-lon&distro=Debian&distro_release=jessie--jessie&version=10.1
php5-fpm is just
Also take a look at https://www.vultr.com/docs/setup-up-nginx-php-fpm-and-mariadb-on-debian-8 which is what I've used before googling around.
You'll want to install some php5 extensions if your websites need it.
@tomahawkeer
I had same problem with other host, after some hours i found issue to be file ownership. chown -R php:php * inside the folder solved it for me.
However, I revert it back to nginx:nginx after update.
You need to make sure the php-fpm pool permissions are set correctly...open up /etc/php5/fpm/pool.d/www.conf and find
user = www-data
group = www-data
and
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
Make sure those are set to whatever nginx is running as (www-data or nginx)
@emperor
That solved the WordPress permissions for me but I was using vesta so I used admin:admin in my case...:-)
you need to try www-data:www-data
Well, I finally got around to installing nginx on my server, and the server itself appears to be running fine, however, the info.php file ive created is displaying as just a blank page.
I've been troubleshooting it now for about 45 min and still no luck. Its getting kind of late atm (coming up on 230 am lol) might have to look at it tomorrow with a fresh pair of eyes, and a clearer brain / thought process.
Here is my top:
@tomahawk: have you tried restarting the VPS
Yeah no change unfortunately
all I do is apt-get install nginx php5-fpm and then add php to nginx vhost in /etc/nginx/sites-available/enabled . Then restart.
Out of curiosity, are you running Debian, and if so what version ?
I did (7) now I run Ubuntu (14.04). The procedure is the same on both.
I enable PHP with this:
Thats exactly what I have in my config, and still not working.
then I guess I would check the nginx and php logs ( /var/log/php5-fpm.log and /var/log/nginx/error.log for me)
Take a look at the php5-fpm notes I pasted in here and try to use that.
I actually went through them pretty good last night. I am going to change OS to Debian 8. All my testing thus far has been on 7.
If I get to having the same issues in 8 I'll post all my configuration and logs in depth.
Why did you not try EasyEngine?
I've used my above notes for debian 7 as well. The only difference is that you need to swap "jessie" for "wheezy" in the mariadb part, nginx part and if you want php5.6-fpm on your server use this script:
The only thing php-fpm needs changing for basic usage is a couple of lines of /etc/php5/fpm/php.ini, which https://www.vultr.com/docs/setup-up-nginx-php-fpm-and-mariadb-on-debian-8 article describes well for basic usage.
On debiaj jessie, because of fresher repos by default, apt installs php5.6.x-fpm, while wheezy installs 5.4.x by default.
The above dotdeb.org repo has php5.6-fpm in stock after apt-get update.