I changed the permalinks to be pretty but it breaks my site.
I updated the web.config with the right code but its still not working.
These are things that are commonly found when googling around about pretty permalinks.
Many of the message boards and blogs will tell you that wordpress is meant to run on Linux. Well it works great on Linux, arguably more predictable and more supported. But its also supported on mac and windows. If (for whatever reason) you need to run this on a Windows IIS server then setting up pretty permalinks will require messing with the web.config file for the Microsoft URL Rewrite Module. The WordPress Codex has everything you need to do this on Windows (and linux too).
The one thing that kicked my but for a couple of hours, and isn’t well documented, is that the web.config files don’t nest very well. The site I was working on was in a folder 1 level down with its own web.config file. Long story short, I figured out that there was a web.config file at the root level of the web server that was interfering with the URL rewrite. I changed to pretty permalinks, filled out my site’s pretty permalinks properly, and got 404 errors on all the pages. Once I removed the web.config file from the root level, my wordpress site began working properly, and gave me my pretty permalinks.
Stornext is a shared storage environment that offers high speeds and large sizes that scale independently.
Apple licensed StorNext from Quantum and re-branded it as Xsan. So its very common to hear that “Xsan is StorNext.” But StorNext is not Xsan. (more…)
You’ll have to take a look at the currently unmet business needs to help determine what will be the most benefit to the company.
Basic administration ideas
- Monitoring: setup Nagios to monitor ping, disk space, cpu usage, on all network infrastructure
- Monitoring: setup Cacti to monitor disk usage with historical graphs
- Documentation: are all the server configurations and network information stored in an easily accessible, editable format (think wiki)? If not, roll a wiki instance on your server and document everything. Mediawiki is free, and okay. Atlassian Confluence is better, and not much more than free.
Monitoring and documentation are the two most critical administrative tools. These are the two pillars of an environment.
If you grew up as an IT guy on Windows, then you’ve been done a disservice. It’s okay, you can unlearn the evil. Here are some key differences that will help you become acclimated to Linux:
- Troubleshooting: there’s always a log file, for every service and application in linux. Having a problem? Consult the log file. Can’t find the log file? Look in the startup script for the application.
- Troubleshooting: learn strace. strace is the trace of system calls executed by a given program. You can see what files are opened, written to, etc, and this is a critically important tool for troubleshooting issues.
- Troubleshooting: use “bash -x”. Running a bash script with the “-x” option shows you the execution line by line, and is very valuable for troubleshooting as well.
- Troubleshooting (advanced): gdb (gnu debugger). You can run a binary program with gdb and inspect the call stack, see what’s stored in memory, and do other sweet shit.
- Troubleshooting tools: netstat, ps, top, lsof, dig, nslookup, ping, tcpdump. Netstat is your eyes into what program is listening / bound to what port. ps and top let you know what programs are running and what their memory usage is. lsof lists open files, and tells you what programs are accessing them – very useful. dig, nslookup, ping, and tcpdump are all handy network troubleshooting tools.
- Learning: man pages. Always read the man pages when you’re learning a new command, or try to. Sometimes they’re really very indiscernible, but often times they are not, and it’s faster than lazily googling for your quarry.
- Learning: patience. Breathe. You can do it, but you’ll have to take it slow.
- Learn what an inode is. That’s important.
- Next level shit: learn Python. Another way to put this: learn linux, and Python, and get a few years (5-8+) under your belt – you’ll be earning 6 figures as a Unix engineer for some fancy fucking company.
Above all, remember: in Linux there’s almost always a semi-sane answer for what’s happening. You just have to know where to look. Log files, bash -x, strace, etc. The best way to learn is to setup some basic services and get your learn on. Try BIND, NFS, Samba CIFS, Nagios, Cacti, SSH via PKI, and then come back if you’ve done all that.
Oh, and turn off SELinux at first. That’s gonna be a real pain in the ass while you’re learning. Then turn it back on when you’re ready to do some security training.
Take some online (self-paced) redhat courses. These can be a little rote, but they’ve got value. Copy and paste the material into an electronic notebook for later use (http://evernote.com).
Hell if you can do all that, I’ve got a job for you.
I was attempting to create an alias interface (aka sub interface) to have a second IP address on the same physical interface. (more…)
Centos6/RHEL6 don’t have the System > Administration > Login Window menu item. So there is nowhere in the GUI to enable auto-login of a user. If you have a single-user environment and aren’t worried about anyone approaching your console then this is how you enable the auto login.
You need to edit the file at /etc/gdm/custom.conf
You need to edit the daemon section of the file and add or change these:
Then you need to reboot and you’ll be logging in fine.
Credit on this goes to Sudhaker: http://sudhaker.com/23/centos-rhel-6-autologin
Charles Edge has a great how-to for adding an Xsan client to a Stornext SAN here:
http://krypted.com/xsan/adding-xsan-clients-to-stornext-environments/ (link broken)
This will get you setup if you have no clients on the SAN, and frankly its probably the “right” way to do it. But there is a quicker way if you already have some Xsan clients attached and you just want to add more. (more…)
(verb) – Shoot Myself In The Head (more…)
StorNext Replication is still in its infancy, but its a very powerful tool. Its also a very confusing beast. Unfortunately, using the replication policies requires a great deal of knowledge on how it works from a technical standpoint, however very little of this is actually documented and available for administrators (even within the Quantum training courses). (more…)
You can use the X window system to ‘remote’ into another machine. In OS X it launches X11, as this is the X window client for Mac. What is actually happening is the remote system is sending system information to your local machine and allowing that to render the desktop and graphical views. This is opposed to the way VNC or Apple Remote Desktop works, by taking that already rendered image and compressing it down to sent it over the pipe. The ‘X -query’ tends to have better performance on remote systems because you aren’t sending full screen graphics, only remote system calls.
To do this, use the following command:
X -query I.P.Add.ress
Lion ships with the same version of rsync as panther did. Version 2.6.9 is great and all, but its a bit outdated. The newer versions of rsync allow you to do some better stuff, and along with some patches for OS X (by Mike Bombich) it is a great tool for Xsan volumes as well. (more…)