Web-Hosting-Service
Live Chat Online!
Follow us on Twitter! Become a Fan! Follow us on Tify! Linked In Page Follow us on Youtube! Follow RSS Feed!

How to install a php script in cPanel.



PHP is a server side programming language and runs mostly on all platforms.  PHP also interacts with databases like MYSQL. Most servers have MYSQL because its free and open source.

Lets talk about the things you will need in order to go through this tutorial very smoothly. I think you will need the following my friends.

  • A php script of your choice depending on the program you want to run .ie forum script, helpdesk etc .
  • An ftp program in which to upload your files your server and an ftp access to your server. Filezilla is recommended.
  • A server running on any platform but preferably our cPanel platform
  • A MYSQL database access directly through our servers.
  • A good documentation of the installation process you want to run , this can be found in the READ ME .txt file of the script you want to install or through the script vendor home page .

Alright thats about it, grab a cup of coffee and lets get down to it:

Now open your folder containing the php script you want to install and take a look at the file structure, after that you can close it or leave it open if you want.

If you already have filezilla, then you can connect to your server using your account information.

Lets assume you already know how to use Filezilla, then the next step to take is to  log in to your server using ftp and then upload all the files in the php scripts “upload” folder on your computer to the folder you want to install it in your web server. It needs to be uploaded in the “public_html” folder ,  ( /public_html/INSTALL FOLDER/ ) within the root that you would like to install the script.

After you have finished doing that then lets log into your cPanel.

NOW IN YOUR CPANEL

Okay the first thing we are going to do is create a MYSQL database for your new php script. please take note that not all php scripts needs a database but we are assuming that this one is a database driven php script.

In your CPANEL please find the icon that says “MYSQL, mysql databases” and then click on it to create your database for the php script you want to install. In the new window that opened do the following

  • Create a database ( that can be any name you like but relate it to your script if you like)
  • Create a username and password
  • Assign the username and password to the database created
  • Assign “ALL PRIVILEDGES” to the user

NOTE: Your database can also be managed through PHPMYADMIN ( we will get to that in the following lessons but let us install your script now. Please remember to write down or take note of your database name , user and password. you will need that for the installation process.

LET US INSTALL

Different php scripts have different installation process, most of the scripts will take you through an installation wizard but some will require you to manually do the installation and that will involve mainly manually creating tables and inserting values into tables created but don’t worry about that , you will get to learn how to do that when we treat the MYSQL database section.

Also take note that some php scripts will either come with a folder named “INSTALL” or a single file called “install.php”. If it comes in a folder, you will usually find the “install.php” file in the “INSTALL” folder. So its either (/public_html/install.php) or (/public_html/INSTALL FOLDER/install.php) .

NOTE: Please consult the script documentation for full instructions on how to install as it might differ from this tutorial.

TO GET YOUR SITE UP AND RUNNING LET US DO THESE:

  • Find the install.php file and point your mouse to it or simply type (http://www.yoursite.com/install.php or http://www.yoursite.com/INSTALL FOLDER/install.php) to the browser just as it applies to the file structure in your web server.
  • After you have done that usually an installation wizard will appear asking for your database name, username, password.

Note: Please use this format if you are using a CPANEL server platform. when you create your database, user and password in the cpanel, it will usually look like this yourcpanelusername_databasename. Use this format to fill out your info. it goes like this;

DatabaseName = yourcpanelusername_databasename

DatabaseUsername = yourcpanelusername_username

DatabasePassword = your data base password

DatabaseHost = localhost

Once you have filled out all this information and clicked on install button , it will be checked by the system and a form will appear to fill up your site administration information(information used to administer your site please remember these)

Follow up all the procedures and then your site should be available to you. it wouldn’t take more than 10 mins. to do all these if you have a fast internet connection and have followed all the necessary installation procedures.


Your Ad Here

Rate this:
 3.5
Share and Enjoy:
  • Google Bookmarks
  • Digg
  • Bumpzee
  • del.icio.us
  • Facebook
  • Furl
  • Mixx
  • NewsVine
  • Reddit
  • StumbleUpon
  • Spurl
  • Live
  • email
  • Print

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply

You must be logged in to post a comment.