| Subcribe via RSS

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: , ,

caring for a baby 101

January 29th, 2008 | No Comments | Posted in anything under the moonlight by dreamluverz

11.jpg

2.jpg
3.jpg
4.jpg



5.jpg

6.jpg

7.jpg

8.jpg

9.jpg

10.jpg

111.jpg

121.jpg

13.jpg

14.jpg

15.jpg

16.jpg

17.jpg

18.jpg

19.jpg

20.jpg

21.jpg

22.jpg

23.jpg

24.jpg

25.jpg

26.jpg

27.jpg

28.jpg

source : http://www.wackyarchives.com/offbeat/caring-for-a-baby-101.html

I lost 500 for nothing

January 27th, 2008 | No Comments | Posted in anything under the moonlight by dreamluverz

Lately I noticed that I’m being so forgetful. I don’t know what do u call this syndrome or what but like for instance when I’m already at the counter after paying the cashier, I would forget to pick up the items I bought or in some cases the cashier would remind me of it. It happened 2 or 3 times I guess that I really forgot the items. Mostly in convenient stores when I’m such in a hurry. When I’m already on my way home that’s the only time I would remember I forgot the things I bought luckily when I went back to the store I can still have the items.

Then last night I lost 500 bill because of it. I went to ricky reyes to get my hair trimmed. I gave 500 bill so I could have a change for it. But too bad they didn’t have. Good thing the mall is still open and I still need to buy some stuffs so I’m thinking maybe I could get a change there. So I handed 200 bill to the cashier. I headed off to the mall and look for bangle watch. I found out and told the saleslady that I wanted to buy it. She was already preparing the watch and as I can remember I gave her 500 bill. But seems like there’s a prob with the watch when she tried to put a new battery for it. So I just decided not to have it since it’s defective. Before I went home I passed mini-stop for some food and I still needed a change for 500 bill. When I opened my wallet to pay the cashier I noticed there’s only one 500 bill there instead of 2. Now I can’t remember on which store I forgot the 500 bill. If it’s the ricky reyes or the watch store. I went back to ricky reyes but it’s already closed. I went to the watch store but the lady said I didn’t hand her any 500 bill. :cry: I can’t insist cause I also can’t remember it. But those are the 2 stores where I tried to have a change for 500. I lost 500 for nothing.

So frustrating but I can’t do anything about it. Seems like I’m suffering for this short term memory. Sometimes when I wanted to do something and about to do it I forgot why I’m doing it.  I’m not sure what causes this but I guess it started when I wanted to do lots of things all at the same time and think about how am I going to do it all at once.

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: ,

error using mod_rewrite

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

I got an error using mod_rewrite on my local server and it was only solved when I put  Options +FollowSymLinks but on live server using Options +FollowSymLinks gave me an error so I removed it. Well anyway, I came across this post and it has a nice explanation regarding that.

For reference, if anybody else wants to know:
mod_rewrite can be used to simulate a symbolic link. This is why mod_rewrite requires FollowSymLinks to be enabled, because it’s a similar security thing. So if your host doesn’t enable FollowSymLinks, and you try using mod_rewrite, you’ll get the 403 error. Adding Options +FollowSymLinks will override it for your directory, allowing mod_rewrite to work.

But, if you have this problem and you add Options +FollowSymLinks and then get a 500 error instead, then your host is disallowing the use of the Options directive in .htaccess files, and there’s little you can do but complain to them.

source : http://wordpress.org/support/topic/138301#post-630546

Tags: ,

differences of $_SERVER[’PHP_SELF’] - $_SERVER[’SCRIPT_NAME’] - $_SERVER['REQUEST_URI']

January 23rd, 2008 | No Comments | Posted in php by dreamluverz

$_SERVER[’PHP_SELF’], $_SERVER['REQUEST_URI'], and $_SERVER[’SCRIPT_NAME’] all behave in similar ways, they return information about what file is being used. When exposed to some differnt scenarios, you can see in some cases they do behave differently. This can help you decide which is best for what you need in your script. $_SERVER[’PHP_SELF’]

  • http://www.yoursite.com/example/ — – — /example/index.php
  • http://www.yoursite.com/example/index.php — – — /example/index.php
  • http://www.yoursite.com/example/index.php?a=test — – — /example/index.php
  • http://www.yoursite.com/example/index.php/dir/test — – — /dir/test

When we use $_SERVER[’PHP_SELF’] we have the file name /example/index.php returned to us both when we did and did not actully type it in the URL.

When we appended variables to the end of it, they where truncated and again /example/index.php was returned. The only one that produced a different result was when we appended directories after the file name. In that case, it returned those directories.

$_SERVER['REQUEST_URI']

  • http://www.yoursite.com/example/ — – — /
  • http://www.yoursite.com/example/index.php — – — /example/index.php
  • http://www.yoursite.com/example/index.php?a=test — – — /example/index.php?a=test
  • http://www.yoursite.com/example/index.php/dir/test — – — /example/index.php/dir/test

In all of our examples, this returned exactly what we entered for the URL. It returned a plain /, the file name, the variables, and the appended directories, all just as they had been entered.

$_SERVER[’SCRIPT_NAME’]

  • http://www.yoursite.com/example/ — – — /example/index.php
  • http://www.yoursite.com/example/index.php — – — /example/index.php
  • http://www.yoursite.com/example/index.php?a=test — – — /example/index.php
  • http://www.yoursite.com/example/index.php/dir/test — – — /example/index.php

In all cases here we were returned only the file name /example/index.php regardless of if it was typed, not typed, or anything was appended to it.

source: http://php.about.com/od/learnphp/qt/_SERVER_PHP.htm

Tags: ,

debian - LAMP setup

January 19th, 2008 | 5 Comments | Posted in apache, mysql, php, server by dreamluverz

This tutorial has been helpful to me on my 1st attempt of setting up our dedicated server.

source: http://allyourtech.com/content/articles/16_01_2006_setting_up_a_local_web_server_in_debian_linux.php

The basic Linux setup

Setting this all up assumes you have a running version of Linux already installed. I won’t walk you through that part.

If you don’t have one and have an old box you’d like to use, I’d suggest using Debian as we are about to. But if you are new to Linux, you might want to try using a hard disk installation of Knoppix as the procedure will be identical.

Of course, you aren’t limited to Linux exclusively. All elements of LAMP (sans the Linux part) have been ported to most operating systems.

Setting up Apache

For the actual “web server” portion of our web server (i.e. the service sharing the web pages) we’ll be using Apache 2. In addition to being free and open source, Apache is by far the most used web server software on the Web.

Either dropping to a shell or connecting remotely, we’ll start by checking for updates to the Debian package lists. If you’ve done this recently or just did a fresh Internet-based installation, this won’t be necessary. This will require root access.

lineman@soundwave:~$ su
Password:
soundwave:/home/lineman# apt-get update
Get:1 http://security.debian.org stable/updates/main Packages [174kB]
Hit http://apt-mirror.sourceforge.net apt-mirror/ Packages
Ign http://apt-mirror.sourceforge.net apt-mirror/ Release
Get:2 http://security.debian.org stable/updates/main Release [110B]
Hit ftp://mirrors.kernel.org stable/main Packages
Hit ftp://mirrors.kernel.org stable/main Release
Hit ftp://mirrors.kernel.org stable/main Sources
Hit ftp://mirrors.kernel.org stable/main Release
Fetched 174kB in 3s (48.4kB/s)
Reading Package Lists... Done

Now that we’ve updated out package lists, we’ll tell Linux to go grab Apache. To fully install Apache, we’ll need more than one package. Thanks to Debian’s APT, we’ll be able to download and install all those dependencies with minimal work.

soundwave:/home/lineman# apt-get install apache2
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  apache2-common apache2-mpm-worker apache2-utils
Suggested packages:
  apache2-doc lynx www-browser
The following NEW packages will be installed:
  apache2 apache2-common apache2-mpm-worker apache2-utils
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 1097kB/1131kB of archives.
After unpacking 4018kB of additional disk space will be used.
Do you want to continue? [Y/n] y

Although it isn’t a requirement, APT suggested installing the Apache documentation. So we’ll go ahead and install that just in case. It suggested Lynx too but we probably won’t be needing that.

soundwave:/home/lineman# apt-get install apache2-doc
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  apache2-doc
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/3861kB of archives.

Now we’ll do a quick check to verify Apache is running.

soundwave:/home/lineman# /etc/init.d/apache2 start
Starting web server: Apache2httpd (pid 11205) already running

So it looks like Apache is running, but let’s not take that scripts word for it. I mean, we’re setting up a web server so why not use a web browser? To do this, just plug the IP address of your server into the address box of your favorite browser. This should forward you to http://servername/apache2-default/ where you’ll find a page congratulating you on your successful Apache installation.


If you’d like to start by editing this sample page, it’s easy enough to do. The default Apache files are stored in /var/www/apache2-default on your server.

To edit the English version of the page, we’ll just have to use Nano (or another text editor) to edit /var/www/apache2-default/index.html.en.

soundwave:/home/lineman# nano /var/www/apache2-default/index.html.en


If you’d like to play with a few of Apache’s settings, the main configuration file is /etc/apache2/apache2.conf. Since by default Debian will allow external connections to Apache, you may want to limit connections to your localhost or local network only.

If you’d like to make web folders for individual accounts, all that is needed to make a directory in the user’s home directory called /public_html. For example, if your username is “lineman,” you’ll need to mkdir /home/lineman/public_html. Files stored in that directory will then be viewable in your web browser at the address http://servername/~lineman/.

At this point, if all you want to work on and host are static pages, you are done. But for those who want to do more interesting things using the LAMP platform, we’ll move on.

Setting up MySQL

There are plenty of Apache-friendly database servers available, but MySQL is certainly a popular option. Again, this one is free and open source.

We’ll start by installing MySQL in a manner similar to the way we installed Apache.

soundwave:/home/lineman# apt-get install mysql-server
The following extra packages will be installed:
  libdbd-mysql-perl libmysqlclient12 mysql-client mysql-common
Suggested packages:
  mysql-doc
The following NEW packages will be installed:
  libdbd-mysql-perl libmysqlclient12 mysql-client mysql-common mysql-server
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 4523kB of archives.
After unpacking 10.5MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Once MySQL begins to install, we’ll get a brief warning screen. This is mainly to fill us in a little on how passwords will work. By default, the root user MySQL has no password (something you will want to change for a public server).


Before moving on, we’ll make sure the MySQL service is running.

soundwave:/home/lineman# /etc/init.d/mysql start
Starting MySQL database server: mysqld...already running.

If you’d like to change some of MySQL’s settings from their default values, take a look at the files located in /etc/mysql.

As with Apache, APT suggests we install the MySQL documentation. Just to be safe, we’ll go ahead and do that.

soundwave:/home/lineman# apt-get install mysql-doc
Reading Package Lists... Done
Building Dependency Tree... Done
Package mysql-doc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package mysql-doc has no installation candidate

Unfortunately, this package has been removed from Debian. So if we want the documentation, we’ll have to grab the documents directly from MySQL.com.

If you are already comfortable using MySQL from the command line, you can probably skip the section on phpMyAdmin further down. But if you aren’t, phpMyAdmin will make your life much easier.

Setting up PHP

While HTML is a useful markup language, it lacks the sophisticated scripting ability that the modern Web user expects. This is where scripting languages like JavaScript, ASP, and PHP are needed. In particular, server-side scripts like those used in PHP and ASP provide a framework for building security-minded Web interfaces.

It is with good reason that most Linux-based hosts use PHP over ASP (and not because LAMA just doesn’t sound all that desirable). PHP is a completely free and open source operating system. Cost aside, there are security considerations here. PHP has certainly not had a spotless record of security, but flaws are found much more quickly and are fixed almost immediately.

Now if you really want to use ASP, Apache can be made to support it. However, support is limited.

Most of us, though, are using PHP (hence the popularity of LAMP) so we’ll go ahead and set it up. Again, this starts on the command line.

soundwave:/home/lineman# apt-get install php4
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  apache-common libapache-mod-php4
Suggested packages:
  apache apache-ssl apache-perl php4-pear
The following NEW packages will be installed:
  apache-common libapache-mod-php4 php4
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 2460kB of archives.
After unpacking 6357kB of additional disk space will be used.
Do you want to continue? [Y/n] y

Since we will be using both PHP and MySQL on our server, we’ll go ahead and install the PHP’s MySQL module to help them play together better. We’ll also install PHP’s Pear extensions since so many packages will require it.

soundwave:/home/lineman# apt-get install php4-mysql php4-pear
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  php4-cli
Suggested packages:
  php4-dev
The following NEW packages will be installed:
  php4-cli php4-mysql php4-pear
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 1860kB/1882kB of archives.
After unpacking 5095kB of additional disk space will be used.
Do you want to continue? [Y/n] y

There are a few other packages we’ll need to install to get Apache working with PHP.

soundwave:/home/lineman# apt-get install libapache2-mod-php4 php4-cgi
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  apache2-mpm-prefork
The following packages will be REMOVED:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2-mpm-prefork libapache2-mod-php4 php4-cgi
0 upgraded, 3 newly installed, 1 to remove and 5 not upgraded.
Need to get 5024kB of archives.
After unpacking 9441kB of additional disk space will be used.
Do you want to continue? [Y/n] y

All the necessary packages are installed, but we aren’t quite done yet. Using your favorite text editor, we’ll need to make some changes to /etc/apache2/apache2.conf. First, locate the line “#AddType application/x-httpd-php .php” and un-comment the line by removing the # from the beginning. Next, we’ll need to add the line below.

LoadModule php4_module /usr/lib/apache2/modules/libphp4.so

To get those changes to take effect, we’ll have to restart Apache. If we don’t, web browsers will be downloading our full PHP files rather than Apache processing them first.

soundwave:/home/lineman# /etc/init.d/apache2 restart

To show that PHP is working, we’ll make a small PHP file and stick it in our web folder. Within the directory /home/lineman/public_html, I’m going to add a file called index.php with the following contents:

<?php
  phpinfo();
?>

This will generate a PHP page at http://servername/~lineman/ that will tell us a lot about our PHP installation.


Setting up phpMyAdmin

Don’t listen to the people who’ll tell you that you are cheating if you don’t run MySQL from the command line. Not only is that method more difficult, but you risk doing more damage if you make a mistake.

phpMyAdmin is a web interface designed specifically for administering MySQL. While there are times that MySQL is best used directly (like when you are moving a 50 MB database to a new co-located server), phpMyAdmin is commonly used to handle day-to-day database issues.

The installation of phpMyAdmin is fairly straightforward.

soundwave:/home/lineman# apt-get install phpmyadmin
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  php4-gd php5-gd
The following NEW packages will be installed:
  phpmyadmin
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2768kB of archives.

Once the installation begins, we’ll be presented with a question about which web servers to reconfigure. Since we used Apache2, be sure to check that. When prompted, go ahead and have Apache2 restarted.


To test out phpMyAdmin, we’ll first point our web browser to http://servername/phpmyadmin/. We will connect using the username “root” and a blank password. Once we do, phpMyAdmin will greet us with stern warning about our blank password. Clicking on “Change password” will allow us to set one and get rid of that warning.


Conclusion

There you have it – your very own web server to tweak and test on without fear of downtime for your own or your clients’ websites! But I have to warn you about one thing; once you’ve learned all the things you can do on your own server that your shared host isn’t letting you have access to, you’ll almost certainly be shelling out extra cash every month for your own dedicated server.

Tags: , ,

PRAYERS of the faithful

January 19th, 2008 | No Comments | Posted in anything under the moonlight by dreamluverz

Before I left palawan for vacation, my parents gave me their copy of devotional entitled PRAYERS of the faithful. It’s really a nice devotional for this year. It gives inspiration in my life :) I’m the so-called non-religious type of person but I believe in God and his power.

It started from the story of the book of genesis, from abraham and so on. Daily you will meet different stories written by different people who contributed their experiences with God through prayer.

It’s a nice thing to start your day to read 1 page of it. It gives encouragement, inspiration, motivation especially during those times of our lives when we felt so down and all alone in this world.

We know that problems, trials, and pains are part of our lives but constant communication with God help us overcome and surpass all of these things. God Bless.

Tags: ,

bad day

January 19th, 2008 | No Comments | Posted in anything under the moonlight by dreamluverz

Our server was hacked yesterday! So bad!!! I got backups but some files are corrupted! !@#!$!@ I really hate this. And not only that ‘coz since last week I’m experiencing latency on my connection and really drived me nuts ‘coz I can’t work properly plus I got loads of things to do.

I need to update the sites, need to move some sites to the new server, need to setup and configure the new server and then yesterday our server was hacked. What!!!!! And my boss is telling me to do these things ASAP! :cry: You can imagine what pressure I’m having plus my connection is not cooperating. :cry:

I’ve been talking to the tech support everyday regarding the updates on my connection. I’m not happy with their service at this time ‘coz until now it’s not fix yet. I pointed out the situation I’m having. It caused my work so badly.  I really need miracles here.

Please God help me with this.

Tags:

palawan vacation: new year 2008

January 9th, 2008 | No Comments | Posted in anything under the moonlight by dreamluverz

Raindrops keep falling on our heads as we welcomed 2008 by grilling some fish & chicken at ate lydz backyard. Some prepared salads, puto, spag and a lot more. Luckily the fish & chicken were cooked inspite of the weather :lol:


Neil was braved enough to light some firecrackers or juda’s belt?

As the clock striked at 12am the rain poured heavily. But still we were able to manage and enjoy the new year :mrgreen:

After enjoying the fireworks we hopped to Varona’s residence for more foods :)

They’re now so drunked of foods hahaha :lol: :evil: Click on my picasa album for more & bigger pix

Tags: , ,