Talk:Jinzora - web based multimedia application

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search

PHP Recommended settings

If you have other things running on your LAMP set-up, you may not want to edit the global php.ini file as stated in the guide. Seems like local php.ini only works for CGI-based setup. I tried using a local php.ini but the file was not read. As a workaround, I edited the .htaccess file instead (Jinzora comes with a .htaccess file already).

<filesmatch "\.php$">
allow from all
</filesmatch>

php_value max_execution_time 300
php_value memory_limit 32M
php_value post_max_size 32M
php_value upload_max_filesize 32M

#Uncomment the below to enable podcasting
#Mod rewrite must be enabled!!!

#RewriteEngine on
#RewriteRule ^podcast\.rss podcast.php

You will also need to edit the Apache virtual server config to set AllowOverride All. On my setup (Apache2 & PHP5), the file was /etc/apache2/sites-available/default.

...
DocumentRoot /var/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory "/var/www/">
		Options FollowSymLinks Indexes MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
		# in /apache2-default/, but still have / go to the right place
		RedirectMatch ^/$ /apache2-default/
	</Directory>
...

Hope this helps. - Jgiam 20:12, 23 December 2007 (CST)