Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Closed Thread
 
Thread Tools
  #1  
Old 07-26-2008, 09:01 PM
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 07-26-2008, 09:27 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
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
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 07-26-2008, 09:40 PM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 07-27-2008, 04:41 AM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
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
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 08-29-2008, 09:52 PM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 08-29-2008, 10:30 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: Trying to install a script

What kind of help do you need?

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203