Netscape 2.02 WordPress theme?

 

Netscape 2.02, possibly the finest browser ever seen. It had everything, frames, marque text, blinky stuff. Almost perfect, IMHO all browsers since have been a poor imitation.

I wonder if there’s anyone else out there who thinks so? Anyone who may have also knocked up a wordpress theme, to look like the old Netscape, cause that would be cool.

When I see a screen pic of netscape, I still get goosebumps. All that possibility of the internet, and what it will hold.

 

Screenshot of Netscape 2.02

 

Get your old versions here:

http://sillydog.org/narchive/full123.php

4PSA – tbrestore from Total Backup for Plesk- phew

 

I bought the 4PSA Total Backup for Plesk some time ago for my Plesk server. Of course, 1 week before I was due to retire the server, it crashed. I had to reimage, and then came the nail biting task of restoring it.
But I had a few errors, I installed the correct version of Total Backup, but when I ran

/usr/local/tbackup/tbrestore

I got the error

 

Error! Cannot cd to directory

‘Crap!’ I thought to myself. Googling didn’t help, nor did the 4PSA forums. Turns out the fix was that I had to specify a local backup directory through the Plesk control panel, for tbrestore to work.

It’s running now, it’s a slow, nail biting experience …..

Migrating mailboxes

 

Well, the simplest way, is just to pop3 all of the mail to a mailbox on a hard drive, then just upload it all to an IMAP set up on the new mailbox, very simple.
In fact, even simpler, is if they are both IMAP, and just drag all the mail from one to the other.

.htaccess problem on 1and1 (1&1) managed server and joomla/mambo

Ok, this one took me a while to figure out, after stuffing around with all sorts of .htaccess files, and being certain that mod_rewrite was in fact on, I was ready to give up. I was seeing:

Error 500, server config error and all sorts.
I knew I’d gotten some wordpress blogs running with SEF, so I just grabbed it’s .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

 

And, amazingly, it worked.

Let’s hear it for wordpress! ( written on a wordpress blog no less )

MySQL in and around PLESK really useful commands

I’m always having to look up and figure out all this mysql stuff online. So I’m going to save my favourite commands here. I’ll try to include versions where I can…. Stay tuned.

 

OK, exporting ( dumping from a MySQL database ) in Plesk

mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` –add-drop-table –add-drop-database  –default-character-set=latin1 mydb > db.sql

This bit `cat /etc/psa/.psa.shadow` grabs your PLESK MySQL password.

Add –add-drop-table if you’ll be exporting over an existing database or tables

Add –add-drop-database if you’ll be exporting over an existing database

mydb is the database you want to export from.

db.sql is the file you want to export to.

 

To import the file in to a database, connect to MySQL on your server

Go to the directory that has your db.sql file that you’re going to be importing

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -p

Then enter the password

If you’re importing in to a new database:
The type in USE mydatabasename
Where mydatabasename is the name of the database you’re writing over

now type source db.sql;

remember to put the semi colon in there,
You should see a whole lot of
Query OK, 1 row affected (0.01 sec)
Lines, which is fine. Just wait it out and your import should complete all by itself.

Interversal.com is born!

After, well many years now www.interversal.com is finally in a nearly completed state. I like the dark colours, and the fact that it covers more to do with consultancy than web design. Since I spend most of my time doing consultancy work, it felt good to flesh out exactly what I do, instead of just saying ‘stuff with computers’. So if you want something done in IT, let me know!

Plesk, really useful commands

Ok, I’ve made a text file of all those tricky commands I use on plesk FC2. Many of them have saved my bacon, or just been really useful

cat /var/log/messages | tail -200
What has the server been up to? This message shows the last 200 lines of the servers log, it’s good to track down all sorts like dns errors and ftp errors.

tail /var/log/messages -f -n 14000 | grep ‘Jun 1′
Show server messages from a certain date ( June 1st )

du -sk*
Disk usage, there’s all sorts of variants, but this one’s me fav
chown -R user:group *
Changes the owner of files recursively

chmod -R 755 *
changes the permissions of files recursively

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e’delete from PMM’
Fixes updater never stopping error

mysqlcheck -o -u admin -p`cat /etc/psa/.psa.shadow` –all-databases
Optimizes all tables

Here’s one for all those people having problems with character sets:
When using MySQL’s UTF-8 character set, besides setting the database character set to UTF-8, you must remember to send SET NAMES ‘utf8′ to MySQL prior to querying or inserting. Forgetting to do will surely cost you a substantial amount of hair, sleep, and sanity.
ps -aux
View all active processes

top
View processes live

/sbin/service httpd restart
restart apache

/sbin/service mysqld restart
restart mysql

tar -zxvf file.tar.gz
extract from a tar.gz file

http://forum.ev1servers.net/showthread.php?t=51695
Great place to see how to upgrade php and mysql

4psa total backup

Great backuping up tool for plesk. Much better than their scractchy one
Running plesk update from the command line
/usr/local/psa/admin/sbin/autoinstaller

Debug Spam Assassin
spamassassin -D -lint

Good Resource for SpamAssassin

http://wiki.apache.org/spamassassin/

Update SpamAssassin on Fedora Core 4
yum install spamassassin

To use a proper anti spam setup
remove psa-spamassassin ( rpm -e psa-spamassassin )
yum install spamassassin
install dcc, pyzor and razor ( http://wiki.apache.org/spamassassin/RazorSiteWide, http://wiki.apache.org/spamassassin/UsingPyzor)
http://www.vmailadmin.org/wiki/index.php?title=HOWTO_SpamAssassin#v310.pre

Restart Spam Assassin
/etc/init.d/spamassassin restart

Get rid of ‘config: not parsing, administrator setting: pyzor_options –homedir /etc/mail/spamassassin//.pyzor’ messages
mv /var/qmail/mailnames///user_prefs /var/qmail/mailnames///user_prefs_old
then restart plesk

If you get ‘/var/dcc/map is not private’ in the logs.
As root run
chmod 0600 /var/dcc/map

If ftp upload session times out or drops out.
Turn off windows firewall on your computer, or turn off the application gateway service.

View mail logs after upgrading to 8.1
tail /usr/local/psa/var/log/maillog -f -n 2000

/usr/local/psa/admin/bin/modules/watchdog/rkhunter –configfile /usr/local/psa/etc/modules/watchdog/rkhunter.conf –update
force update of rkhunter ( rootkit hunter )

Quickly Install Zend 3.0 and then fix php
cd /usr/local/src
wget http://www.eth0.us/files/ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz
tar -zxf ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz
cd ZendOptimizer-3.0.1-linux-glibc21-i386
./install

Now just hit enter a few times until it is done…
This guy is on the right track, what you need to do is cut out the [Zend] block of text from your php.ini file:

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
zend_optimizer.version=3.0.1
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

(usr/local/Zend/etc/php.ini as default) and paste it into a file in the /etc/php.d/ directory, you can name the file anything, i called mine zend.ini.

The problem arises because (like this guy said) ionCube will not allow php to run if theres a similar module loaded before it:

PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

and since ionCube is an include (in the php.d directory), and the zend code is pasted directly in the php.ini file, the zend code gets executed first. So as long as you move the zend code after the ionCube code, everything should work just fine… just remember, file includes with regards to php and apache are alphabetical, so if you name your file aaazend.ini it will still error out because it comes before ionCube-loader.ini (or whatever your ionCube file is called).

See what’s in the qmail queue:

/var/qmail/bin/qmail-qstat

Zip all files excluding some, use the -x option
zip -r httpdocs_after_lots_of_changes.zip httpdocs/ -x \*.zip
 

The Scary Web

I work with a lot of people starting out with the web.

They’ve got a cool business idea, something that they think the rest of the world should hear about, so they come to me with some dosh and an idea … and that’s where the trouble starts.

The internet is a tricky place. And setting up a bad site can be worse than setting up no site at all.

Sure, there’s heaps of helpful people who can advise how to improve your internet site. Where are these people? On the internet?

Where are all the useful FAQ’s? On the Internet

Where are the useful forums? On the internet

It seems that there’s a catch 22 going on. To learn your way around the internet, you need to know your way around the internet.

I really wish there were some resources I could point people towards that would help them.

1. Learn what’s available on the internet

2. Learn how to use internet resources – forums, blogs, google.
3 Learn how to communicate on the internet – email

4. Help people come up with a ‘realistic’ business plan for their ideas. Also pointing out that ‘just because you build it‘. people won’t necessarily come.

I think the internet/web is getting easier, but there are still so many people who could use a hand. We’ve all been there, trying to learn something new when everyone already there seems to magically know it all.

So, how to help?