Tech Support

How to Install a PHP Script Fast and Easy

Installing a PHP script should be an easy thing to do.
Before installing a PHP script please make sure you have a hosting account that supports PHP and MySQL databases. If you are not sure about this, ask your provider first.

Now let’s install the PHP script in 3 easy steps:

1. Edit the configuration file included in your script package

Unzip your script package and search for the configuration file. Usually the name of the configuratgion file is “config.php”. But this file can also have a different or similar name.
In the configuration file you will find the following variables:
$host=”
$username=”
$pass=”
$db=”
Let’s take each variable separately.
$host – this variable must be set to “localhost” unless you want to use the database on a different web server
$username – this variable defines your MySQL database user
$pass – this variable defines your MySQL database password
$db – this variable defines the name of your MySQL database
The first variable ($host) is usually “localhost” in most of the cases, but the next 3 variables must be defined by you.
In order to create your database, database user and password, you have to login to your hosting control panel. If you are running cPanelX, go to MySQL database section.
First create a new username. Then create a new database. Make sure you assign the new user to the new database (Add user to database).
Now edit the configuration file properly with $username, $pass and $db fields. Save the file.
If the configuration file contains more variables, make sure you complete these too (site url, email address, etc.).
Some scripts may require a “path to directory” variable. Please ask your hosting provider to provide you the correct path.

2. Upload the files to your server

Upload all the files as they are, do not change the directory structure. You will need a FTP client (there are many free ones available) and make sure you upload all files in ASCII format.

3. Run the installation script

The installation script is usually called “install.php”
In order to install the script you have to point your browser to
http://your.domain.name/scriptdirectory/install.php (as an example)
Follow the installation steps. After these the installation should be complete. Please delete the installation file from the server.
Everything done now! Enjoy the installed script

Be the first to comment - What do you think?  Posted by admin - January 13, 2012 at 1:35 pm

Categories: Tech Support   Tags:

Scroll up in screen unix

If you are seeing this post, you wondering how to scroll up and down a screen session in Unix or Linux.

Go to the screen.

Press the following keys to enter scroll mode in screen.

“Ctrl” + “A” + “[”

Now you should be able to scroll UP and DOWN using up down arrows.

Be the first to comment - What do you think?  Posted by admin - January 6, 2012 at 10:01 am

Categories: Tech Support   Tags:

Upgrade ubuntu command line

Follow the below simple steps to Upgrade Ubuntu using command line:

1. Open Terminal.

Applications -> Accessories -> Terminal

(or)

Ctrl + Alt + t

2. Enter the below comment to update ubuntu

sdexperts@ubuntu:~$ sudo apt-get upgrade
[sudo] password for sdexperts:*********

3. This will update ubuntu.

Be the first to comment - What do you think?  Posted by admin - December 6, 2011 at 2:06 pm

Categories: Tech Support   Tags: , ,

Update ubuntu command line

Follow the below simple steps to Update or Upgrade Ubuntu using command line:

1. Open Terminal.

Applications -> Accessories -> Terminal

(or)

Ctrl + Alt + t

2. Enter the below comment to update ubuntu

sdexperts@ubuntu:~$ sudo apt-get update
[sudo] password for sdexperts: *********

3. This will update ubuntu.

Be the first to comment - What do you think?  Posted by admin - at 1:58 pm

Categories: Tech Support   Tags: ,

Send mail bash script

Mail is the command in UNIX bash shell to send email from that machine to one or more recipient. Mail can be invoked with arguments which are the recipients. This is followed by your message and ‘ctrl-D’ at the start of the line. The simple way to send a mail from unix is:

mail -s ‘Mail Subject’ You@sdexperts.com

Example Shell Script to send Mail.

Use the below sample shell script:

# Shell script to send email
#!/bin/bash

# Email Subject
SUB=”Email Subject”

# Email Recipient
EMAIL=”You@sdexperts.com”

# Email text/message
echo “Hey – How is it going”> $EMAIL-MESSAGE
echo “Send mail bash Shell script works fine” >>$EMAIL-MESSAGE

# send email using /bin/mail

/bin/mail -s “$SUB” “$EMAIL” < $EMAIL-MESSAGE

Steps for dummies:
Go to the dir you want to have this shell script.
vi sendMail.sh (create shell script)
Paste the above code.
:wq (Save the shell)
chmod 755 sendMail.sh (Give permission to the script)
./sendMail.sh (Run the script)

1 comment - What do you think?  Posted by admin - March 16, 2011 at 1:48 pm

Categories: Tech Support   Tags: , , , ,

How do I refresh my IP ?

Its very simple to refresh your IP. Just follow these below steps.

I will tell you how to refresh your IP address on a network. This will only repair internet connection problems if you’ve changed locations and you can’t connect to the Internet. This is only for Windows machines.

Steps:
1. Open the Command Prompt (from the Start button, go to Programs > Accessories > Command Prompt).
2. In the command prompt window, type “ipconfig /release”
3. In the command prompt window, type “ipconfig /renew”
4. Exit the Command Prompt by typing “exit”

Tips:
* You may want to create a small batch file of this command. See How to Write a Batch File.
* To check your IP address, type “ipconfig”
* To check detailed information about your TCP/IP settings, type “ipconfig /all”
* Win98 users should type ipconfig /renew_all

Warnings:
* After completing your ‘ipconfig /renew’, check what IP address you have by ‘ipconfig’. If you have an IP address starting with 169.254, then you are not connected to the Internet. Addresses starting with 169.254 are assigned automatically by Windows when Windows is unable to contact an Internet (DHCP) server for an address.

Be the first to comment - What do you think?  Posted by admin - June 1, 2010 at 3:08 am

Categories: Tech Support   Tags: , , , , ,