Background | |
|
Checking if something is actually wrong | |
Swoobadoo");?> insert peartest.php Now test whether you can run the application, pointing your browser to it. If you see the message
then you will probably not have any problems with PEAR. You can jump directly to the Tiki installation section. However, if you get warnings about "Safe mode restrictions", you will need to install a local copy of PEAR. Also, if you get a message telling that DB.php cannot be found, you will need to install a local copy of PEAR. |
Installing the PEAR stuff locally | |
Only do this step for 1.7.x Tiki's. | |
1.8 onwards uses ADODB instead of PEAR continue down to "The Tiki installation" I have found two types of Apache installations: With the good one the restrictions are friendly and you can change the PHP include path using .htaccess files. With the bad one you must hand-code a few paths but it will work, anyhow. First some basic stuff you need to do whatever installation method you must use. For the sake of simplicity we will install PEAR to directory php under our public_html directory, the actual path will be /home/customers/acmecorp/public_html/php You will need to find the PEAR sources, download them decide where you want to install it. If you find out that the files have by chance been installed by the web hotel owner you can copy the directory from the root owned directory, if you are allowed to do so. If not, you can fetch a zipped copy from the PEAR website and unzip the package to your public_html directory. After unzipping the files make sure that you have the correct ownwership for the files. Just to make sure this is the case go to the public_html directory and give two commands:
The above may not be necessary, however but does no harm, either. |
The easy case | |
Add the following line to the .htaccess file (if the file does not exist, create it):
That's all. Now you can re-run the peartest.php page and if it works now you are done with the PEAR installation and can continue with Tiki. |
The handmade way | |
Then find all lines that are trying to include the MySQL module:
Also, add the following line to the beginning of the functions that are affected (at least functions &connect and &factory);
Now you will need to make one more modification. Replace the require_once stuff in file "DB/mysql.php" as follows:
|
Testing the PEAR installation | |
|
The Tiki installation | |
Unzip the Tiki stuff to your public_html directory. You should find the directory structure there starting from tiki/. Remember that our problem was the lack of root access to our MySQL and we only have one database available and we cannot create another. Therefore we must tell Tiki to use that very database and run a bit more complicated (or accurate) creation script. Go to your tiki/db directory and edit the tiki-db.php file as follows:
//require_once('/home/customers/acmecorp/public_html/php/DB.php');
// Often MySQL is being run in another server, check your situation!
Now you can run the sql creation script in the same directory. I prefer to do this in the MySQL command prompt:
Enter your password and when you are in the MySQL command prompt enter
You should now see some 75 messages about the creation of tables but no error messages. After the script has finished enter
If you see the following table listing you have succeeded in creating the tables and you can quit the command prompt:
|
Configuring Smarty safe_mode friendly | |
After this you should be able to open Tiki using your regular browser. The rest of the stuff can be found in the Tiki manual and will not be covered here. |
Open Basedir tweaks | |
Add these lines to tiki-install.php, tiki-setup.php, topic_image.php, tiki-download_file.php and show_image.php just after the first line: ini_set('include_path','.'); and if this does not fix your problems, try to add this line too: ini_set('session.save_path','/some/dir/where/u/can/write/'); If you still have the same problem with the tweaks suggested above you should try to modify the lib/init/initlib.php
-
|
Installing 1.8.2 under safe mode | |
setup_smarty.php:
function Smarty_TikiWiki($tikidomain = "") {
//if (!is_dir($save_path)) {
tiki-setup_base.php:
// ini_set('url_rewriter.tags', '');
-
|
Installing 1.8.3 or newer under safe mode | |
Have fun! |