Username:

Password:

Author Topic: Need help installing a PHP script?  (Read 1950 times)

chase

  • WebDes1gn Staff
  • Administrator
  • Full Member
  • *****
  • Karma: +100/-0
  • Posts: 110
    • WWW
Need help installing a PHP script?
« on: September 20, 2009, 07:08:48 PM »
If you're looking for help installing or configuring a PHP script, this is the forum to ask your questions. Please try searching before if you think the topic may have already been covered. Otherwise, post a thread in the PHP Forum and other users will provide their input.

gerdonhanry

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
Re: Need help installing a PHP script?
« Reply #1 on: April 22, 2010, 04:50:51 AM »
Installing a php script should be more friendly than installing a cgi-script, generally speaking, and it is due in part to the help the php parsing engine gives us. You will likely take the following steps:

1. edit the configuration variables inside the php script (look for setup.php or config.php or something like this in the readme.txt).
2. You will need to set absolute paths most likely to directories if the script will be doing any file writing. The absolute path is the full path from the server to the directory you are writing to. Something like this (shown in red/green):

/home/usr/htdocs/datadir

The RELATIVE path is the path from public or html portion of the directory (shown in green above):

/datadir

3. If the script utilyzes a mySQL database then you will need to create the tables associated with the mySQL database. If the script doesn't come with a helper table creation script then you can use telnet. There is instructions on how to use telnet to create a mySQL table in one of my prior diary entries: click here for 7-07-00 diary

4. You will likely need to set UNIX permissions for any file/directory that the script must access. In doing so you should be given the permission settings in the readme file. If there is no readme then you might try the following:

chmod 666 filename.txt (any file that needs to be read/written by the php script)
chmod 777 DIRECTORY (any directory that needs to be read/written by the php script)

5. If the script requires function froms php 4.0 and your version of php is less than 4+ then you will need to have your host compile php 4.0 on the server or rewrite the portions of the code calling those functions. You can check what version of PHP you are using by creating a simple test.php file with the following code:

<? phpinfo(); ?>

This will tell you a lot more than just what version of PHP you are running. Try it :)
6. upload all scripts in ASCII mode. Binary can really mess up script source files, so look into your FTP editor settings and ensure you are using ASCII mode for any scripts you try to upload.
7. Does the script require the gd library or other modules which are not included with the core php source? If the script does then these libraries must be compiled by your host (or you) prior to executing the script. Check the script readme documentation for more help on this.

rogerjack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
Re: Need help installing a PHP script?
« Reply #2 on: July 13, 2010, 11:37:12 PM »
These all steps are really nice for to installing the PHP script. The main step to install the PHP is edit the configuration variables inside the php script (look for setup.php or config.php or something like this in the readme.txt. It is important step to install.

nephelereed

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 10
Re: Need help installing a PHP script?
« Reply #3 on: August 15, 2010, 10:29:48 PM »
The most important step is to modify the PHP installation to set up inside the php script setup.php search or config.php or something in this readme.txt. It is an important step for installation. Would Installing PHP Script be more friendly Than the installation of a cgi-script, in general, and is due in part to help the PHP parsing engine to give us.

barclaybeaumont

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
Re: Need help installing a PHP script?
« Reply #4 on: November 29, 2010, 11:03:23 AM »
PHP is a widely used general-purpose scripting language, originally designed for Web development, production and dynamic pages. Free and open source PHP libraries, including construction of the core.
Logged

davidcore

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: Need help installing a PHP script?
« Reply #5 on: December 01, 2010, 02:27:35 AM »
After saw this PHP Script discussion I searched about this and I found very inserting and positive view about this. I will learn Full PHP because vacation is going on and I passionate about Web Design and Developing.

stevearn

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 26
Re: Need help installing a PHP script?
« Reply #6 on: December 20, 2010, 08:49:49 PM »
Informative post thanks for sharing.

mackkreinz

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
Re: Need help installing a PHP script?
« Reply #7 on: January 06, 2011, 09:13:03 PM »
Provided installing a PHP script information is very useful for me because I am finding likewise same help of installing a PHP script. Thanks for Sharing installing a PHP script Information.
Logged

waitely

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 20
Re: Need help installing a PHP script?
« Reply #8 on: March 23, 2011, 12:39:03 AM »
Thanks for ur information....

web designers
Logged

lilly1236

  • Full Member
  • ***
  • Karma: +0/-0
  • Posts: 163
    • WWW
Re: Need help installing a PHP script?
« Reply #9 on: August 02, 2011, 03:44:24 AM »
Your Own Web Server

If you’re lucky, your current web host’s web server already has PHP and MySQL installed. Most do – that’s one of the reasons why PHP and MySQL are so popular. If your web host is so equipped, the good news is that you’ll be able to publish your first database driven web site without having to shop for a web host that supports the right technologies.

The bad news is that you’re still going to need to install PHP and MySQL yourself. That’s because you need your own PHP-and-MySQL-equipped web server to test your database driven web site on before you publish it for all the world to see.

When developing static web sites, you can often load your HTML files directly from your hard disk into your browser to see how they look. There’s no web server software involved when you do this, which is fine, because web browsers can understand HTML code all by themselves.

adenhomes

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: Need help installing a PHP script?
« Reply #10 on: October 24, 2011, 01:38:31 PM »
PHP is a broadly acclimated general-purpose scripting language, originally advised for Web development, assembly and activating pages. Free and accessible antecedent PHP libraries, including architecture of the core.

cashcars

  • Full Member
  • ***
  • Karma: +0/-0
  • Posts: 196
Re: Need help installing a PHP script?
« Reply #11 on: January 13, 2012, 01:33:06 AM »
Installing a php script should be more friendly than installing a cgi-script, generally speaking, and it is due in part to the help the php parsing engine gives us. You will likely take the following steps:

1. edit the configuration variables inside the php script (look for setup.php or config.php or something like this in the readme.txt).
2. You will need to set absolute paths most likely to directories if the script will be doing any file writing. The absolute path is the full path from the server to the directory you are writing to. Something like this (shown in red/green):

/home/usr/htdocs/datadir

The RELATIVE path is the path from public or html portion of the directory (shown in green above):

/datadir

3. If the script utilyzes a mySQL database then you will need to create the tables associated with the mySQL database. If the script doesn't come with a helper table creation script then you can use telnet. There is instructions on how to use telnet to create a mySQL table in one of my prior diary entries: click here for 7-07-00 diary

4. You will likely need to set UNIX permissions for any file/directory that the script must access. In doing so you should be given the permission settings in the readme file. If there is no readme then you might try the following:

chmod 666 filename.txt (any file that needs to be read/written by the php script)
chmod 777 DIRECTORY (any directory that needs to be read/written by the php script)

5. If the script requires function froms php 4.0 and your version of php is less than 4+ then you will need to have your host compile php 4.0 on the server or rewrite the portions of the code calling those functions. You can check what version of PHP you are using by creating a simple test.php file with the following code:

<? phpinfo(); ?>

This will tell you a lot more than just what version of PHP you are running. Try it :)
6. upload all scripts in ASCII mode. Binary can really mess up script source files, so look into your FTP editor settings and ensure you are using ASCII mode for any scripts you try to upload.
7. Does the script require the gd library or other modules which are not included with the core php source? If the script does then these libraries must be compiled by your host (or you) prior to executing the script.