Frontpage, Wordpress

Note: Try it on your own risk or get an expert to do it.

Enable Exec() WordPress:

My Server and wordpress: I own a VPS self managed with WHM and root access. I run PHP 7.3 with PHP-FPM.

What to do?

To enable exec() wordpress

You need to edit /opt/cpanel/ea-php70/root/etc/php-fpm.d/username.domain.conf (be sure to replace username.tld with the appropriate username).

This can be done in two ways. Techie & Non techie way.

TECHIE:

Edit nano /opt/cpanel/ea-php70/root/etc/php-fpm.d/username.domain.conf vai SSH.

(be sure to replace username.tld with the appropriate username).

This assumes we are enabling these functions for PHP version 7.0. Simply change according to which PHP version you’d like by replacing ea-php70.

Simply remove exec and shell_exec from the following line: php_admin_value[disable_functions]

This will solve the issue and enable exec().

NON TECHIE:

Note: Be safe with the software you are going to install and use it at your own risk.

To enable exec() wordpress install ConfigServer Explorer (CSE) in WHM.

Login to WHM and open terminal. This is available under WHM–>Server Configuration.

Execute these commands to install ConfigServer Explorer.

cd /usr/src
rm -fv /usr/src/cse.tgz
wget https://download.configserver.com/cse.tgz
tar -xzf cse.tgz
cd cse
sh install.sh
rm -Rfv /usr/src/cse*

Post installation scroll down to bottom left hand menu in WHM. You will find CSE Installed.

What Next:

Note: Be very careful. If you edit or delete or modify any other files, then your entire server might crash.

Click open CSE and carefully navigate to /opt/cpanel/ea-php70/root/etc/php-fpm.d/ as said before open the correct PHP version your using.

In PHP-FPM.D folder you will find an .conf file with your domain name, open it.

Carefully score down to PHP_ADMIN_VALUE(Disable_functions) and remove exec and shell_exec and save it.

Kind advice: once you have done this, please move away from CSE. Do not try to explore too much. Trust me a same mistake will cost you a lot.

Once you save it exec will be enabled.

For more details about CSE check this https://www.configserver.com/cp/cse.html

enable exec()

Hope this helps you.
Thankyou
Vinoth Kumar

old dream creation

0

Frontpage, Wordpress

I had to shift my website to a new server. After shifting I got folder permission error wordpress. When i checked all the folder permissions for wordpress folders are correct and still I got the error. I googled a lot and nothing helped me. Finally decided to take action on my own.


What happened?


My problem was like I had an VPS with godaddy and it went to trouble. And as you all know, you ask support to godaddy, they will say so many reason to bill you. So I decided rather than wasting time on them, I brought a new VPS. And started to transferring all the accounts. After transferring in most of the wordpress account I got error.

” Check folder permission to write files or write images or something” and was not able to update any plugins.


What to do?


My sites were running on PHP 7.3. First what did was, under WHM–> MultiPHP Manager, I changed the sites with folder permission error to PHP 7.2 with PHP-FPM enabled. If you don’t have access to WHM, then you can do it in your cpanel ( Cpanel–> Software –> MultiPHP Manager). Now the error was gone. My wordpress was running on the latest release. still I reinstalled the update from the backend so that adaptive file can be rewritten. To do this go to you wordpress admin and under update menu you will find re-install now.

folder permission error in wordpress

and updated all the plugins. Once I am done with this, I went back to my PHP manager in VPS and updated all the wordpress site back to PHP7.3 FPM (Its very much advisable to run your sites on lates PHP version).

All the errors were gone and wordpress site speed improved all lot than before.

Folder permission error wordpress should have been solved for you too.

Thankyou, hope this article is helpful for someone.
Vinoth Kumar
Orange Art Factory

old dream creation

0