In my deveopment personal Apache
I test so many things, I can never install anything in the root.
So whatever I install it is a subdirectory.
For Cabbit 1.1alpha I made the folder: /_cabbit11a/
Now after some trial and error I started changing the config.php
I show only the lines had to be changed
# Development Environment
case 'Development':
# Site Path
define("__SITE_PATH", $_SERVER['DOCUMENT_ROOT'].'/_cabbit11a');
# Base URL
define("__BASE_URL", '/_cabbit11a/'); // Note slash '/' at the end
# Image Repository
define("__IMAGE_REPOSITORY", "/_cabbit11a/public/images");
# Turn on/off Error Reporting
error_reporting(E_ALL);
ini_set('display_errors', 1); // 1=ON
For running Cabbit from subdirectory also .htaccess Rewrite needs some changes
DirectoryIndex /_cabbit11a/public/index.php
RewriteRule (.*) /_cabbit11a/public/index.php?rt=$1 [L]
After these changes the links work.
But my server DOES NOT support short_open_tag.
And this is how it will be most everywhere in future, too.
It is PHP Recommendation!!
PHP INI
short_open_tag Off
So I had to edit those 'bad' pages.
<?= image_link_tag("cabbit_logo.png") ?>
<h2>Welcome</h2>
<p>Hello world welcome to Cabbit 1.1
<?= link_to("show more", $controller = "index", $action ="show", $id = '5') ?>.</p>
Becomes in correct PHP
<?php echo image_link_tag("cabbit_logo.png") ?>
<h2>Welcome</h2>
<p>Hello world welcome to Cabbit 1.1
<?php echo link_to("show more", $controller = "index", $action ="show", $id = '5') ?>.
</p>
All of this took me maybe 1 hour.
But now I got my first Cabbit installation going.
It is nice 🙂
Very well done, jerry_louise