+ Reply to Thread
Results 1 to 6 of 6

Thread: Trying to install a script
      
   

  1. #1
    samnoyoun is offline Corporal
    Join Date
    Jul 2008
    Posts
    13

    Default Trying to install a script

    I am trying to install a php script on one of my add-on domains. I have uploaded the script with BlueFTP, but I am struggling with the first two steps in the installation process:
    • Move the 'www' directory (or its contents) into a web accessible directory.
    • Move the 'lib' directory into a non-web accessible directory.
    Does this mean editing the chmod? I'm not sure what a non-web accessible directory would be...

  2. #2
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Trying to install a script

    it could.. depends..what it is and what the rest of the instructions are.. but that would most likely work. Sounds like you are using a dreamweaver templated script.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    samnoyoun is offline Corporal
    Join Date
    Jul 2008
    Posts
    13

    Default Re: Trying to install a script

    Well, what should I edit the chmod to?

    here's the rest of the instructions:
    ----------------------------------

    Install:
    • Upload and uncompress the downloaded files on your web server.
    • Move the 'www' directory (or its contents) into a web accessible directory.
    • Move the 'lib' directory into a non-web accessible directory.
    • Inside the www/admin directory find the config-dist.php file and rename it to config.php.
    • Open the config.php file and edit the following:
      • Database connection parameters
      // MySQL Database Connection
      $GLOBALS[ 'DB_HOST' ] = 'db_host';
      $GLOBALS[ 'DB_DB' ] = 'db_db';
      $GLOBALS[ 'DB_USER' ] = 'db_user';
      $GLOBALS[ 'DB_PASS' ] = 'db_pass';
      • Base URL will point to the the location you placed the www directory or its content.
      $GLOBALS[ 'SITE_BASE_URL' ] = 'http://example.com/www';
      • Lib path
      *nix systems:
      $GLOBALS[ 'LIB_PATH' ] = '/home/httpd/lib';
      Windows systems:
      $GLOBALS[ 'LIB_PATH' ] = 'c:\\inetpub\\lib';
      • Edit the $GLOBALS[ 'TB_*' ] names if you have tables named the same as the defaults.
    • Create the required tables using the appropriate lib/sql/install_*.sql file. If you changed any of the table names in config.php, change them to match in the install_*.sql file too.
      • Use the 'mysqli' file if you have PHP5 and MySQL 4.1 or greater.
      • Use the 'mysql' file if you have PHP4.
      If you don't know, try the opt/test.php to find out.
    • Make the lib/cache directory writable.
    • Place these fonts in the lib/fonts directory:
      • arial.ttf
      • arialbd.ttf
      You may aquire these fonts from http://corefonts.sourceforge.net/ or a Windows PC.
    • The watermark sizes are initally setup for the fonts listed above. The JPGraph software you may optionally choose to install requires those fonts as well. All that said, you may use any other TrueType fonts you wish.
    • Login to the www/admin page with:
    Login: admin
    Password: changeme
    Optional:
    • Make the lib/template/*.tpl files writable if you will edit them from inside the admin.
    • To enable the stats graphs, install JPGraph:
    http://www.aditus.nu/jpgraph/
    • Install JPGraph into the lib directory in a folder named 'jpgraph'.
    • Edit the jpg-config.inc:
      • Change the cache directory path to your lib/cache path.
      DEFINE( "CACHE_DIR", "c:\\inetpub\\lib\\cache\\" );
      • Change the font directory path to your lib/fonts path.
      DEFINE( "TTF_DIR", "c:\\inetpub\\lib\\fonts\\" );
    • After you test everything, edit www/admin/config.php and turn off debugging.
    $GLOBALS[ 'SITE_DEBUG' ] = 0;
    Notes:
    • If you have problems:
      • Upload the opt/*.php files to you web server and view them in a browser.
      test.php - Performs specific tests on your web environment and the capabilities of your PHP/MySQL install.
      phpinfo.php - Provide you with all available PHP information.

  4. #4
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Trying to install a script

    Actually, Im not sure that this doesnt have to be installed on the server end of things.. not just your site..in otherwords an addon for php. Check with Vodahost..as I believe the library they are referring to .. you cant access..even tho they give you library files.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  5. #5
    nobsworld is offline Private
    Join Date
    Aug 2008
    Posts
    2

    Default Re: Trying to install a script

    Am finding it difficult to upload a PHP script too and i will be glad if aqny one around could help me out.

  6. #6
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Trying to install a script

    What kind of help do you need?

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49