Once in a while every bigger website is relaunched. In order to deploy bigger changes without bothering your visitors with strange behaviour during a data migration, updates and the like, you should use Apache2′s mod_rewrite. Just put the following lines in a .htaccess file in your webroot directory and all traffic (also deep links to [...]
Archive for the ‘Serverstuff’ Category
Filed under: Security, Serverstuff
Social Tagging: cli • Security
Here is a link of a site (www.md5.rednoize.com) that performs a search on common md5 hashes – in case you forgot your standard password: Make yourself a md5-hash using PHP ;) to test it: marco@africa:~$ php -r ‘echo md5(“marco”).”\n”;’ f5888d0bb58d611107e11f7cbc41c97a
Filed under: Linux, Problems, Serverstuff
Social Tagging: Debian • Linux • php
I was having trouble with a server running Debian 4.0 (etch). Using the standard sources in the /etc/apt/sources.list the supported PHP5 version was 5.2.0-8+etch13 which contained a very annoying bug for my application. A daily running script – let’s call it the Importer – regularly exited randomly with a “Fatal error: Out of memory (allocated [...]
I have just discovered an issue if you store serialized objects into MySql. At first I used fieldtype TEXT. If in this case somebody edited another field of such a record with phpMyAdmin and pushed the save button, the stored object in that record got currupted and the object could not be deserialized and instanciated [...]
Filed under: Problems, Serverstuff
Social Tagging: 404 • http
I have an individual CMS running for a customer, who can edit his events, news etc. in a typical admin area. Each of the items had an expiry date. On any call to a deep URL to one of the expired items (e.g. from Google search results) it would make a redirect to the custom [...]
On the command line if you close a console with a running job, you kill the job. This is different with the tool ‘screen’, where you can attach and detach from a ‘screen’ without terminating it. You can even start a job in a screen on another machine, detatch, travel somewhere else and re-attach to [...]
Since I am doing more and more stuff on the commandline, I noticed that sometimes I just wait for some task to finish to do a next step in a sequence to accomplish a certain goal. What if a running task would take an estimated 3-8 hours and it is Friday afternoon? In this case [...]
On my network I have a Buffalo Terastation as network-share for backups. Today I figured out how to mount it on another Linux-box (Debian Etch) so I could do file operations directly on my backup. The following worked out for me: Created dir /mnt/terastation2 Added the following line to /etc/fstab //TERASTATION2/SHARE /mnt/terastation2 smbfs username=marco,password=,uid=marco,gid=businex,dmask=707,fmask606 And [...]
Goto: http://www.runyourownserver.org
If you have some customer projects running on webservers (must be accessible to you via ssh) and you would like to regularly backup critical data like mySQL databases or filestructures this post might be useful for you. All you need is a linux box connected to the internet. (1) Take a look at rsnapshot: http://www.howtoforge.de/rsync_incremental_snapshot_backups [...]





RSS