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.
Posted in General, PHP, Web | No Comments »
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….
Posted in General | No Comments »
July 20th, 2007
I stumbled across Daniel Robbins blog (the creator of Gentoo) and he had an OK article on how to config your bash prompt.
While he makes a good point for using just ‘>’ and putting everything else in the window bar, that just doesn’t cut it for me.
So - heres my suggestion which I have hacked from a CentOS server I ssh into on occasions:
PS1=”\[\033[1;31m\][\$(date +%H):$(date +%M)]\[\033[1;34m\][\u@\h:\w]#\[\033[0;37m\] ”
Just whack that into bash to try it out. To save it put it into your .bashrc file
Posted in General | No Comments »
June 1st, 2007
I’ve been having some instability due to (i think) my particular motherboard (ASUS M2N-E). I’ve tried a million different settings but have finally found a set of grub options which work.
Some of the options are perhaps not necessary, but I’m sick of trial and error so they will stay! I post this because I’ve seen similar problems with no solutions in forums. So if you are having random crashes with ubuntu feisty… try that grub line out.
ro quiet splash noapic irqpoll noacpi acpi=off
the irqpoll is for the usb ports……
Posted in Ubuntu | 2 Comments »
May 30th, 2007
Grabbed this from irc - so very very handy.
Chuck this in your .bash_aliases file (if you have enabled it) and you will be able to recursively remove those pesky hidden svn folders from a directory tree with rmsvn:
alias rmsvn="find . -name '*.svn' -exec rm -rf {} \;"
Posted in Ubuntu | No Comments »
May 9th, 2007
I was complaining to someone the other day about how most text editors fail to deal with large files. I was trying to edit a 8mb sql file and my default editors eclipse and cream (a vim extension) both couldn’t handle it. I then tried emacs and jEdit neither of which I particularly like. jEdit at least opened the file. But the interface is clunky and on my system at least, wont go past 800×600 screen real estate…. Read the rest of this entry »
Posted in Open source, PHP, Ubuntu | No Comments »
April 29th, 2007
Posted in General | No Comments »
April 29th, 2007
Posted in General | No Comments »
April 29th, 2007
this blog is dragging along to no-where.
so.
i am going to give it one more burst of effort.
i’ll try 20 posts in 20 days… or give up and resign it to the google archives forever
Posted in General | No Comments »