Best configuration for WordPress sites

svscherpenseel

New member
Joined
Jun 12, 2014
Messages
2
Hi all,

I'm new to the forums, so excuse me if I'm posting this thread in the wrong category.

I'm using DirectAdmin for quite a while now to host several WordPress sites. I also have one WordPress site which is hosted at a hosting provider.

Now, before being able to install WordPress, WordPress needs to create a configuration file. WordPress is able to do this by itself on the server of the hosting provider, but when I want to install WordPress on my own VPS, it isn't able to write the configuration file to the server by default. I have to CHMOD the root directory first.

Another example is when I want to install new themes, I'm normally able to instantly install a WordPress theme through the administration panel. However, when I want to do this on my own VPS, I have to enter my FTP login everytime so that WordPress has access to my server.

I think this has something to do with my FTP or Apache configuration, but I have no idea where to start.

I installed DirectAdmin with custombuild 1.2 with the default settings.

Can anybody help me with this one?
 
Hello,

If you want to stick to CustomBuild 1.2, then you should switch PHP mode to suPHP, so you would not have permissions issue.

Or switch to CustomBuild 2 (search the custombuild 2.x sub-forum here for instructions) and install either mod_php+mod_ruid2 or any mode of PHP-CGI: suPHP, FASTCGI, PHP-FPM.

They all will make PHP scripts to work from a name of the site/account owner, so you would not need to use FTP to upload/modify files any longer.
 
Thanks zEitEr for the fast and useful reply! I've decided to switch to CustomBuild 2.0, but I'm wondering which PHP-mode is the best. I've read that suPHP works very good, but there are a lot of people who prefer using FastCGI instead of suPHP. Which one should I pick?
 
I'm not sure which one you should pick, I don't have enough information to suggest anything. For now I use suPHP, and I really like it.
 
we use mod_ruid2 and it works great, no need to change any permissions on files/folders and it runs as the user.
we do a bunch of WP sites, well for that matter many open source scripts and to me mod_ruid2 was a 'god sent' :)
 
Back
Top