Migration from CentOS 6.8 to Centos 7.2

Recently I’ve had to migrate a Digital Ocean Droplet from CentOS 6.8 to Centos 7.2. Even though my sys admin experience has been limited and my abilities in the area remain largely unexplored, after taking the Linux Foundation’s Essentials of Linux Administration Course, I felt confident enough to write a script that will automate the process for me. Continue reading “Migration from CentOS 6.8 to Centos 7.2” »

How to convert a csv string to a multidimensional array in php

I often like to setup special debugging scripts as part of my development process. Sometimes I need to open up a spreadsheet and setup a table of values that I then use to pass to the scripts that execute some functions, spit out some output and I can make sure that no errors occur — call it LazyMan Testing Method.
Continue reading “How to convert a csv string to a multidimensional array in php” »

Password Protect Apache’s Server-status Page

The docs show how to configure access control using an environment variable with mod_setenvif. Using the technique described in the docs, I was able to password protect apache’s server-status page.

<Location /server-status>
    SetHandler server-status
    SetEnvIf Request_URI "mypassword" continue=1
    Order deny,allow
    Deny from all
    Allow from env=continue
</Location>

Now only you can access the page by going to: http://server.com/server-status/mypassword/
The downside to using the Request_URI attribute is that the password will be visible in your browser history.

Amado Martinez

I’m still around. I listen to Joe Rogan Podcast. I watch Dexter. I’ve been lifting weights and focused on the external world. I’ve set up a one-man company Sofus Web Soluciones SCоформить кредит онлайн. I’m still working exclusively for a single client but hopefully I can get a side project rolling as soon as I finish the super amazing multisite cms platform that I’ve been developing for almost a year.

Cheers.

Amado Martinez