Archive for August, 2007

CoolUri plugin for typo3

Thursday, August 30th, 2007

This is perhaps more of a convenient place for me to store install instructions than anything… BUT:

Installing CoolUri in Typo3 on linux / apache2 / php5

Based on: http://docs.google.com/View?docid=dd33gg45_3f8j96p
Steps :

Check if the weberver has the following settings:
PHP5+ with SimpleXML enabled
MySQL 4.1+
Apache’s mod_rewrite enabled

Go into the extension manager
Choose menu option ‘Import extensions’
Upload extension file: cooluri_1.0.4.t3x
Found here ( http://typo3.org/extensions/repository/view/cooluri/ )

Once imported, install it and accept its defaults (altering tables etc.)

Add a htaccess:
(check that it covers all folders in the root directory)

# Enable URL rewriting
RewriteEngine On
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/.*$ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.
RewriteRule .* index.php [L]

Copy across the CoolUriConf xml file:
cp typo3conf/ext/cooluri/cooluri/CoolUriConf.xml_default typo3conf/CoolUriConf.xml

Add a domain record
- Go to the homepage, -> NEW -> DOMAIN (add the domain name in)

Add the following to the main template setup::

# Cooluri
config.simulateStaticDocuments = 0
config.baseURL = http://mtaa.supernaut/
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1

Go to the backend and select the ‘CoolUri’ menu item
Click ‘Delete/Update all’ -> DELETE EVERYTHING AND START AGAIN

Clear cache

Try.

For CATMENU see note from Jan:

try to remove the part which removes cHash parameter from URLs. Since
tt_news are cached, they either require cHash or you’d need to make them
COA_INT.

apache2ctl and apache2 virtual host blah blah

Tuesday, August 14th, 2007

Gary pointed me to apache2ctl the other day and now I cant live with out it.

Useful things:

apache2ctl - t (check the syntax of virtual host files BEFORE reloading and breaking apache)

apache2ctl - M (show all the loaded modules - ie. check if rewrite is enabled and working)

apache2ctl - E (log startup errors to file)

apache2ctl - h (show the rest of the options)

Also, I was having issues getting a “real url” module called cooluri working for a typo3 site. In the end it was because my virtual host file was missing (link) :
AllowOverride All

Thats one of those things thats happened before but was forgotten along the way …. hopefully it will be useful for someone out there searching for why mod_rewrite isn’t working the way it should do….