| Subcribe via RSS

domain redirection

May 20th, 2008 | No Comments | Posted in SEO, apache, server by dreamluverz


As far as SEO is concerned 301 redirect is the most effecient way of domain redirection.

Some ways of doing it:

PHP Redirect

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>

.htaccess

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Check out here for other languages

other reference : http://www.somacon.com/p145.php

Tags: ,

error 500

May 8th, 2008 | No Comments | Posted in apache, server by dreamluverz


problem: error 500 on xampp when using htaccess:
solution: Locate this file httpd.conf and uncomment this LoadModule mod_rewrite modules/mod_rewrite.sop and restart apache

Tags: , , ,

Error: invalid argument to date encode in nusphere

February 29th, 2008 | 8 Comments | Posted in server by dreamluverz

I’m getting this error at this moment. And also these guys on this site:http://forum.pspad.com/read.php?2,45078,45079.  What could be the problem. Please help us…

Tags: , ,

linux command lines

February 13th, 2008 | No Comments | Posted in anything under the moonlight, server by dreamluverz

Some command lines I’ve learned from friends.

du -bsx * | sort -n =  will list folders/files along with it’s sizes and sorted asc

ls -lst = will list files/folder with dates, modes or in details

pwd = will show current location

Tags: , , ,

linux: change ownership and permission for file or directory via ssh

February 7th, 2008 | 1 Comment | Posted in linux, server by dreamluverz

sources: http://webtools.live2support.com/linux/chown.php, http://www.tuxfiles.org/linuxhelp/fileowner.html

I’ve tried this 2 lines in order.

chown -R -v [username]  [directory/file]

chmod -R -v [permission]  [username]  [directory/file]

-R = recursively, including sub directories
-v = verbose, you will see it in action

Tags: , , ,

Linux / Unix rmdir command

February 6th, 2008 | 2 Comments | Posted in linux, server by dreamluverz

About rmdirDeletes a directory.

Syntax

rmdir [OPTION]… DIRECTORY…

–ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty.
-p, –parents Remove DIRECTORY and its ancestors. E.g., `rmdir -p a/b/c’ is similar to `rmdir a/b/c a/b a’.
-v, –verbose output a diagnostic for every directory processed.
–version output version information and exit.

Examples

rmdir mydir - removes the directory mydir

rm -r directory - would remove a directory, even if files existed in that directory.

source: http://www.computerhope.com/unix/urmdir.htm 

Tags:

scp server to server

February 6th, 2008 | 6 Comments | Posted in server by dreamluverz

SOURCE: http://forums.serverbeach.com/archive/index.php/t-2202.html

I’ve been looking for this reference and finally found it. Thanks for them who posted it on the link above. :) I’ll be trying this out :)

Let’s begin and assume the following information:
Server A is our host where the original files are located.
Server B is where we need to copy files to.

1. Make sure on Server A you have enabled Shell access for the user account you are going to use. Let’s say our files are in /home/user1/public_html/myfiles. In this case, make sure you enable user1 shell access.

2. Login SSH on Server B, login as root “su”, or as user1 should work too so long as you stick the files in the same place.

3. Type this command:
where xx.xx.xx.xx is the IP address of Server A

scp -rv user1@xx.xx.xx.xx:/home/user1/public_html/myfiles/ /home/user1/public_html/myfiles/

notice there is a *SPACE* after /myfile/ and /home/

You will be prompted for the SSH password of user1 at Server A. Enter this, and the copy process will start.

the -r option copies everything in the directory tree.
/home/user1/public_html/myfiles/dir1/
/home/user1/public_html/myfiles/dir2/
/home/user1/public_html/myfiles/dir3/moredir1/
etc…..

the -v option is verbose, lets you see the transfer in action in your ssh terminal.

==========================

scp with -p options is better
scp -prv user1@xx.xx.xx.xx:/home/user1/public_html/myfiles/ /home/user1/public_html/myfiles/

the -p option Preserves modification times, access times, and modes from the original file

Tags: , ,

socket error #10060 on ftp

February 5th, 2008 | No Comments | Posted in server by dreamluverz

I got this socket error #10060 when connecting to ftp, tried checking the host, username & pass but still no luck. I tried unchecking the PASSIVE MODE and binggo!! It was solved! phew!! It took me heavens & earth :lol:

Tags: , , ,

vhcs installation on debian part II

January 29th, 2008 | No Comments | Posted in mysql, server by dreamluverz

After solving all the errors I encountered on vhcs installation, You will have these steps below, it means you’re almost done :)

System starts to configure packages now. When installation asks about overwriting old configs, select Yes.
Configuration file `/etc/vhcs2/crontab/backup/crontab.conf.12564′
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** crontab.conf.12564 (Y/I/N/O/D/Z) [default=N] ?Y

Creating config file /etc/vhcs2/apache/parts/vhcs2_base.tpl with new version
Configuration file `/etc/postfix/main.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** main.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/postfix/master.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** master.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/courier/authdaemonrc’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** authdaemonrc (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/proftpd.conf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** proftpd.conf (Y/I/N/O/D/Z) [default=N] ?y

This will complete the installation now you need to access you VHCS using the following URL

http://your-server-ipaddress/vhcs2/ you should see the following screen

VHCS Login Screen

Now you need to enter you admin as username and password (installation time we set this password) for this user.Once you logged in to the VHCS control panel you should see the following screen.

VHCS after loggin in

If you want to know how to manage and administer VHCS check this documentation

Reconfiguring VHCS

If you want to do reconfiguring to VHCS system, just type

#dpkg-reconfigure vhcs

Uninstall VHCS

#apt-get remove vhcs

If you want to delete all files related to VHCS, type

#dpkg –purge vhcs

If you are a ubuntu user you just use sudo before apt-get installing packages.

source: http://www.debianadmin.com/vhcs-isp-control-panel-installation-with-screenshots.html

some references you could also use:

http://vhcs.puuhis.net/wiki/index.php/Getting_started

http://www.debianadmin.com/vhcs-isp-control-panel-installation-with-screenshots.html

Tags: , ,

vhcs installation on debian server

January 24th, 2008 | 4 Comments | Posted in server by dreamluverz

VHCS delivers a complete hosting automation appliance by offering significant security, total-cost-of-ownership, and performance advantages over competing commercial solutions.With VHCS Pro you can configure your server and applications, create user with domains with a few point-and-click operations that take less than a minute. There is no limit to the number of resellers, users and domains that can be created.At the core of VHCS Pro are 3 easy-to-use, Web-based control panels. VHCS provides graphic user interfaces for the administrators, resellers and users.

VHCS Requirements

Apache-Webserver

Postfix - MTA

ProFTP

PHP 4.x

Perl

MySQL-Database

POP3 and IMAP Daemon (Courier)

OpenSSL or mod_ssl for SSL-Webs

BIND8 / BIND9 (DNS Server)

iptables (optional)

Install VHCS ISP Contro Panel in Debian

Preparing you system for VHCS Installation

# aptitude install ssh postfix postfix-tls proftpd proftpd-mysql \
courier-authdaemon courier-base courier-imap courier-maildrop \
courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl \
libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl \
libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl \
libmailtools-perl libmd5-perl libmime-base64-perl libmime-perl \
libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl \
libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl \
perl-base perl-modules bind9 diff gzip iptables libmcrypt4 php4 patch php4-mcrypt \ php4-mysql php4-pear procmail tar original-awk libterm-readpassword-perl \ libsasl2-modules libsasl2 sasl2-bin bzip2 gcc make libc6-dev mysql-client-4.1 \ mysql-server-4.1 apache2 apache2-common apache2-mpm-prefork \ libapache2-mod-php4

This will install all the required packages for VHCS.

After finishing all the installation of above packages you need to add the following source list to your /etc/apt/sources.list file

deb http://apt.scunc.org/ sarge main

or

deb http://apt.k-inet.de/ sarge main

Now you need to update your source list using the following command

#apt-get update

Installing VHCS in Debian

#apt-get install vhcs

This will start the installation process this time it will prompt for some questions we will see one by one now

First one is Welcome message you can see this in the following screen

Should i do the setup of VHCs select yes and press enter

Enter the hostname of your server and i have entered as technews select ok and press enter

Enter the ip address of your server select ok and press enter

Enter the admin email address to send VHCS logs select ok and press enter

Database Configuration Message

Choose the way you want to configure VHCS database here you need to select as automatic so that it will create DB Automatically select ok and press enter

If you want to drop database on pure you need to select yes and select ok and press enter

Enter the database username for VHCS database default one is vhcs2 i left the same and if you want to change you can change.Now you need to select ok and press enter

Enter the password for VHCS database user and select ok and press enter

Confirm the password for VHCS database user and select ok and press enter

Enter the database vftp user by default vftp will be these you leave as default one and select ok and press enter

Enter the password for the VHCS database vftp user select ok and press enter

Confirm the password for the VHCS database vftp user select ok and press enter

Enter your seconday name server i have entered test.technews.com you can enter which one is your secondary DNS select ok and press enter

Enter SASL Domain select ok and press enter

Enter the VHCS admin user name here and i have entered as admin after that select ok and press enter

Enter the password for the VHCS admin user after that select ok and press enter

Confirm the the password for the VHCS admin user after that select ok and press enter


System starts to configure packages now. When installation asks about overwriting old configs, select Yes.
Configuration file `/etc/vhcs2/crontab/backup/crontab.conf.12564′
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** crontab.conf.12564 (Y/I/N/O/D/Z) [default=N] ?Y

Creating config file /etc/vhcs2/apache/parts/vhcs2_base.tpl with new version
Configuration file `/etc/postfix/main.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** main.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/postfix/master.cf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** master.cf (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/courier/authdaemonrc’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** authdaemonrc (Y/I/N/O/D/Z) [default=N] ?y

Configuration file `/etc/proftpd.conf’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a new shell to examine the situation
The default action is to keep your current version.
*** proftpd.conf (Y/I/N/O/D/Z) [default=N] ?y

This will complete the installation now you need to access you VHCS using the following URL

http://your-server-ipaddress/vhcs2/ you should see the following screen

VHCS Login Screen

Now you need to enter you admin as username and password (installation time we set this password) for this user.Once you logged in to the VHCS control panel you should see the following screen.

VHCS after loggin in

If you want to know how to manage and administer VHCS check this documentation

Reconfiguring VHCS

If you want to do reconfiguring to VHCS system, just type

#dpkg-reconfigure vhcs

Uninstall VHCS

#apt-get remove vhcs

If you want to delete all files related to VHCS, type

#dpkg –purge vhcs

If you are a ubuntu user you just use sudo before apt-get installing packages.

source: http://www.debianadmin.com/vhcs-isp-control-panel-installation-with-screenshots.html

Tags: ,