Remove Query String in Nginx

I’ve removed and uninstall the some plugins, and I would like to prevent it display some error or 404, so I apply this way to nginx.conf redirection. If you want to redirect permanent, then you can use 302.

nginx: [emerg] open() “/usr/local/directadmin/data/users/apache/nginx_php.conf” failed

Upgarding DirectAdmin, and hit with this error. What I found from Google 1.60.1 fixes it (it was backported to 1.60 about an hour ago too, so, those latest releases not affected). It should have affected boxes only with additional free IPs and nginx. I have updated directadmin to latest version 1.61 but still Nginx not Continue reading “nginx: [emerg] open() “/usr/local/directadmin/data/users/apache/nginx_php.conf” failed”

System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.

I don’t like error, but I have to fix the error, I note down here to do reference. I’m using CentOS 7, I think cause by upgraded from PHP 5 to PHP 7. I’m using DirectAdmin. What I found from internet The mcrypt extension has been abandonware for nearly a decade now, and was also Continue reading “System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.”

How to change pkgcloud Openstack from Keystone API v2 to v3 for OVH

From my previous post, it gives example for php-opencloud for Openstack. You may using pkgcloud for nodeJS, so here is the example settings that you may need. If you are using pkgcloud and was using API v2, you should update the code to v3. The documents doesn’t provide detail for the setting on OVH. So Continue reading “How to change pkgcloud Openstack from Keystone API v2 to v3 for OVH”

How to change php-opencloud Openstack from Keystone API v2 to v3 for OVH

If you are OVH customer and you are using the OVHCloud, you may receive email as below. Email from OVH Dear customer, A few weeks ago, we notified you by email[1] that we are discontinuing v2 of the Keystone API on 24th March 2020. All users of the Keystone API must now use version 3, Continue reading “How to change php-opencloud Openstack from Keystone API v2 to v3 for OVH”

How to remove node_modules in git

You may accidentally add the node_modules or you forgot to add the node_modules directory to .gitignore list, no worry, you may remove it after you pushed to the git. First, add the node_modules in to the .gitignore After added the /node_modules and save it.

How To Get Parent Category Name In WordPress

It is not difficult to get the name using the build in function from WordPress. You may use this for build your own plugin or list out the related post using the category data from the parent category. Here is the PHP Code that can display out the name of the parent category.