Posts

Showing posts with the label credentials

Generate snapshots report of all VMWare virtual machines using PowerCLI

Ok, so I heard that you're tired of going to every virtual machines in your VMWare vCenter and checking for snapshots that need to be removed. VMWare has provided a solution that can ease your pain, It's PowerCLI . In short,  PowerCLI is a Windows PowerShell interface for managing VMware vSphere. It comes with a lot of useful cmdlets that will help you manipulate your VMWare infrastructure smoothly and painlessly (sort of) including automating tasks. Here is how I can generate a snapshots report of all the virtual machines in my VMWare 6 environment: 1. In a Windows Server 2008 R2 SP1 (or Windows 7 and above), install these dependencies: vSphere client v6 for windows: download here . Microsoft Management Framework 3.0 : download here (for Windows Server 2008 R2 SP1, I will download Windows6.1-KB2506143-x64.msu package) 2. Download and install PowerCLI: Download the latest PowerCLI here . It's PowerCLI 6 R3 at the time I write this article. 3. Open Powe...

W3 Total Cache error: FTP credentials don't allow to write to file /etc/nginx/nginx.conf

Alright, I guess all of you guys get this error at least once in your life just like me the other days. I was searching around the Internet and found a lot of how-to guides but It did not work for me. Finally, I found out what caused the error of my WordPress instance: I set the  Nginx server configuration file path  of W3 Total Cache (>>Performance >> General Settings) as /etc/nginx/nginx.conf which is not writable by the www-data user. So, I set the path to /var/www/nginx.conf (default), save the settings and everything is fine now. Awesome!