Loading...
 
Skip to main content

History: Install with only FTP access

Source of version: 5 (current)

Copy to clipboard
            ^This page and ((Install by FTP)) should ((merge)) with ((Installation)). Installing via FTP or otherwise is not significantly different. And installing by FTP should be the default case. If we make a special installation page (which we shouldn't), it should be "Install by SSH"^




^Note: most ISP's install PHP with memory_limit = 8m. While TikiWiki may install, and initially appear to work fine, when faced with even a slight load, this limit will be easily passed and the system will constantly fail. Furthermore, this limit is not generally user accessible so you must rely on the kindness of your ISP to grant you more resources. On a busy shared server that will also mean that all other PHP users on that shared server will also be granted those resources. 

Take a look at [http://tikiwiki.org/art82|PHP memory_limit req], a page that has been hit over 17 thousand times! TikiWiki wants ~~#FF0000:32megs~~ as the memory_limit. Anything less is asking for trouble. 

After you install you can learn all about these limits by running the program PHP Info, which is the bottom most menu item after logging in as Admin.  (http://www.YourSite.com/tiki/tiki-phpinfo.php). Run that and search for  three values on your ISP’s server:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume 

From my personal experience an 8M memory limit can bomb sending out just 50 newsletters. I'm told the upper bound for this would be around 4000 on a very well kept server with the full 32M memory_limit. 

Do not assume because your ISP has Fantastico or some other install script or advertises TikiWiki as supported that they have any experience whatsoever in this.  Few offer more than the 8MB install default of PHP so be advised. The problem doesn’t surface till the loading starts. --RickL^

{VERSIONS(nav=y)}

Choose your tiki version for the FTP install guide by clicking the version numbers above.

---(1.7.2)------------------------------------
!TikiWiki 1.7.2 FTP installation guide

I've installed tikiwiki (1.7.2) just a few minutes ago for the first time and am writing this immediately after the installation.

If you are trying to install tikiwiki to your webhosting account and you have only FTP access (no telnet, SSH), read on: 

steps: 

1. Download the latest tikiwiki and extract the contents on your local computer. 
2. Create a folder anywhere under your web root. For example: tiki 
3. Upload all the extracted files to that folder. 
4. CHMOD the following such that PHP can write to them: 

* backups (if you plan to use backups) 
* db
* dump (if you plan to use Wiki dumps or export the Wiki) and dump/html
* games (if you plan to enable game uploading) Make sure that games/thumbs and games/flash are also writeable. 
* img/wiki (if you want to use drawings) 
* img/wiki_up (if you want quick picture uploading to wiki pages) 
* modules/cache (Mandatory) 
* temp (if you want to enable batch uploading) 
* templates_c (Needed to run tiki)
* templates
* styles
* lib/Galaxia/processes

(Note 1: in my case, I CHMODed 777 to all these, which makes them readable and writeable by anybody on the system, including the PHP and Apache programs.  Some hosts dislike this, and require 755 permissions.)

~~blue:(Note 2: most FTP utility programs will ask you whether you want to CHMOD the directory only or include the files under it. Choose with the files under it. For those who are not familiar with CHMOD, here are [http://www.zachjorgensen.net/za/chmodtutor.html|a short tutorial] and [http://webmasterworkshop.com/guides/chmod_guide.shtml|a more complete tutorial]. ~~ -- ((UserPageJeanFrancoisNoubel|Jean-François))

Permissions work like this:
700  would give you   -rwx------  in the directory listing
755  would give you   -rwxr-xr-x  in the directory listing

(r=4, w=2, x=1 with the digit positions representing owner, group,
others in that order)


This might look like:
 chmod 777 -R backups db dump dump/html games games/thumbs 
 games/flash img/wiki img/wiki_up modules/cache temp templates_c templates 
 styles lib/Galaxia/processes 
)

5. Have the mySQL db, userlogin, userpassword ready. Ensure that the user has full rights to the db. 

6. Using a tool like phpmyadmin, navigate to the db, click on 'SQL', click on 'choose' button besides 'or Location of the text file', select the tiki.sql in 'db' folder on your local computer. Press 'Go' button 

7. Now that you've populated the db w/ tikiwiki tables, open up tiki-db.php in notepad/wordpad and enter the db info. You can leave the $tikidomain = ''; as is. Save it 

8. Replace the existing db/tiki-db.php in your webserver w/ the one you saved in above step. 

9. Go to [http://yoursite.com/tiki/tiki-index.php|http://yoursite.com/tiki/tiki-index.php] and 
you should see some page displaying an error message since you won’t have permission to access any feature yet.  Perhaps, you may need to follow instructions given on [http://sourceforge.net/tracker/index.php?func=detail&aid=796457&group_id=64258&atid=506846].

9a.  Sometimes, for whatever reason, you may need to try going directly to the admin page at http://yoursite.com/tiki/tiki-admin.php.  Things will usually work fine from then on, but que cera.

10. Delete the tiki-install.php file. Jann Röder [https://sourceforge.net/tracker/index.php?func=detail&aid=922748&group_id=64258&atid=506846|notices] that local.php doesn't exist with this install procedure leaving the Tiki open to __very bad things__ without this step. I wonder if creating a local.php instead of editing tiki-db.php at step 7 could eliminate this step. ''Chealer9''  ---  tiki-db.php already calls local.php, there's no need to edit it.  Just create local.php with the proper variables ''daaave''

11. Login as admin/admin and change the pwd.

Congrats! You've installed tikiwiki successfully. (:biggrin:)

----
!!!For people with FTP and SSH access to web serwer
Uploading an extracted Tiki takes very very long.  There are thousands files in Tiki. So here is a faster way of achieving step 3 of the above instruction.

3a. upload tikiwiki-VERSION.tar.gz
3b. execute following commands:
 tar -xvzf tikiwiki-VERSION.tar.gz
 cd tikiwiki-VERSION
 cp -R * ../
 rm -Rf *
 cd ..
 rmdir tikiwiki-VERSION
 rm tikiwiki-VERSION.tar.gz

...and you've saved a lot of time! :-)

---(1.8.3)------------------------------------
!TikiWiki 1.8.3 FTP installation guide

-=Installing Tiki 1.8.3 to a Remotely Hosted Website=-
''by Mykk, July 23, 2004''

__Introduction:__
Greetings.  I came to the TikiWiki install page as a newbie looking to see how to install Tiki on a website hosted by a webhost, and found only directions for installing version 1.7.2.  Although at the time of this writing the developers are working on versions 1.9.x and even 1.10.x, the latest stable version out there was 1.8.3.  My webhost uses Scripta (similar to Fantastico) and makes it very simple to install version 1.8.2 with just a few mouseclicks, but my curiosity demanded I see if I could install 1.8.3 all by myself.  After a few tries, I got it to work!  A newbie like me can't offer a lot to the Tiki community (yet), but I figured like the person who gave directions to install 1.7.2, I'd "perfect" my method, take notes, then share my results here.  Also, I find a lot of directions over my head, so I'm writing this as simple as I can (I HAVE to assume you know some basic Windows file management and clicking and such).  I'm not talking down to you, but hey--I LIKE simple, so here goes!

__First, some stats.  People seem to like stats:__
*My computer:
**AMD 2600
**Windows XP Professional (I'm a hard drive away from dual-booting into Linux)
**Mozilla Firefox browser (recent convert thanks to Tiki forums, love it now)

*My webhost:
**HostDime ([http://www.hostdime.com/|http://www.hostdime.com/])
**Apache 1.3.31 (Unix)
**Php 4.3.6
**MySQL 4.0.20-standard
**Cpanel 9.4.1-stable

*My ftp program:
**Filezilla ([http://sourceforge.net/projects/filezilla/|http://sourceforge.net/projects/filezilla/]) (Again, another Tiki IRC recommendation)


__Step 1:  Downloading Tiki__
*Visit [http://sourceforge.net/projects/tikiwiki/|http://sourceforge.net/projects/tikiwiki/] and click on Files
*Download tikiwiki-1.8.3.zip
**Why the zip file?  Tars and Gzs are for Linux geeks.  Although WinRAR seems to unzip them fine, I'm just a dumb Windows user, so give me a zip file!
*Extract the file.  Inside you'll find a folder called 'tikiwiki-1.8.3'.  Inside that you'll find all the folders and files necessary to run TikiWiki...  but don't get too excited, there's a lot to do yet.


__Step 2:  Create the database__
*Databases.  You either don't understand them, in which case just accept the fact they create the magic that is a CMS.  Or you understand them, but don't know why you can't just browse it with M$ Access.  Either way, you need one, so go to your website's control panel.  Don't bother with phpMyAdmin like everyone says, it's cool, but I don't think you need it.  See if you don't have an option like I do called MySQL, and open that.
*The top third of the page is "Databases:".  There's a field called "db:" with a button next to it called "Add Db".  In the field, type the name of your database.  It doesn't matter so much what you call it--call it 'tiki' if you want.  Click the "Add Db" button.  You should get an accepted message "Added the database (tiki)".  On my Cpanel you can now click "Go Back".
*The middle section of MySQL is about "Users:".  In the "UserName:" field, type a user name, like "admin".  In the "Password:" field type a password.  Remember these well, or write them down, you will need them soon.  Click the "Add User" button.  Again the confirmation message will appear "Added (username) with the password (password)".  Again, I click "Go Back".
*In the top section "Databases:" There is a "User" field that might already be populated with the username you selected, and a "db" field that might also be populated with the database you created.  They are drop-down combo fields, so if you had previous users and/or databases, you might have to use the drop-downs to choose the ones you just created.  Because there are multiple accounts on each server, whatever your sign-on for Cpanel is, that is appended to the front of these fields.  So in "User:" it might say "smith_(username, ie admin)" and in the "Db:" field it might say "smith_(database name, ie tiki)".  Underneath that is a bunch of "Privileges:" check-boxes, but the first one should say "ALL" and it should already be checked.  If this is all as I've stated, you just have to click the "Add User to Db" button, and you'll get the "Added the user (cpanel signon)_(user name) to the database (cpanel signon)_(database name)" message.  Done!
*The above could be confusing, and Cpanels may be different, or maybe you don't have a MySQL and only have phpMyAdmin.  The bottom line is you need a database, you need a user, and that user needs to have ALL privileges to that database.  I used phpMyAdmin in a different installation, and there was no "ALL" option, so I had to make sure to check every privilege I could possibly check.
*Hopefully this all went smoothly, and you are done with the database process.


__Step 3:  Create a folder on your website where Tiki will go__
*I've seen in various documentation that you REALLY want a separate folder for all this (avoids bugs), so why fight it.
*Use your webhost's Cpanel or your ftp program, whichever you are more comfortable with.
**Cpanel: Log in, click 'File Manager', click the 'public_html' folder, click the 'Create New Folder' folder, enter a distinct name like 'tiki' and click the Create button.  OR
**Filezilla (ftp):  Logon to your website, navigate into the 'public_html' folder, right-click and choose Create Directory, then again come up with a folder name like 'tiki'.
*Note:  The folder name will appear on all your future URLs to your tiki site, ie. www.yoursitename.com/thefoldername/index.php



__Step 4:  Upload Tiki__
*This is a step that different CMSs I researched seem to think is sooooo easy.  All you have to do is "untar the file" and you're set to go.  I'm a dumb Windows user, remember?  I don't know my "untar" from my "(insert unix command here)".  Well, my research tells me that if you have root access to your server, they are right.  "Untarring" is to .tar and .gz files as "unzipping" is to .zip files, and sure, if you were at the server and could "untar/unzip" the file right to the directory it would take about 10 seconds.  But not us.  We're paying a webhost $10/mo, and we're just praying this thing works at all.  So break out that ftp program and upload all the files.  Yes, it will take a while this way.  Get a drink, have a smoke, check the mail, watch tv, whatever you are into.
*In Filezilla (ftp), the right window pane is your website if you're still logged in from Step 2.  If not, re-log in.  Navigate into your 'public_html' folder again, and this time there should be the folder you created in Step 3 (which I have named 'tiki').  Navigate into the folder.  (If you were still logged in from Step 3, double-clicking the new folder should get you inside it.)
*In the left window pane, navigate to that 'tikiwiki-1.8.3' folder we unzipped earlier.  Select all the folders INSIDE it.  In Filezilla, the top folder is a folder with two dots next to it (..).  That's what you click to navigate up a level, so you don't need to select that one.  Select all the rest (I click the top one, then while holding Shift down, click the bottom one).  When I do it the top folder under the ".." folder is the 'backups' folder, and the last file is 'xmlrpc.php'.  Select them all.
*Drag all the selected files from the left side to the right side, and hopefully they will begin uploading.  If not...  well, it's more of an FTP/FileManagement issue, not a Tiki issue, so you need to figure out ftp'ing yourself somewhat, sorry.
*On my cable modem, I just did this, and it took 25 minutes.  If you're still using dial-up...  umm...  it will take somewhat longer.


__Step 5:  Assigning permissions to the right folders__
*If you're as new to websites as I am, this will be new.  If you read CMS install documents, they refer to this as "CHMOD"ing a folder/file.  CHMOD.  There's another *nix term for you.  If you have the ability and can "CHMOD", go ahead and assign these folders full rights.
*If "CHMOD" doesn't mean much to you, open your Cpanel and log into your website.
*Open your File Manager.
*Click your "public_html" folder, then your newly created tiki folder.  Inside you should see all your Tiki folders and files.
*Click on the name of the folder "backups" such that Cpanel shows you the options to "Delete this folder and all files under it", "Rename this folder", "Change permissions", "Move this folder", and "Copy this folder".  Choose "Change permissions".
*There are 3 modes and 3 categories.  The 3 modes are Read, Write, and Execute.  The 3 categories are User, Group, and World.  There is a fourth line with permissions, and numbers for each column, like "7-5-5".  There is also a "Change" button.
*Chances are the folder "backups" has all the boxes checked except for two, the Write-group and the Write-world, and the number is probably "7-5-5".  You want to check those two boxes, so that all 9 are checked.  The permission numbers will change automatically to "7-7-7".  Then click the "Change" button.  You'll get a confirmation message.
*Joy!  Do this to the following folders:
**backups
**db
**dump
**games and games/thumbs and games/flash
**images
**img/wiki and img/wiki-up
**lib/Galaxia/processes
**modules/cache
**styles
**temp
**templates
**templates_c
*The previous install instructions had these two notes: One, is that some webhosts might not like "7-7-7" permissions, but it didn't say what to do if that happens.  The second was that if you use an ftp program to set permissions, and if it asks you if you want to include all the files in the folder to the permission change, do so.
*I'm basing my list mostly on the list from the previous instructions.  Except when I followed the those instructions, the install failed and told me "Tiki Installer cannot proceed:  The directory '/styles' is not writeable."  (You'll see I added this above now.)  If you get a similar message, just do what is says and change the permission of the offending folder to "7-7-7".


__Step 6:  Installing Tikiwiki__
*What?  Installing?  What have I been doing this whole time then?  You've been just setting things up, getting everything in it's place, ready for the big moment.  You've got the files uploaded, and the database is created and ready to go.  Might as well close out of your Cpanel, close out of ftp program--if this is going to be successful, you're just going to need your browser from here on out.  Open up your browser, and head to the following address:  www.(yourwebsitename).com(net,etc)/(tikifoldername, ie tiki)/tiki-install.php
**Ex. www.tikisite.com/tiki/tiki-install.php
*IF everything is in place (step 2-4), and IF you've set up all your permissions (step 5), instead of an error page telling you which permission you forgot, you'll get a page with the heading "Tiki installer v1.8.3 (CVS)".  Under that it says "reload"--ignore that.  Under that, it has the message "Tiki cannot find a database connection" which seems like an error, but it's not, if you're this far, you're doing great.
*In the "Database type:" row, use the drop-down box to choose MySQL 4.0.x (or the default 3.x if that's what your website supports)
*In the "Host:" row, it should say "localhost" (or "localhost.localdomain").  Leave that alone.
*In the "User:" row, enter the user name you created in Step 2.
*In the "Password:" row, enter the password you created in Step 2.
*In the "Database name:" row, enter the database name from Step 2.
**Don't forget, your Cpanel added your login prefix to the User and Database name.  See step 2.
*Click the "Submit Query" button
*If this went right, you'll be on a similar looking screen with the message, "Welcome to the installation script!"
*The first choice is "Create database with profile" and another drop-down combo box.  The default choice is "Basicenabled profile for easy use" and that works for me.  Click the button next to it called "create".  (Don't worry about the rest of the page).
*The new page has a top window and a bottom window.  For me at least, the top window is "Print operations executed successfully" and has a bunch of code in it.  The bottom window says "Print operations failed" and is empty.  I hope your's looks the same!
*If you scroll down, you see a hyperlink for "Click here to remove the install script and proceed into tiki".  Click it.
*I then got a message about "Security Alert!   Tiki installer failed to rename tiki-install.php. Please remove or rename the file, tiki-install.php, manually. Others can potentially wipe out your Tiki database if you do not remove or rename this file.  Proceed to your site after you have removed or renamed tiki-install.php"  What does that tell me?  Maybe I should've changed the permissions to that file?  Not sure.  Using my ftp program (or File Manager in Cpanel), I either remove or rename the file like it says to do.  Then I click the hyperlink "Proceed to your site" (which is a link to http://www.yoursitename.com/foldername/index.php).


That should be it!  You should be looking at the Home Page of your new Tiki site!  From there, you should log in as username=admin and password=admin.  Note, the username/password is admin and admin.  This has nothing to do with the username and password you created for your database in step 2.  It's "admin" and "admin".  (Then first thing it does is make you change the password!  This is a good thing for security.)


Next, start enjoying Tiki!  I'm sure everyone has their own strategy for attacking the new website, but for the record, I do the following:

*Create a new user with all permissions.  I'd rather have my welcome page say "created by Creativename" than "created by admin". See CreatingNewUserWithAllPermissions.
*Go to admin - features, and select the features you think you will actually use.  You can always change them later.
*Create a new menu, just with Home Page in it, just for starters.
*Create a new module called "Main Menu", and put the new menu in it.  Assign it "anonymous" permission.  This becomes the menu visitors to your site see, meanwhile that huge admin menu should only be something you see when you are personally logged in as an administrator.
*Then personally, I start modifying the theme, but I like doing that!  With so many themes to choose from, many of you will be happy just playing around with all the new features.  But I guess that's the fun of Tiki.


I'll leave you with a few useful links:
[http://tikiwiki.org/InstallTikiTroubleShootingDoc|Troubleshooting:  http://tikiwiki.org/InstallTikiTroubleShootingDoc]
[http://tikiwiki.org/TikiDocumentation|Documentation:  http://tikiwiki.org/TikiDocumentation]
[http://tikiwiki.org/tiki-read_article.php?articleId=82|PHP Memory Limit Requirements:  http://tikiwiki.org/tiki-read_article.php?articleId=82]
[http://tikiwiki.org/tiki-index.php?page=ThemesDoc|Themes:  http://tikiwiki.org/tiki-index.php?page=ThemesDoc]


If you have issues or questions, I recommend the forums and the Tiki IRC channel.

---(1.9.2)------------------------------------
!TikiWiki 1.9.2 FTP installation guide

-=Installing Tiki 1.9.2 to a Remotely Hosted Website=-

Same as 1.8.2...

But you have additionally to create the folder img/trackers.
CHMOD it with "7-7-7"
Also CHMOD  folder "/whelp"

Thats it...

---(1.9.5)------------------------------------
!TikiWiki 1.9.5 FTP installation guide

-=Installing Tiki 1.9.5 to a Remotely Hosted Website=-

Pardon my newb-ness. First time wiki'ing.

I tried following the 1.9.2 instructions and got most of the way. Turned out some new dirs showed up I think. Here is the list of dirs from the shell file included with 1.9.5:

backups 
db 
dump 
files 
img/wiki 
img/wiki_up 
img/trackers 
modules/cache 
temp 
temp/cache 
templates_c 
templates 
styles 
maps 
whelp 
mods

You need to go to each of these dirs and do two things:

1) Make sure it exists. Create it if it doesnt.
2) Chmod it 777

If your on a remote host like I am you should have a util to do this. I use webmasters.com and they have a file management tool that lets you set permissions and create directories. 

Some sites may also let you create the directories through ftp and if your lucky even do the chmods but I havn't tried that with webmasters, just know its possible through ftp.

Btw, I had to remove the description of this page because the preview/save functions were giving an error saying "descript = ..." was a bad variable.  I am assuming the description is in an old version and someone who knows what they are doing can put it back. :D
{VERSIONS}