Wordpress Platform Almost done

June 30th, 2009

This platform will serve me in more than one way

1- Auto Update Wordpress
I can update one place and all blogs get automatically updated.

2- Extra Features
Modifying Wordpress will become worth the hassle since i can compare changes in newer wordpress releases and implement them, this way i do not have to delete all modifications every time i update wordpress.

3- Speed
A few techniques will allow me to implement them once ad have them run for all blogs for speed, Now things should be faster

4- Automation
When i need a new blog, I click a button

5- Sharing
The plan is to allow everyone to use the platform, I will have to set some limits on the amount of files, But surely not on the SQL or any other resource

It should be done later today, So stay tuned

USB 2.0 for old computers

June 20th, 2009

I got myself one of those neat USB WiMAX Motorola USBw 100 (USBw 35100 to be exact) from a new provider in Jordan MADA owned by Fastlink (Now ZAIN), it is nice and everything, But as you may well know, the thing is USB not eithernet, And most routers are not very USB friendly

Although i like it because it is USB and is portable since it requiers no power adapter and is relativly small, it is also cheaper, the USB goes for $140 and the CPE with an eithernet port is for $280.

Anyway, the limitation is connecting it to the LAN, And another limitation yet to be resolved is a linux driver, so here is what i did

NOTE: The secont eithernet card is because this is a headless computer and i want to be able to use remote desktop even when the internet is disconnected, So most of this is really not important, I will provide a drawing of my setup in no time so you can understand how it works since i wrote this in a hurry.

1- An old celeron (1GHz) computer which proved to be just the right speed (CPU Load is at 50% all of the time, and i don’t know if it spikes every now and then),

2-USB: The TUSI-M Motherboard comes with a USB 1.1 SIS7001 USB controller that crashed the system often, i got a 5 port (4 external 1 internal)

VIA
VT6212L
0745CD TAIWAN
23B7033891

USB PCI controller for around $6 that did the trick of fixing the USB just fine, and the expensive part was a Windows XP OS.

3- An extra Eithernet NIC card on the PCI Bus (The first is built into the motherboard)
4- A Linksys WRT54G router (Any router will do, Wireless or not)

Hardware Setup

I intslled the WiMAX USB adapter on the PC (To the new USB controller), the second NIC (eth1 on linux) to the router’s internet port (IN Port or The separate Ethernet port on the router), Eth0 (The built in NIC on the motherboard) connected to one of the router’s LAN ports.

Software Setup on the router
I logged into the router and set it to use DHCP to obtain an internet connection.

Software Setup on the computer
I logged into the computer, Open Control Panel -> Network Connections -> And you should find 3 eithernet adapters.
1- The Motherboard’s Built in card that is connected to one of the router’s LAN ports
2- The extra NIC card we installed that is connected to the router’s (Internet) port
3- An Ethernet adapter named Beceem Communications Tarang 3

So, right click on the one that reads Beceem and open the Advanced Tab

Under Advanced, you will find “Allow other network users to connect through this computer’s internet connection”, Chose the Second Eithernet adapter from the list above (Connected to the router’s internet port), In my case that would be Local Area Connection 3, Uncheck the Allow users to control or disable the shared internet connection, Use the Moto tools to connect and you are done !

Wordpress Hacked

June 14th, 2009

So 2.8 is out, But 2.71 is getting hacked and i can’t verify that 2.8 addresses the issue !

From what i see, it seems it is a SQL injection, Nothing for sure, but since the themes were not affected, it seems it is a SQL injection

What to do

First, if i were you i would not use wp_ as the table prefix, wherever possible, CHANGE IT to some other prefix, and preferably not a 2 letter prefix

Hacked can mean a more secure wordpress over time, but by that time, it would have developed the bad reputation for security vulnerabilities that PHPBB once had (And lost a market share due to), And prompted people to develop alternative software

As for me, i know of how many people just love the clean wordpress, and i will be developing a platform that is more secure (Hosted Wordpress), this way i don’t need to update my wordpress installations one by one, and most probably i will be giving the service away to those of you who want some managed wordpress.

The hacked websites i have seen today all have no posts (Posts were deleted), the the title of the website was “Hacked by xxx”

Anyway, let me go make that shared platform and let you guys know when it is ready !

Take care for now

3 letter domain name giveaway

June 7th, 2009

If you have 5 or more Domain names at easywebdns.com, You qualify for a free 3 letter domain name from the domains listed below.

All you need to do is email the names of 5 of your domains to freedomain [a.t] easywebdns [d-o-t] com along with the three letter domain you are interested in, And wait for our responce

If you like one of the domains listed, Act fast.

Offer valid while 3 letter domains last.

L4J.NET
L4Q.NET
L4V.NET

L4Z.NET
N4G.NET
N4J.NET
N4V.NET

N4Z.NET
D4Q.NET
E4Q.NET
F4Z.NET
G4K.NET
G4V.NET
H4Q.NET
I0E.NET
I8J.NET

J4V.NET
K2J.NET
L2Q.NET
O2Q.NET
O2Y.NET
O4J.NET
O4Q.NET
O4V.NET

O4Z.NET
P4Q.NET
P4V.NET
R2Q.NET

T4J.NET
T4Q.NET
U2H.NET
U2J.NET
U2Z.NET
U4J.NET
U4O.NET
U4P.NET

U4V.NET
V2Y.NET
V4K.NET
V4Q.NET
V4Y.NET
V4Z.NET
Q2L.NET
Q2V.NET
Q2Y.NET
Q4J.NET
Q4O.NET
Q7X.NET
Q9X.NET
J2Q.NET

G2Q.NET
G4Q.NET
P2J.NET
Q1U.NET
Q3U.NET
V2J.NET
I8O.NET
R4X.NET
J2Q.NET
N4X.NET
L4X.NET
O4X.NET
U4Q.NET

The Domain Buying Guide

May 28th, 2009

Ever since i started buying domain names many many years ago, they have always advised me to get the .COM, .NET, and .ORG, where the truth of the matter is, i should not have got them, they simply wanted to sell more .NET’s and .ORG’s and i believed them about all the benefits of having them all

Now that i know better, i only buy .COM’s and will not buy anything else anytime soon, And to help all the people who really have a hard time deciding on a domain name, this guide is for you.

Domain Name Buyer’s Guide

There i explain a few things on how to buy domain names, How to chose a Top level domain (in short, go for the .com nothing else and nothing less), How to chose a second level domain (YourSite.COM), and a brief intro on how to use them right away with the free tools that come with them, I have also explained what a domain registration is So enjoy

Linux EXT3 File System commands

May 24th, 2009

UPDATE: This post has been added at easywebdns : recovering ext3 hard disks

So, here are the tools you need

1- Checking a linux partition for bad sectors / Bad Blocks without deleting the data

badblocks -o /path/somefiletowriteto.txt /dev/sdb1

this will do a check and write the bad block numbers to a text file

If you want it to test the disks hard but you are OK with deleting the data (Say after you dd_rescue), then try the -w switch

2- fsck /dev/sdb1 , the all famous, need i say more ?

3- tune2fs

tune2fs -O ^has_journal /dev/sdb1

remove the Journal (Converting ext3 to ext2 file system)

4- Mounting a disk: mount -t ext3 /dev/sdb1 /adirectory

5- debugfs <- use it in Read only more, this thing is like brain surgery, 1 mistake and your FS is playing chess in heaven with all the other dead disks

6- dd_rescue /dev/sdb1 /directory/mydisk.img

7- Running fsck on a disk image

fsck -y /path/mydisk.img

8- Mount the image

mount /pathto/backup.img /mountpoint/data

this is a nice link for you http://www.linuxjournal.com/article/193 that already has info about the stuff i mentioned here

Those are probably the most common, will add more when i remember them

Godaddy Wild West Domains API Script

May 24th, 2009

So, for some reason i had to write a functional script that talks (PHP Via SOAP) to Wild West Domains API for domain registration and other services (For fully branded website), And i was wondering if there is enough interest so that i improve it and sell it.

Things that come to my mind

1- This could hurt Domain Reseller Direct, where people get a Turnkey Domain reseller account in addition to PHP tools to customize there websites (we add free scripts for them, and they can install them on there website or we install the scripts for them) i am not sure it is legal to tell you the details ! (I never thought i would ever have to say that), but that’s the system, what can (or should i say Can’t) i say.

2- If i was to charge for the script, i think it would end up being sold for $500 a copy, that won’t make me much money, but when i put effort into scripts, i like to maximize there use, either to make money or to give away, but again it is a loosing deal and i know it in advance.

3- To allow people to use the script, i have to create extra modules for paypal, 2CO, and other credit card gateways, this is an easy but tedious task, Do i have the time for this ?

4- I know many people want such a script, but Wild West Domains / GoDaddy API is not a complete API, it does require some pages to run off there servers, and basically that puts us back to the solution we are offering at Domain Reseller Direct, but at a much higher cost.

I really want to hear your thoughts on this, and if you are going to comment, please tell me if you would be interested in such a script so i can have that data to process with my “Handy capped business logic”

Awaiting your response

No Time to blog, i need to check the logs

May 2nd, 2009

So, i have not been blogging HERE much lately, the reason is that i am trying to update and upgrade our service to the extreme, The hosting market is getting really crowded and some of the new guys are really talented, So the old dog wants a place in this new school Ajaxified universe, So now i am blogging everything in the open.

One of my friends told me, You can’t blog about your trade secrets, it is insane, But i think that knowledge should be open, and if a competitor is going to be reading my blog, he or she will be a competent competitor anyway (Since he or she is reading to begin with), So i think it is all the same.

At the minute, Plans and things that are done will be blogged about here at my Web Hosting Administrator’s Blog, I have not had the chance to tweet than blog yet, but the blog is working for me up to now !

APC config files

April 22nd, 2009

Tis page is veing updated at APC Debian

Once you activate APC from PHP.INI, you should probably use some directives to make this magical invention work.

For example, APC and smarty templates don’t go together bery well, SMARTY caches it’s results into PHP files rather than reparsing them, if APC is set not to check for changes in files, it will simply not load the new SMARTY template untill the APC cached version is gone.

But APC is such a beuty, and it translates to lower load on your server.

First, you should understand that on a big PHP server, many changes need to be done.

First, APC data lives in shared memory, By default on a linux system this is usually 33 Megabytes, not enough for one big PHP program, you need to increase it

1- How much shared memory is there now

cat /proc/sys/kernel/shmmax

2- Change that to something suitable

vi /etc/sysctl.conf (Reboot don’t you think )

remember, Don’t go too high, if your system gets low on memory and starts swapping, you are out of luck

3- Make sure you know what the settings here do… what you can change for directories and what you can’t etc..

Directive Description Use Warnings More Notes
apc.cache_by_default
apc.coredump_unmap
apc.enable_cli
apc.enabled
apc.file_update_protection
apc.filters
apc.gc_ttl
apc.include_once_override
apc.max_file_size
apc.mmap_file_mask
apc.num_files_hint
apc.report_autofilter
apc.rfc1867
apc.rfc1867_freq
apc.rfc1867_name
apc.rfc1867_prefix
apc.shm_segments
apc.shm_size
apc.slam_defense
apc.stat
apc.stat_ctime
apc.ttl
apc.user_entries_hint
apc.user_ttl
apc.write_lock

DRM for paper does not work – Zinio is a pain

April 8th, 2009

So, i got some magazines from ZINIO, and boy is that annoying, I still don’t get what they are trying to do and what for

You want people Not to circulate it, Will that really work ?

If you can print, you can print to PDF right, that makes it circulate, if you can print you can also print to JPG which is even easier to circulate !

Want to protect the text from making it to the blogs ? You can’t

Here is a very quick way that i can convert ZINIO files to PDF, MS Word, or whatever other format in a few minutes

NOTE: I tested this and i know it works, i was investigating the efficiency of the ZINIO approach

Except for the printing, 2 and 3 and 4 can be done in a batch

1- Print to JPG’s

2- Import the JPG’s into OMNIPAGE

3- Convert to text and images with OMNIPAGE

4- Save all in whatever format you please, including text PDF, MS Word, Text files, whatever you want and OMNIPAGE permits

So, the moral is, if someone wants to take your magazine to the web, they can, they can actually do it with the paper edition and a scanner

Sollution:

Accept the fact that it is impossible to fully protect, Use secured adobe PDF, Adobe protection is a fair medium between usability and protection

Now, Hope that no one takes it to the web

I hope adobe will make a website like ZINIO and offer there ser vices to publishers, The zino reader is hell

I blurred the image on this so that they don’t come after me for copyright or something, but look at the reader

ZINIO reader user interface

ZINIO reader user interface

Searching is very slow, Page flipping is very slow on my Quad Core, printing is either no printing or 2 page printing at a time, it is real hell

Even worse, You zoom in, then the hand tool will also function to zoom out, so you need to pay close attention in order to read a simple Home Improvement magazine, They just can’t be serious