Using openconnect to connect to a VPN

If you need to connect to your organization’s VPN (college, company, etc) and your preferred operating system is a UNIX based operating system such as Ubuntu, then you might have a hard time with the installation process of the third party VPN software. Take VCU for instance (my college). They use Cisco Anyconnect as the VPN software so that you can connect to the school network when you are away from campus. This software installs well on Windows, and probably mac, but the Linux installer they provide is not one that works well on every Linux distribution.
Fear not, there is an open source software called “openconnect” that does the same job and it’s really simple to use and install. In fact if you are running an Ubuntu distribution all you have to do is to run the command:


 $ sudo apt-get install openconnect


Once installed, in order to use it you run the command:

    $ sudo openconnect

    type user name

    type password 1

    type password 2


In the case of VCU it would look like this

    $ sudo openconnect

    (my vcu-eid)

    (my school password)

    (code obtained through the duo app)



How to solve http 500 error when installing WordPress / How to fix wp-config.php permission problem

If you are like me and just tried installing WordPress on a server such as an AWS ec2 or any other server that you can access, and had trouble in the installation process this post might help you.


Upon entering the database setup information in the initial step, and you click the submit button you get along the lines of:

“Sorry, but I can’t write the wp-config.php file’


To solve this a possible solution is to create the file manually following the instructions provided under the error message. They tell you to create the file wp-config.php manually and to paste the text they show you. This may or may not solve your problem. In my case it did not.

The reason why this didn’t solve my problem is that my files did not have the same user name and group name that apache uses. To find the username for apache in your system you can run the command:

cat /etc/apache2/envvars | grep USER

and for the group

cat /etc/apache2/envvars | grep GROUP


in my case the output for both of these was www-data 

The next step is to change the user name and group name for your apache’s root directory (or “localhost directory” as some call it)

in my case (ubuntu 16.04) it’s /var/www/html

sudo chown -R www-data:www-data /var/www/html

Then restart your apache server just in case

sudo service apache2 restart

After this if you try to run the config step one more time, you should get the success message, and then you can finish the installation process.

Good Luck!