Prevent Direct Access To PHP

Written by bsdman on 03.04.2010 | Linux

Not sure if this is the correct way of doing things (as I’m still “learning” PHP), but it worked for me.
Basically I wanted to include a php file, but not allow the user to be able to directly go to that same file.
Example: index.php calls upload.php. Blocking the end user from going straight to [...]

Useful DNS Stuff

Written by bsdman on 02.26.2010 | Miscellaneous

DNS is great. Who wants to remember numbers when you can remember something easier?
http://it.thelibrarie.com or http://208.113.245.198? Well technically that’s a bad example as this site is running as an apache virtual host (the header file tells the server which site you’re actually look for). But you get the idea.
So, how many sites [...]

Find All Workgroups and Domains On Your Network

Written by bsdman on 02.26.2010 | Microsoft

Customer had complained he was seeing his domain (we’ll call it domain.tld just to be on the same page), several workgroups, and several other connections he wasn’t sure about.
So I fired up my trusty XP virtual machine (workgroup) to view all the workgroup computers in the Microsoft Windows Network (My Computer — My Network Places [...]

Secure PHP Upload Directory

Written by bsdman on 02.17.2010 | Linux

I was given the task to setup, configure, and manage an external facing apache web server.
So I turned to my trusty Ubuntu Server 9.10 x86 CD, installed it and then ran the updates. Yes, I put LAMP on there.
After all was said and done, I grabbed my trusty internal-only php uploader script. Unfortunately [...]

Split Giant ISO Into Smaller Files

Written by bsdman on 02.01.2010 | Linux

OK, so I uploaded a 3GB ISO file to my site for future downloads. Unfortunately for me, whenever I attempted to download the file I was met by:

Forbidden
You don’t have permission to access /path/to/file/nameoffile.iso on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Dumb. [...]

VMWare Server Ubuntu 9.10

Written by bsdman on 02.01.2010 | Linux

OK, I had to install VMWare Server 2.0.2-203138 onto a 9.10 fully-up-to-date 32bit server. 9.04 and before it was easy, but there’s something added onto 9.10 to make it a little more difficult to install.
What we’ll be doing:
Update your server
I first downloaded the vmware-server from vmware.com.
Create a script called vmware-server-2.0.x-kernel-2.6.31-14-install.sh
Run the script
Really? 4 [...]