Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Saturday, April 29, 2006

FreeBSD Foundation Announces Java JDK

BOULDER, Colo., April 5 (PRWeb) -- Today, the FreeBSD Foundation announced the availability of the official Java Runtime Environment (JRE) and Java Development Kit (JDK) for FreeBSD. The Foundation negotiated a license with Sun Microsystems to distribute these FreeBSD binaries. The binaries are based on JDK 1.5 and work with the official FreeBSD 5.4 and FreeBSD 6.0 releases on the i386 platform.

The FreeBSD Foundation provided financial support for Java development, funded the certification process, and negotiated license and trademark agreements to distribute pre-compiled binary packages of the Sun JDK and JRE.

"The release of official JRE and JDK binaries based on Sun's latest partner sources provide end-users and developers alike with confidence that they can use and create Java applications on FreeBSD with the same degree of portability, robustness and stability that they have come to expect from other supported operating systems," said FreeBSD developer and member of the BSD Java Team, Greg Lewis.

"In doing so, the FreeBSD Foundation has placed FreeBSD on a par with other enterprise operating systems for Java based web services," Lewis said.

This official release is easier to install and less buggy than the existing jdk15 port, Lewis said.

"With appropriate licensing from Sun, OEMs can now bundle Java applications with a JRE or JDK for distribution on FreeBSD," said Deb Goodkin, Director of Operations for the FreeBSD Foundation.

"The FreeBSD Foundation is very pleased to be able to continue to bring Java support to the FreeBSD operating system platform, which has been made possible through generous donations to the FreeBSD Foundation," said Robert Watson, president of the FreeBSD Foundation.

"We are committed to continuing to enhance Java support on FreeBSD, including certified releases for FreeBSD 5.5, FreeBSD 6.1, and added support for the amd64/em64t hardware platform," Watson said.

More information and downloads are available via http://www.freebsdfoundation.org/downloads/java.shtml.

Information on donating to the FreeBSD Foundation may be found on the Foundation website at web www.freebsdfoundation.org.

About The FreeBSD Project

FreeBSD is a complete and advanced Unix-like operating system which can be used as a secure and high-performance workstation, network server or firewall. FreeBSD is developed by a team of over 200 programmers and documentation writers. Over 13,000 third-party software suites are freely available for quick installation from the FreeBSD Packages Collection. More information about FreeBSD is available on the web at http://www.FreeBSD.org/.

About The FreeBSD Foundation

The FreeBSD Foundation is a 501(c)(3) non-profit organization dedicated to supporting the FreeBSD Project. The Foundation gratefully accepts donations from individuals and businesses, using them to fund projects, which further the development of the FreeBSD operating system. In addition, the Foundation represents the FreeBSD Project in executing contracts, license agreements, and other legal arrangements that require a recognized legal entity. The FreeBSD Foundation is entirely supported by donations. More information about the FreeBSD Foundation is available on the web at http://www.FreeBSDFoundation.org/

FreeBSD Interviews

Today I found a blog that offers MP3 of interviews with various FreeBSD developers.
 
 
I am downloading few of the FreeBSD interviews.
 
Now most of my servers are FreeBSD. But I am thinking of Linux. One thing that made me thinking about Linux is lack of support from various data centers. Only few data center support FreeBSD. Some even charge extra for FreeBSD installation, I am afraid how the support will be.
 
One of my server AMD 64 bit 3800 CPU, I got FreeBSD 6 i386 installed. Having 32 but OS running on 64 bit CPU will reduce the performance. Most data centers will  install proper OS if its Linux as its more popular.

Monday, April 17, 2006

Warning: Group directive in requires SUEXEC wrapper.

On a Cpanel server with PHP running in suexe mode, PHP sites stoped working with internal error after the owner of the server made some changes in the server to make it secure. He told he have done
 
chown -R root:root /usr/local/apache
find /usr/local/apache -type d | xargs chmod 755
find /usr/;ocal/apache -type f | xargs chmod 644
chmod -R go-r /usr/local/apache/conf
chmod -R go-r /usr/local/apache/logs
 
I stoped and started the apache, got lot of errors
 
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
Warning: User directive in <VirtualHost> requires SUEXEC wrapper.
Warning: Group directive in <VirtualHost> requires SUEXEC wrapper.
 
After trying few permission change, i could not get apache working.
 
So reinstalled apache with
 
/scripts/easyapache
 
After the installation, on restarting apache everything went well, all sites start working as normal.
 

Saturday, April 15, 2006

Installing Zend Optimizer v3 on Godaddy Plesk VPS

Today i installed Zend Optimizer v3.0.0 on Godaddy Plesk VPS.
 
You can download Zend Optimizer from
 
 
For GoDaddy VPS, i downloaded ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz
 
 
Download the file
 
 
Un compress the file
 
tar -zxvf ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz
 
Change to the source directory

cd ZendOptimizer-3.0.0-linux-glibc21-i386

 
Install it
 
./install

 
Now it will ask some questions, just read the instructions and follow it.
 

Tuesday, April 11, 2006

Open DNS servers Fail

Today a clients name servers show following error on dnsreport.
 
Open DNS servers Fail
 
ERROR: One or more of your nameservers reports that it is an open DNS server. This usually means that anyone in the world can query it for domains it is not authoritative for (it is possible that the DNS server advertises that it does recursive lookups when it does not, but that shouldn't happen). This can cause an excessive load on your DNS server. Also, it is strongly discouraged to have a DNS server be both authoritative for your domain and be recursive (even if it is not open), due to the potential for cache poisoning (with no recursion, there is no cache, and it is impossible to poison it). Also, the bad guys could use your DNS server as part of an attack, by forging their IP address. Problem record(s) are:
 
Server xxx.xxx.xx.xxx reports that it will do recursive lookups. [test]
Server xxx.xxx.xx.xxx reports that it will do recursive lookups. [test]
 
The problem is fixed by adding following to /etc/named.conf and restarting named.
 
recursion no;
allow-recursion { ADD_LIST_OF_YOUR_IP_RANGES_HERE; };

Monday, April 10, 2006

BizHat.com Alexa Rank Reached 7,565

Today www.BizHat.com Alexa Rank Reached 7,565
 
Last two months, the traffic is increasing. May be i should touch 5,000 in next two months. Presently popular web site of Kerala have an alexa rank of 5,xxx. My aim is to get a rank in the range 5,xxx. Once i reach this, aim may go down for a better rank :-)
 
 

Saturday, April 08, 2006

Compiling PHP with verisign PayFlowPro on cpanel server

To compile PHP with custom modules, you need to run /scripts/easyapache with required modules.
 
After the Apache installation, go to folder
 
# cd /home/cpapachebuild/buildapache/
 
Now change to the PHP directory, name of the directory depends on which version of PHP you installed with easyapache. I selected PHP 4.4.1, so i have to do
 
# cd /home/cpapachebuild/buildapache/php-4.4.1
 
Now find current php configuration with
 
# php -i |grep configure
 
Next download the file pfpro_linuxrh9.tar from verisign members area, unzip it.
 
# cd /usr/local/
# tar -xvf pfpro_linuxrh9.tar
# cd verisign/payflowpro/linux9/lib
# ./buildpfpro.sh
 
Copy the files to include and lib folder
 
# cp pfpro.h /usr/include/
# cp libpfpro.so /usr/lib/
 
Now go to folder
 
# cd /home/cpapachebuild/buildapache/php-4.4.1
 
# ./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --enable-magic-quotes --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib  --with-pfpro
 
# make
 
# make install
 

Thursday, April 06, 2006

Creating a User in FreeBSD

You can create a new user with adduser command in FreeBSD.
 
Here is how i created a user "backup" for remote FTP Backup.
 
 
server128# adduser
Username: backup
Full name: Backup Account
Uid (Leave empty for default):
Login group [backup]:
Login group is backup. Invite backup into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash bash jailshell noshell ftpsh nologin) [sh]: nologin
Home directory [/home/backup]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]: yes
Lock out the account after creation? [no]:
Username   : backup
Password   : <random>
Full Name  : Backup Account
Uid        : 1551
Class      :
Groups     : backup
Home       : /home/backup
Shell      : /usr/sbin/nologin
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (backup) to the user database.
adduser: INFO: Password for (backup) is: SDkf.noltM
Add another user? (yes/no): no
Goodbye!
server128#
 

Wednesday, April 05, 2006

rm - Argument list too long

I found too many session files on my servers /tmp folder.
 
On trying to delete the files, i got error
 
# cd /tmp
# rm -f sess*
 
I got the error
 
/bin/rm: Argument list too long.
I don't know why FreeBSD do not fix this, if it was MS Windows, it will get big press and Microsoft will fix it, now with Free OS, we have to use
 
find /tmp -name "sess*" -delete
 
This will delete all files start with sess.
 
I Love using FreeBSD/Linux on my servers, still silly problems like this should be fixed. If you go and ask in FreeBSD mailing list, you will get  answer, we have provided full source code, why don't you read the source code and correct it type of answer.

Tuesday, April 04, 2006

Rebuild Free Web Hosting Control Panel

Last few days, i was busy with coding new Free Web Hosting management software in PHP for NetFreeHost.com
 
Now the control panel system is 100% functional. There is no frills, only basic function is available for user control panel and admin control panel. I will try to add some more features to admin control panel so that the sites can easily manage and keep abusers out of the server.
 
The user control panel, now don't have much feature. Still good for Free Web Hosting. I used to provide PHP and MySQL support, so the Admin control panel support enabling PHP for a web site. But i am planing to stop PHP support, so the server will be more secure.
 
Admin Control Panel Features
 
1. Approve/Deny Hosting Accounts
2. Suspend / Unsuspend a Site
3. Delete a website
4. Enable PHP
5. Reserve a site
6. Manage Reserves
 
You see i missed function like view all accounts, edit an account, upgrade an account. These are not critical, so i do not done it in initial stage. May be i have to do the web hosting upgrade (quota) function next.
 
You can see the free web hosting signup page at
 
 
Members can login to Free Web Hosting control panel at
 
 
 
 

Sunday, April 02, 2006

Google Search Engine can Calculate

If you want to do mathematical calculation, you can do it with google search engine.
 
For example, to find the result of
 
500-31
 
Just enter this in google search box and click google search button, you will see the result.
 
500 - 31 = 469
 
 

Web Hosting Directory

I have created a Web Hosting Directory at
 
 
This web hosting directory is based on turnkey PHP/MySQL script.
 
If you run a web hosting company, you can add your web site to this small Web Hosting Directory :-)

Installing Zend Optimizer on Cpanel Server

I was uploading few of the modified files to my web site www.FlashWebHost.com
 
I found the file error_log of size 3 MB
 
I checked the file and found there is error due to mismatch in Zend Optimizer version.
 
So i upgraded the Cpanel with
 
# /scripts/upcp
 
Then install Zend Optimizer with
 
#/scripts/installzendopt
 
After installation php -v is showing Zend Optimizer.
 
server28# php -v
PHP 4.4.2 (cgi) (built: Feb  9 2006 18:30:45)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies
server28#
 
 

Free BizHat.com Online FTP Client

With BizHat.com Free web hosting. we provide FTP access to all clients, but many new users found it difficult to use FTP client software for uploading to web site.
 
Today i have installed online FTP client software at
 
 
Using this FTP client, you can connect to any FTP server and manage files, upload new files, edit files, etc...

Disable or Enable Directory Browsing or Indexing

Today a client want to disable directory browsing on his web site. With Directory Browsing or Indexing enabled on your web server, if you don't upload index.html, web server will show list of all files available in the folder.
 
You can stop directory browsing by two days, the easy way is upload index.html file.
 
Disable Directory Browsing with .htaccess
 
.htaccess file allow you to override some of the server side settings.
 
To disable Directory Browsing, create a file with name .htaccess with following content
 
Options -Indexes
 
If you already have some thing in your .htaccess file, just add this as last line.
 
Enable Directory Browsing
 
To enable directory index or directory browsing, create an .htaccess file with
 
Options +Indexes
 
Directory index will work only if there is no index.html or default document uploaded.
 
Creating .htaccess file on WIndows
 
You may find it difficult to create .htaccess file on Windows, if you try to rename a file to .htaccess, windows will ask you to type file name. To solve the problem, go to command prompt (DOS) and create the file.
 
echo s > .htaccess
 
This will create a file with name .htaccess in the current folder.
 
Now use notepad to edit the file.
 

Saturday, April 01, 2006

Making Perl Script Run from Any Folder

In Apache web server, by default perl script run from cgi-bin folder only.
 
cgi-bin is a special directory that is spefified in httpd.conf
 
ScriptAlias /cgi-bin/ "/home/cgi-bin/"
 
In this cgi-bin you can run any scripts, perl or even binary executables.
 
In cpanel servers, you can run Perl script with .pl or .cgi file extension from any folder. This is a great feature as you can run perl scripts from any folder.
 
To make your web server run perl script from any folder, add following line to your httpd.conf file and restart the webserver.
 
AddHandler cgi-script .cgi .pl