<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.creativecommons.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fourstones</id>
		<title>Creative Commons - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.creativecommons.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fourstones"/>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/wiki/Special:Contributions/Fourstones"/>
		<updated>2026-06-10T06:17:08Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=25563</id>
		<title>CcHost</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=25563"/>
				<updated>2009-08-09T23:21:23Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Current Stable Release */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
{{Project}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
'''ccHost''' is Creative Commons' open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) [http://en.wikipedia.org/wiki/Content_management_system content management system] project that powers [http://ccmixter.org ccMixter] and is the winner of the [http://creativecommons.org/weblog/entry/6026 Linux Journal LinuxWorldExpo Product Excellence Award] for '''Best Open Source Solution.''' Read more about ccHost [[#Zeitgeist|here]].&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Sign up for [http://sourceforge.net/export/rss2_projfiles.php?group_id=80503 our RSS release feed] to make sure you don't miss important bug fixes and feature updates.&lt;br /&gt;
&lt;br /&gt;
=== Current Stable Release ===&lt;br /&gt;
Latest stable build of [https://sourceforge.net/projects/cctools/files/ccHost/ ccHost 5.1] is available in ZIP archive format.&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
[[cchost/Documentation|ccHost 5 Documentation]]&lt;br /&gt;
&lt;br /&gt;
=Communication=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== People ===&lt;br /&gt;
* [[User:fourstones|Victor Stone]]&lt;br /&gt;
* [[User:Jon Phillips|Jon Phillips]]&lt;br /&gt;
=== Contacting  ===&lt;br /&gt;
The mailing list is the best way to get our attention. That and other methods are listed below:&lt;br /&gt;
* Mailing List: https://lists.sourceforge.net/mailman/listinfo/cctools-cchost&lt;br /&gt;
** [http://sourceforge.net/mailarchive/forum.php?forum=cctools-cchost Archive]&lt;br /&gt;
* Chat: #cc on irc.freenode.net&lt;br /&gt;
* Wiki: This page (http://wiki.creativecommons.org/CcHost)&lt;br /&gt;
* [[Cchost/Developers#Bugs_and_Feature_Requests|Bugs and feature requests]]&lt;br /&gt;
&lt;br /&gt;
= Zeitgeist =&lt;br /&gt;
=== Goal ===&lt;br /&gt;
The goal of this project is to spread media content that is licensed under Creative Commons throughout the web in much the same way that weblogs spread CC licensed text. &lt;br /&gt;
=== Short Description ===&lt;br /&gt;
&amp;quot;Web-based System Supporting Remixing and Collaboration on Media&amp;quot;&lt;br /&gt;
=== Slightly Longer Description === &lt;br /&gt;
'''ccHost''' is an open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) project that provides web-based infrastructure to support collaboration, sharing, and storage of multi-media using the Creative Commons licenses and metadata. It is the codebase used by [http://ccmixter.org ccMixter] and [[#Usage Examples|other sites]].&lt;br /&gt;
&lt;br /&gt;
Besides its focus on sharing content, ccHost differentiates itself from other multi-media hosting programs by emphasizing the '''reuse''' (a.k.a. remixing) of content between artists, not only between artists on any given installation of ccHost, but between all installations across the web and any web site that implements the Creative Commons [http://ccmixter.org/media/viewfile/pool_api_doc.xml Sample Pool API], including non-ccHost sites such as the [http://freesound.iua.upf.edu/ freesound project].&lt;br /&gt;
&lt;br /&gt;
=== Usage Examples ===&lt;br /&gt;
&lt;br /&gt;
* [http://ccmixter.org ccMixter] - Primary usage of ccHost is the Creative Commons remix site, ccMixter.&lt;br /&gt;
* [http://www.openclipart.org/ Open Clip Art Library ccHost in testing]&lt;br /&gt;
* [http://www.openfontlibrary.org Open Font Library]&lt;br /&gt;
* [http://freemusic.freeculture.org Freemusic Project]&lt;br /&gt;
* [http://www.opensourcecinema.com/cchost Open Source Cinema]&lt;br /&gt;
* [http://rayne.hellawack.net/ Matrix Rayne Online]&lt;br /&gt;
* [http://remix.machinehasnoagenda.com/ remix.linux]&lt;br /&gt;
* [http://www.ccmixter.co.za/ ccmixter South Africa]&lt;br /&gt;
* [http://fourstones.net fourstones.net] Victor's personal website&lt;br /&gt;
* [http://www.esolpc.com/teacherhost/ TeacherHost] - for Instructors to share instructional materials.&lt;br /&gt;
* [http://adrenalinicsound.com/ Adrenalinic Sound]&lt;br /&gt;
* [http://creativecommons.org.tw/formoz ccMixter from CC Taiwan]&lt;br /&gt;
* [http://www.overmundo.com.br/overmixter Overmixter - Brazil]&lt;br /&gt;
* [http://www.iamacc.org/ Iamacc.org]&lt;br /&gt;
* [http://www.enciclopediacecilia.org/musicast/ Remix Cecilia] at the Enciclopedia Cecilia project, music in the catholic church.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
= Appendix A: Compatibility =&lt;br /&gt;
&lt;br /&gt;
=== Browsers ===&lt;br /&gt;
&lt;br /&gt;
Recently tested on: Firefox 2/3 Mac/PC/Linux, IE 7 PC, Safari Mac (IE8 requires &amp;quot;compatibility&amp;quot; mode - see [[Cchost/guide/Troubleshooting#IE8_Layout_Issues|here]] for workaround)&lt;br /&gt;
&lt;br /&gt;
Cookies must be enabled.&lt;br /&gt;
&lt;br /&gt;
Most skins (the ones people will want to use) require Javascript enabled.&lt;br /&gt;
&lt;br /&gt;
=== Servers ===&lt;br /&gt;
&lt;br /&gt;
Primary development is done on Ubuntu 8.04 (hardy heron) using Apache, mySQL, and PHP. The actual dev setup is described in detail [[Cchost/Developers/Victor's_Dev_Setup|here]].&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
ccHost on Apache (2.0.49 up to at least apache-2.0.55-r1) on Linux, &lt;br /&gt;
&lt;br /&gt;
One should be able to easily install mySQL, PHP, and Apache (if they are not already available) through their distributions packaging system. See the dev setup above.&lt;br /&gt;
&lt;br /&gt;
==== Windows IIS Server ====&lt;br /&gt;
&lt;br /&gt;
{{Infobox|ccHost has not been seen running or tested on Windows for a long time - several versions ago.}}&lt;br /&gt;
&lt;br /&gt;
Windows users with their installation disks may install optionally the Windows IIS Web Server. This option has been tested. However, there might still be issues with it, and if so, [http://sourceforge.net/tracker2/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966 please file a bug].&lt;br /&gt;
&lt;br /&gt;
Even if you using Apache on Windows you may need to have IIS installed if you plan to use mail contact functions.&lt;br /&gt;
&lt;br /&gt;
==== Windows Apache ====&lt;br /&gt;
There are many good tutorials for setting up a Windows/Apache/MySQL/PHP site ([http://google.com/search?q=installing+WAMP Google search]) and all three subsystems now come with Windows installers making the job of installing relatively straightforward.&lt;br /&gt;
&lt;br /&gt;
====== XAMPP ======&lt;br /&gt;
Windows installations without Apache, mySQL and PHP already installed should consider using [http://www.apachefriends.org/en/xampp.html XAMPP] for Windows, which provides an easy install of Apache web server, MySQL database server, and PHP and perl programming languages. This is an easy way to get up and running, with the underlying technology necessary to use ccHost.&lt;br /&gt;
&lt;br /&gt;
Follow the instructions for installation of XAMPP to know where to put the uncompressed ccHost package to properly work with your local setup.&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X ====&lt;br /&gt;
&lt;br /&gt;
''NOTE: This setup is similar to Linux.''&lt;br /&gt;
&lt;br /&gt;
Verified:&lt;br /&gt;
&lt;br /&gt;
* OS X 10.4.6&lt;br /&gt;
* default OS X MySQL build, 4.0.26&lt;br /&gt;
* GetID3 1.7.7&lt;br /&gt;
* default Apache/PHP&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/Concepts&amp;diff=24020</id>
		<title>Cchost/Concepts</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/Concepts&amp;diff=24020"/>
				<updated>2009-06-16T05:27:10Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with '=Concepts= *Content *Query Engine *Templates *Commands *[[...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Concepts=&lt;br /&gt;
*[[cchost/concepts/Content|Content]]&lt;br /&gt;
*[[cchost/concepts/Query Engine|Query Engine]]&lt;br /&gt;
*[[cchost/concepts/Templates|Templates]]&lt;br /&gt;
*[[cchost/concepts/Commands|Commands]]&lt;br /&gt;
*[[cchost/concepts/Skins|Skins]]&lt;br /&gt;
*[[cchost/concepts/Sample Pools|Sample Pools]]&lt;br /&gt;
*[[cchost/concepts/Virtual Roots|Virtual Roots]]&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Social_Interaction&amp;diff=24019</id>
		<title>Cchost/concepts/Social Interaction</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Social_Interaction&amp;diff=24019"/>
				<updated>2009-06-16T05:21:07Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Reviewing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Background=&lt;br /&gt;
The main form of interaction at a ccHost site, the one that differentiates it from most other content management systems, is deriving works from each other (a.k.a. remixing). Rather than sharing status messages, being in a circle of &amp;quot;friends&amp;quot; or &amp;quot;followers,&amp;quot; the artists are having a conversation with the media itself. &lt;br /&gt;
&lt;br /&gt;
ccHost ''does'' offer ways of interacting that relate directly to the media. In this document we'll discuss the various ways people can show their appreciation and even help &amp;quot;market&amp;quot; the content.&lt;br /&gt;
&lt;br /&gt;
==Ratings==&lt;br /&gt;
ccHost offers admins a choice between two types of ratings system. The &amp;quot;star&amp;quot; method ''or'' the &amp;quot;recommends&amp;quot; method. (The recommends system is also referred to as the &amp;quot;thumbs up&amp;quot; method.)&lt;br /&gt;
&lt;br /&gt;
You can not enable ''both'' the start method and the recommend method at the same time. It's one or the other.&lt;br /&gt;
&lt;br /&gt;
===The 5 Star Method===&lt;br /&gt;
When the star system is enabled, a strip of 5 graphical stars appears with every upload. When a user that is eligible for rating hovers over the stars, they change color indicating they can choose one to signify their ratings. &lt;br /&gt;
&lt;br /&gt;
Ratings are stored in the database as a number between 1 and 5. (Technically the number stored is 100 times the rating.) &lt;br /&gt;
&lt;br /&gt;
To enable the star system click on ''Global Settings'' then ''Ratings'' (or browse to '''admin/ratings'''). In that form check the ''Ratings'' option and un-check the ''Use 'Recommend' style''. &lt;br /&gt;
&lt;br /&gt;
Administering a site with a star rating system can require a lot of tweaking when the system is abused (i.e. a &amp;quot;1 star bombing run&amp;quot;). In order to watch and correct abuses browse to '''admin/ratings/manage''' which allows you to view specific activity. Click on the ''reviewers'' name to filter just one user or the upload name to filter on a specific upload. Likewise for IP, ratings and upload.&lt;br /&gt;
===Recommends (Thumbs Ups)===&lt;br /&gt;
===Who Can Rate?===&lt;br /&gt;
Only registered users can rate and artists can not rate/recommend themselves. &lt;br /&gt;
==Reviewing==&lt;br /&gt;
==Playlist/Collections/Favorites==&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Social_Interaction&amp;diff=24018</id>
		<title>Cchost/concepts/Social Interaction</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Social_Interaction&amp;diff=24018"/>
				<updated>2009-06-16T05:20:42Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with 'Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{cchost_head}} {{cchost_5_1}} {{lowercase}} =Background= The main ...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Background=&lt;br /&gt;
The main form of interaction at a ccHost site, the one that differentiates it from most other content management systems, is deriving works from each other (a.k.a. remixing). Rather than sharing status messages, being in a circle of &amp;quot;friends&amp;quot; or &amp;quot;followers,&amp;quot; the artists are having a conversation with the media itself. &lt;br /&gt;
&lt;br /&gt;
ccHost ''does'' offer ways of interacting that relate directly to the media. In this document we'll discuss the various ways people can show their appreciation and even help &amp;quot;market&amp;quot; the content.&lt;br /&gt;
&lt;br /&gt;
==Ratings==&lt;br /&gt;
ccHost offers admins a choice between two types of ratings system. The &amp;quot;star&amp;quot; method ''or'' the &amp;quot;recommends&amp;quot; method. (The recommends system is also referred to as the &amp;quot;thumbs up&amp;quot; method.)&lt;br /&gt;
&lt;br /&gt;
You can not enable ''both'' the start method and the recommend method at the same time. It's one or the other.&lt;br /&gt;
&lt;br /&gt;
===The 5 Star Method===&lt;br /&gt;
When the star system is enabled, a strip of 5 graphical stars appears with every upload. When a user that is eligible for rating hovers over the stars, they change color indicating they can choose one to signify their ratings. &lt;br /&gt;
&lt;br /&gt;
Ratings are stored in the database as a number between 1 and 5. (Technically the number stored is 100 times the rating.) &lt;br /&gt;
&lt;br /&gt;
To enable the star system click on ''Global Settings'' then ''Ratings'' (or browse to '''admin/ratings'''). In that form check the ''Ratings'' option and un-check the ''Use 'Recommend' style''. &lt;br /&gt;
&lt;br /&gt;
Administering a site with a star rating system can require a lot of tweaking when the system is abused (i.e. a &amp;quot;1 star bombing run&amp;quot;). In order to watch and correct abuses browse to '''admin/ratings/manage''' which allows you to view specific activity. Click on the ''reviewers'' name to filter just one user or the upload name to filter on a specific upload. Likewise for IP, ratings and upload.&lt;br /&gt;
===Recommends (Thumbs Ups)===&lt;br /&gt;
===Who Can Rate?===&lt;br /&gt;
Only registered users can rate and artists can not rate/recommend themselves. &lt;br /&gt;
==Reviewing==&lt;br /&gt;
==Playlist/Collections/Favorites&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24016</id>
		<title>User talk:Fourstones</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24016"/>
				<updated>2009-06-16T04:38:10Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* &amp;quot;dead page&amp;quot;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==&amp;quot;dead page&amp;quot;?==&lt;br /&gt;
What did you mean to do in [http://wiki.creativecommons.org/index.php?title=CcHost_Community_Building&amp;amp;diff=19674&amp;amp;oldid=1431 this edit]?  If you'd like the pages deleted, I'd be happy to do that; you can mark them with &amp;lt;nowiki&amp;gt;{{del}}&amp;lt;/nowiki&amp;gt;, or just ask me.  If you mean something else, a clarification would be helpful. [[User:JesseWeinstein|JesseWeinstein]] 23:40, 12 June 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:I don't remember but yes, it's a dead page. Thanks. [[User:Fourstones|Fourstones]] 04:36, 16 June 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24015</id>
		<title>User talk:Fourstones</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24015"/>
				<updated>2009-06-16T04:36:54Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* &amp;quot;dead page&amp;quot;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==&amp;quot;dead page&amp;quot;?==&lt;br /&gt;
What did you mean to do in [http://wiki.creativecommons.org/index.php?title=CcHost_Community_Building&amp;amp;diff=19674&amp;amp;oldid=1431 this edit]?  If you'd like the pages deleted, I'd be happy to do that; you can mark them with &amp;lt;nowiki&amp;gt;{{del}}&amp;lt;/nowiki&amp;gt;, or just ask me.  If you mean something else, a clarification would be helpful. [[User:JesseWeinstein|JesseWeinstein]] 23:40, 12 June 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
I don't remember but yes, it's a dead page. Thanks. [[User:Fourstones|Fourstones]] 04:36, 16 June 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24014</id>
		<title>User talk:Fourstones</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=User_talk:Fourstones&amp;diff=24014"/>
				<updated>2009-06-16T04:33:57Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* &amp;quot;dead page&amp;quot;? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==&amp;quot;dead page&amp;quot;?==&lt;br /&gt;
What did you mean to do in [http://wiki.creativecommons.org/index.php?title=CcHost_Community_Building&amp;amp;diff=19674&amp;amp;oldid=1431 this edit]?  If you'd like the pages deleted, I'd be happy to do that; you can mark them with &amp;lt;nowiki&amp;gt;{{del}}&amp;lt;/nowiki&amp;gt;, or just ask me.  If you mean something else, a clarification would be helpful. [[User:JesseWeinstein|JesseWeinstein]] 23:40, 12 June 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
I don't remember but yes, it's a dead page. Thanks.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/Developers&amp;diff=23869</id>
		<title>Cchost/Developers</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/Developers&amp;diff=23869"/>
				<updated>2009-06-12T18:56:29Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* New Checkout */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=External APIs=&lt;br /&gt;
[[cchost/concepts/APIs|APIs]]&lt;br /&gt;
&lt;br /&gt;
= Source Code =&lt;br /&gt;
* [http://code.creativecommons.org/svnroot/cchost/trunk/ Browsable Source Code (Anonymous)]&lt;br /&gt;
* [http://code.creativecommons.org/viewsvn/cchost/trunk/ Pretty version]&lt;br /&gt;
* [http://wiki.creativecommons.org/Source_Repository_Information How to Check Out Code]&lt;br /&gt;
**Specifically for ccHost: &lt;br /&gt;
*** Log in as administrator on your ccHost installation&lt;br /&gt;
*** '''Then''' do your svn update&lt;br /&gt;
*** Browse to &amp;lt;nowiki&amp;gt;http://your_installation?update=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|The source for ccHost has moved from SourceForge. For existing clients: you must perform the svn 'relocate' command to switch over. To do this, change directory to the root of your ccHost svn project, then perform the following command:&lt;br /&gt;
&lt;br /&gt;
  svn switch --relocate &amp;lt;nowiki&amp;gt;https://cctools.svn.sourceforge.net/svnroot/cctools http://code.creativecommons.org/svnroot&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== New Checkout ==&lt;br /&gt;
&lt;br /&gt;
Use the following command to get the latest source control version of the code:&lt;br /&gt;
&lt;br /&gt;
 svn co http://code.creativecommons.org/svnroot/cchost/trunk LOCAL_CCHOST_PATH&lt;br /&gt;
&lt;br /&gt;
(Substitute a path to put the code into. Dot (.) is valid for the current directory)&lt;br /&gt;
&lt;br /&gt;
{{Infobox|'''NOTE''': This is only an anonymous public checkout. If you want to commit, you will need to visit [http://code.creativecommons.org the CC code site].}}&lt;br /&gt;
&lt;br /&gt;
=When to make changes to ccHost core=&lt;br /&gt;
Never.&lt;br /&gt;
==Seriously==&lt;br /&gt;
Never.&lt;br /&gt;
==But I have changes to share==&lt;br /&gt;
Oh, that's different. Definitely [[HOWTO_Patch|submit a patch]]! But before going too far down this road you definitely want to hop on the [https://lists.sourceforge.net/mailman/listinfo/cctools-cchost dev mailing list]. If you are shy ask to speak with Victor or Jon in private.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Bugs and Feature Requests =&lt;br /&gt;
* [https://sourceforge.net/tracker/?atid=559966&amp;amp;group_id=80503&amp;amp;func=browse Report Bugs]&lt;br /&gt;
* [https://sourceforge.net/tracker/?group_id=80503&amp;amp;atid=559969 Request Features]&lt;br /&gt;
&lt;br /&gt;
''Make sure to use the 'ccHost' category when filing bugs. Also, please use a real email so that we can followup on any bugs posted. Be descriptive when posting and commenting on bugs (every bit counts).''&lt;br /&gt;
&lt;br /&gt;
=Coding in ccHost=&lt;br /&gt;
==ccHost's Model for a 'Module'==&lt;br /&gt;
There is no formalized higher level model for a 'module' or 'plugin' in ccHost. The model is the same as PHP: a source file. All files with a .PHP extension that reside in the '''&amp;lt;local_files&amp;gt;/lib''' directory will be parsed and executed for every page request to a ccHost installation. Where &amp;lt;local_files&amp;gt; is the name of the directory the administrator specified during installation as to where site customizations reside (also editable from '''admin/paths''')&lt;br /&gt;
&lt;br /&gt;
Because of the automatic loading you should be aware of some performance and timing considerations.&lt;br /&gt;
&lt;br /&gt;
===Keep Per Page Execution at a Minimum===&lt;br /&gt;
You should have no significant code that executes outside of functions. You module will be loaded on each every page (and AJAX) request so (other than registering for ccHost events) you should keep all your code in functions that get called in response to ccHost events.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     for( $i = 0; $i &amp;lt; 52; $i++ ) { $deck[] = rand() % 52; } '''// this is bad'''&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Instead of the above, you would do:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     function start_my_shuffle()&lt;br /&gt;
     {&lt;br /&gt;
       global $deck;&lt;br /&gt;
 &lt;br /&gt;
       for( $i = 0; $i &amp;lt; 52; $i++ ) { $deck[] = rand() % 52; }&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     // no we only do the shuffle once after ever upload&lt;br /&gt;
     CCEvents::AddHandler( CC_EVENT_UPLOAD_DONE, 'start_my_shuffle' );&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wait for Initialization===&lt;br /&gt;
It is rare that you will want to do anything before the environment is fully initialized and we know who the currently logged in user really is. &lt;br /&gt;
&lt;br /&gt;
If you really need to do some calculation on each page hit, register for the 'APP_INIT' event and perform it then:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    CCEvents::AddHandler( CC_EVENT_APP_INIT, 'my_app_init_func' );&lt;br /&gt;
 &lt;br /&gt;
    function my_app_init_func()&lt;br /&gt;
    {&lt;br /&gt;
       global $CC_GLOBALS;&lt;br /&gt;
 &lt;br /&gt;
       if( CCUser::IsLoggedIn() )&lt;br /&gt;
       {&lt;br /&gt;
            $CC_GLOBALS['welcome-message'] = 'Hello ' . CCUser::CurrentUserName() . '!';&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Keep Per Page Code Size at a Minimum===&lt;br /&gt;
If you plan on having a lot of extensibility code it would be wise for performance reasons to consider what ''has'' to go into the .PHP files and what can be put into other files (e.g. '.inc') and loaded on demand.&lt;br /&gt;
&lt;br /&gt;
The typical way to handle this is to put the event registrations in the PHP module and the code in a INC file. You can specify a script module in the third parameter of '''AddHandler'''. Assuming this file is '''&amp;lt;local_files&amp;gt;/lib/my_event_hooks.php''' &lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     CCEvents::AddHandler( CC_EVENT_APP_INIT, 'my_app_init_func', dir(__FILE__) . '/my_code.inc' );&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you create '''&amp;lt;local_files&amp;gt;/lib/my_code.inc''':&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    function my_app_init_func()&lt;br /&gt;
    {&lt;br /&gt;
       global $CC_GLOBALS;&lt;br /&gt;
 &lt;br /&gt;
       if( CCUser::IsLoggedIn() )&lt;br /&gt;
       {&lt;br /&gt;
            $CC_GLOBALS['my-welcome-message'] = 'Hello ' . CCUser::CurrentUserName() . '!';&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Useful Reading=&lt;br /&gt;
&lt;br /&gt;
These pages have important developer information and code samples:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/guide/Customize|Customize]] &amp;lt;--- '''Always check here first'''&lt;br /&gt;
*[[cchost/guide/Troubleshooting#Variable_Dumps|Variable dumps]]&lt;br /&gt;
*[[cchost/Static HTML Pages|Static Pages]]&lt;br /&gt;
*[[cchost/admin/config customize|Configuration files]]&lt;br /&gt;
*[[cchost/Custom Query Templates|Custom Query Templates]]&lt;br /&gt;
*[[Cchost/Developers/Victor's_Dev_Setup|Victor's Dev Setup]]&lt;br /&gt;
&lt;br /&gt;
These pages are developer specific:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/developer/Common_HOWTO's|Common developer HOWTO's]]&lt;br /&gt;
*[[cchost/developer/concepts/Working With Data|Working with data]]&lt;br /&gt;
*[[cchost/developer/Hooking Page Render|Hooking Page Render]]&lt;br /&gt;
*[[cchost/developer/Hooking the User Profile|Hooking the User Profile]]&lt;br /&gt;
==Tutorials==&lt;br /&gt;
*[[cchost/developer/tutorial/Hooking File Events|Tutorial: Hooking File Events]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Replacing the File Verifier|Tutorial: Replacing the File Verifier]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Ultimate Template|Tutorial: Ultimate Template]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Remix_Me|Tutorial: ccMixter's &amp;quot;Remix Me&amp;quot; Feature]] Covers custom templates, embedded custom dataview, 'publicize', popup window, nested templates, feature page&lt;br /&gt;
*[[cchost/developer/tutorial/Featured_Playlist|Tutorial: ccMixter's Featured Playlist]] Covers content topics, database insert, command menus, event handling.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/Developers&amp;diff=23868</id>
		<title>Cchost/Developers</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/Developers&amp;diff=23868"/>
				<updated>2009-06-12T18:49:10Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* New Checkout */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=External APIs=&lt;br /&gt;
[[cchost/concepts/APIs|APIs]]&lt;br /&gt;
&lt;br /&gt;
= Source Code =&lt;br /&gt;
* [http://code.creativecommons.org/svnroot/cchost/trunk/ Browsable Source Code (Anonymous)]&lt;br /&gt;
* [http://code.creativecommons.org/viewsvn/cchost/trunk/ Pretty version]&lt;br /&gt;
* [http://wiki.creativecommons.org/Source_Repository_Information How to Check Out Code]&lt;br /&gt;
**Specifically for ccHost: &lt;br /&gt;
*** Log in as administrator on your ccHost installation&lt;br /&gt;
*** '''Then''' do your svn update&lt;br /&gt;
*** Browse to &amp;lt;nowiki&amp;gt;http://your_installation?update=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|The source for ccHost has moved from SourceForge. For existing clients: you must perform the svn 'relocate' command to switch over. To do this, change directory to the root of your ccHost svn project, then perform the following command:&lt;br /&gt;
&lt;br /&gt;
  svn switch --relocate &amp;lt;nowiki&amp;gt;https://cctools.svn.sourceforge.net/svnroot/cctools http://code.creativecommons.org/svnroot&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== New Checkout ==&lt;br /&gt;
&lt;br /&gt;
''NOTE: This is only an anonymous public checkout. If you want to commit, you will need to visit [http://code.creativecommons.org the CC code site].&lt;br /&gt;
&lt;br /&gt;
 svn co svn list svn+ssh://svn@code.creativecommons.org/svnroot/cchost/tags/5_0_1 cchost_path_you_desire&lt;br /&gt;
&lt;br /&gt;
Make sure that you are checking out the latest tagged release by running this command:&lt;br /&gt;
&lt;br /&gt;
 svn list svn list svn+ssh://svn@code.creativecommons.org/svnroot/cchost/tags/&lt;br /&gt;
&lt;br /&gt;
Pick the highest revision number, at this time is 5_0_1. Place this at the end of the url:&lt;br /&gt;
&lt;br /&gt;
 svn co svn list svn+ssh://svn@code.creativecommons.org/svnroot/cchost/tags/LATEST_VERSION_NUMBER&lt;br /&gt;
&lt;br /&gt;
=When to make changes to ccHost core=&lt;br /&gt;
Never.&lt;br /&gt;
==Seriously==&lt;br /&gt;
Never.&lt;br /&gt;
==But I have changes to share==&lt;br /&gt;
Oh, that's different. Definitely [[HOWTO_Patch|submit a patch]]! But before going too far down this road you definitely want to hop on the [https://lists.sourceforge.net/mailman/listinfo/cctools-cchost dev mailing list]. If you are shy ask to speak with Victor or Jon in private.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Bugs and Feature Requests =&lt;br /&gt;
* [https://sourceforge.net/tracker/?atid=559966&amp;amp;group_id=80503&amp;amp;func=browse Report Bugs]&lt;br /&gt;
* [https://sourceforge.net/tracker/?group_id=80503&amp;amp;atid=559969 Request Features]&lt;br /&gt;
&lt;br /&gt;
''Make sure to use the 'ccHost' category when filing bugs. Also, please use a real email so that we can followup on any bugs posted. Be descriptive when posting and commenting on bugs (every bit counts).''&lt;br /&gt;
&lt;br /&gt;
=Coding in ccHost=&lt;br /&gt;
==ccHost's Model for a 'Module'==&lt;br /&gt;
There is no formalized higher level model for a 'module' or 'plugin' in ccHost. The model is the same as PHP: a source file. All files with a .PHP extension that reside in the '''&amp;lt;local_files&amp;gt;/lib''' directory will be parsed and executed for every page request to a ccHost installation. Where &amp;lt;local_files&amp;gt; is the name of the directory the administrator specified during installation as to where site customizations reside (also editable from '''admin/paths''')&lt;br /&gt;
&lt;br /&gt;
Because of the automatic loading you should be aware of some performance and timing considerations.&lt;br /&gt;
&lt;br /&gt;
===Keep Per Page Execution at a Minimum===&lt;br /&gt;
You should have no significant code that executes outside of functions. You module will be loaded on each every page (and AJAX) request so (other than registering for ccHost events) you should keep all your code in functions that get called in response to ccHost events.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     for( $i = 0; $i &amp;lt; 52; $i++ ) { $deck[] = rand() % 52; } '''// this is bad'''&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Instead of the above, you would do:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     function start_my_shuffle()&lt;br /&gt;
     {&lt;br /&gt;
       global $deck;&lt;br /&gt;
 &lt;br /&gt;
       for( $i = 0; $i &amp;lt; 52; $i++ ) { $deck[] = rand() % 52; }&lt;br /&gt;
     }&lt;br /&gt;
 &lt;br /&gt;
     // no we only do the shuffle once after ever upload&lt;br /&gt;
     CCEvents::AddHandler( CC_EVENT_UPLOAD_DONE, 'start_my_shuffle' );&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wait for Initialization===&lt;br /&gt;
It is rare that you will want to do anything before the environment is fully initialized and we know who the currently logged in user really is. &lt;br /&gt;
&lt;br /&gt;
If you really need to do some calculation on each page hit, register for the 'APP_INIT' event and perform it then:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    CCEvents::AddHandler( CC_EVENT_APP_INIT, 'my_app_init_func' );&lt;br /&gt;
 &lt;br /&gt;
    function my_app_init_func()&lt;br /&gt;
    {&lt;br /&gt;
       global $CC_GLOBALS;&lt;br /&gt;
 &lt;br /&gt;
       if( CCUser::IsLoggedIn() )&lt;br /&gt;
       {&lt;br /&gt;
            $CC_GLOBALS['welcome-message'] = 'Hello ' . CCUser::CurrentUserName() . '!';&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Keep Per Page Code Size at a Minimum===&lt;br /&gt;
If you plan on having a lot of extensibility code it would be wise for performance reasons to consider what ''has'' to go into the .PHP files and what can be put into other files (e.g. '.inc') and loaded on demand.&lt;br /&gt;
&lt;br /&gt;
The typical way to handle this is to put the event registrations in the PHP module and the code in a INC file. You can specify a script module in the third parameter of '''AddHandler'''. Assuming this file is '''&amp;lt;local_files&amp;gt;/lib/my_event_hooks.php''' &lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     CCEvents::AddHandler( CC_EVENT_APP_INIT, 'my_app_init_func', dir(__FILE__) . '/my_code.inc' );&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you create '''&amp;lt;local_files&amp;gt;/lib/my_code.inc''':&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    function my_app_init_func()&lt;br /&gt;
    {&lt;br /&gt;
       global $CC_GLOBALS;&lt;br /&gt;
 &lt;br /&gt;
       if( CCUser::IsLoggedIn() )&lt;br /&gt;
       {&lt;br /&gt;
            $CC_GLOBALS['my-welcome-message'] = 'Hello ' . CCUser::CurrentUserName() . '!';&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;?&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Useful Reading=&lt;br /&gt;
&lt;br /&gt;
These pages have important developer information and code samples:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/guide/Customize|Customize]] &amp;lt;--- '''Always check here first'''&lt;br /&gt;
*[[cchost/guide/Troubleshooting#Variable_Dumps|Variable dumps]]&lt;br /&gt;
*[[cchost/Static HTML Pages|Static Pages]]&lt;br /&gt;
*[[cchost/admin/config customize|Configuration files]]&lt;br /&gt;
*[[cchost/Custom Query Templates|Custom Query Templates]]&lt;br /&gt;
*[[Cchost/Developers/Victor's_Dev_Setup|Victor's Dev Setup]]&lt;br /&gt;
&lt;br /&gt;
These pages are developer specific:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/developer/Common_HOWTO's|Common developer HOWTO's]]&lt;br /&gt;
*[[cchost/developer/concepts/Working With Data|Working with data]]&lt;br /&gt;
*[[cchost/developer/Hooking Page Render|Hooking Page Render]]&lt;br /&gt;
*[[cchost/developer/Hooking the User Profile|Hooking the User Profile]]&lt;br /&gt;
==Tutorials==&lt;br /&gt;
*[[cchost/developer/tutorial/Hooking File Events|Tutorial: Hooking File Events]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Replacing the File Verifier|Tutorial: Replacing the File Verifier]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Ultimate Template|Tutorial: Ultimate Template]]&lt;br /&gt;
*[[Cchost/developer/tutorial/Remix_Me|Tutorial: ccMixter's &amp;quot;Remix Me&amp;quot; Feature]] Covers custom templates, embedded custom dataview, 'publicize', popup window, nested templates, feature page&lt;br /&gt;
*[[cchost/developer/tutorial/Featured_Playlist|Tutorial: ccMixter's Featured Playlist]] Covers content topics, database insert, command menus, event handling.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23867</id>
		<title>Cchost/guide/Installing</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23867"/>
				<updated>2009-06-12T18:47:20Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Getting ccHost=&lt;br /&gt;
Check [[Cchost#Download|ccHost home page]] for download instructions of the latest stable release.&lt;br /&gt;
&lt;br /&gt;
For instructions on the getting the latest snapshot directly from our source control system check the [[Cchost/Developers#Source_Code|source code home page]].&lt;br /&gt;
&lt;br /&gt;
=Installing=&lt;br /&gt;
== Simple  ==&lt;br /&gt;
The easiest way to get going is to start with a web hosting server. Common web hosting services like [http://www.brainpulse.com BrainPulse] ,   [http://www.dreamhost.com/ Dreamhost] and [http://www.websitesource.com WebsiteSource] provide an administration interface for setting up a mysql database. Hosting services also provide some FTP or SFTP mechanism to upload the ccHost installation files as well. 99% of all services provide support for PHP as well. If you have questions about support in this area, check the server requirements below and with your hosting service.&lt;br /&gt;
&lt;br /&gt;
#Unzip the ccHost ZIP archive on your local system and copy the files to your server retaining the the directory structure.&lt;br /&gt;
#Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed&amp;lt;/nowiki&amp;gt;''' and follow all the instructions from then on.&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
If you have basic knowledge of using FTP and you are comfortable at a terminal command line you can use these steps. Many of these can be filed under &amp;quot;you'll be glad you did&amp;quot; by the time you get to the browser-based installation steps later on.&lt;br /&gt;
&lt;br /&gt;
=== Download/Install getID3 ===&lt;br /&gt;
ccHost depends on the getID3 library for verifying uploads. Install getID3 (at least 1.7.3) here: http://www.getid3.org/#download before you install ccHost. (It's a simple download-unpack operation.)&lt;br /&gt;
&lt;br /&gt;
Note: Make sure the release you install is marked as '''stable'''. Do ''not'' install anything that is &amp;quot;beta&amp;quot; or &amp;quot;alpha&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example (on Linux):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzf getid3.tar.gz&lt;br /&gt;
cp -a getid3/getid3 /var/www/localhost/htdocs/getid3/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ccHost installer will 'find' your getID3 installation if it's roughly in the same area of the server, however it is ''not'' required that your getID3 be visible on the web and in fact, it's probably more secure if it isn't.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|BUG WARNING: Later versions of getID3 (starting with 1.7.7) have an issue with RIFF based files (WAV, AVI, etc.) when tagging them and require a manual patch in order to work properly. Remove line #105 in getID3/write.php that looks like:&lt;br /&gt;
 case 'riff': // maybe not officially, but people do it anyway }}&lt;br /&gt;
&lt;br /&gt;
=== ccHost Terminal Installtion ===&lt;br /&gt;
* Unzip the ccHost ZIP archive on your local system and copy the files (retaining the directory structure) to your web-server directory. &lt;br /&gt;
* On Linux change the group and permissions of the files so they may be written by the web server (e.g., in the following lines, the web-server account is &amp;quot;apache&amp;quot;).&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a cchost-1.0.3 /var/www/localhost/htdocs/cchost&lt;br /&gt;
chgrp -R apache /var/www/localhost/htdocs/cchost&lt;br /&gt;
chmod g+w /var/www/localhost/htdocs/cchost/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create a new database for ccHost (e.g., named &amp;quot;cchost&amp;quot;) and create an administrative user to access it (e.g., &amp;quot;cchostadmin&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p -u root&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE cchost;&lt;br /&gt;
mysql&amp;gt; GRANT ALL ON cchost.* TO 'cchostadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to change 'YOUR_PASSWORD_HERE' (and maybe 'cchostadmin') to something unique to your site.&lt;br /&gt;
(Many systems provide '''phpMyAdmin''' to take care of these tasks.&lt;br /&gt;
*Create directory /var/log/cchost or other location to store log files.  Must be writable by the web-server account (e.g., &amp;quot;apache&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/log/cchost&lt;br /&gt;
chown apache:apache /var/log/cchost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several suggestions for mod_rewrite and configuration settings [[cchost/admin/apache/config|here]].&lt;br /&gt;
&lt;br /&gt;
Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed_cchost&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Everything else you need to know will be on the screen from that point on, including topics covered above such as suggested php.ini and .htaccess settings, access permissions requirements, etc.&lt;br /&gt;
&lt;br /&gt;
= Upgrading =&lt;br /&gt;
{{Infobox|'''Always''' make a backup of your mySQL ccHost database and the files you change before you start the upgrade process. Things go wrong. You have been warned.}}&lt;br /&gt;
== Upgrading from 5.0 to higher ==&lt;br /&gt;
*Log in to your ccHost installation as an admin&lt;br /&gt;
*Unzip the ZIP archive on a local machine&lt;br /&gt;
*Delete the '''ccadmin''' directory on your local copy&lt;br /&gt;
*Copy the entire structure to your web installation&lt;br /&gt;
*Browse '''&amp;lt;you_installation_root&amp;gt;?update=1'''&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.x from 3.1 and Above ==&lt;br /&gt;
===Before you upgrade===&lt;br /&gt;
==== Plugins ====&lt;br /&gt;
It is recommended that you do '''not''' copy any plugins or custom code that have not been ported to ccHost 5 during the initial upgrade. You should get your site up and running without them using the standard upgrade first, then start migrating your plugins.&lt;br /&gt;
==== Importing phpTAL Templates ====&lt;br /&gt;
None of your previous version skins, pages, etc. work anymore as is. You can try to import your old phpTAL XML templates using:&lt;br /&gt;
&lt;br /&gt;
     bin/cc-host-import-v4-template.php &lt;br /&gt;
&lt;br /&gt;
Many imported templates (like your home page) might &amp;quot;just work&amp;quot; but many will need tweaking, assuming you are familiar with PHP. A detailed description of what might go wrong is [[Preparing_for_ccHost_5.0|this document]].&lt;br /&gt;
&lt;br /&gt;
===Doing the upgrade===&lt;br /&gt;
* Log in as admin on your ccHost installation&lt;br /&gt;
* Make a backup of your database.&lt;br /&gt;
* Unzip the ccHost package on a local machine.&lt;br /&gt;
* Copy the entire tree (including ccadmin) to your installation&lt;br /&gt;
* Browse to &amp;lt;nowiki&amp;gt;http://&amp;lt;your_install_location&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5 from 3.0 or Before ==&lt;br /&gt;
Upgrading to 5 simply hasn't been tried or tested. (If you have some experience, please feel to share with the rest of the class.) It is therefore not recommended except for the very strong willed. &lt;br /&gt;
&lt;br /&gt;
Instead what you may want to consider (if you don't have a lot of content data) is start with a brand new installation using version 5.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23866</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23866"/>
				<updated>2009-06-12T18:39:47Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Blank Screen On Upload */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 you can check your installation by clicking on ''Global Settings'' then ''Check PHP Settings'' (or browsing to '''/ini_settings'''). &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with your getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Once you have diagnosed the problem, make sure to return the PHP file you edited back to its original version for production sites!!}}&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't see an 'extra-meta' field you can add one:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/new&lt;br /&gt;
# Type '''extra-meta''' into the field and submit&lt;br /&gt;
&lt;br /&gt;
That should return you to the template tags editing screen where you can add the meta tag above.&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= No Flash Player (little speaker) for Audio Files =&lt;br /&gt;
If you uploaded an audio file and expected a little speaker icon and the Flash (tm) player but don't see that it could be one of several things:&lt;br /&gt;
&lt;br /&gt;
- The Flash(tm) will not show up on a page unless you have chosen the &amp;quot;Text appropriate for music sites&amp;quot; string profile, or one that derives from it, from '''admin/skins/settings''' screen. (This is a design flaw we will be addressing in the not-so-distant future.)&lt;br /&gt;
&lt;br /&gt;
- Older versions of Flash only support MP3s and only those that are encoded with a sample rate divisible by 11 like 44k.&lt;br /&gt;
&lt;br /&gt;
- You don't have a working Flash(tm) plugin installed in your browser.&lt;br /&gt;
&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23865</id>
		<title>Cchost/guide/Customize</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23865"/>
				<updated>2009-06-12T18:35:06Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Admin Customizations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
==Overview==&lt;br /&gt;
There are many levels of customization to a ccHost installation with each level requiring more and more technical skill. It is not obvious what kind of customization is possible at each level so here are some hints that might help you to decide what you need to do in order to achieve your goals.&lt;br /&gt;
&lt;br /&gt;
==Admin Customizations==&lt;br /&gt;
In ccHost 5 there are dozens of customizations that do not require any coding. You can do all these simply by filling out forms:&lt;br /&gt;
*Customize your [[Cchost/customize/Home_Page|home page]]&lt;br /&gt;
* Using the [[Cchost/customize/News_Feature|'News' feature]] in the sidebar or your home page.&lt;br /&gt;
*Notify your users of outages and other site news [[Cchost/admin/Basic_HOWTOs#What.27s_a_.27Blurb.27_and_How_Do_I_Use_It.3F|using 'Blurbs']]&lt;br /&gt;
*Create and manage [[cchost/admin/Content_Manager|formatted content pages]]&lt;br /&gt;
*Upload [[cchost/admin/Basic HOWTOs##How_do_I_change_the_banner_.28logo.29.3F|banner images (logos)]]&lt;br /&gt;
*Customize [[Cchost/admin/config_customize#Strings|the text]] (menus, prompts, labels, etc.)&lt;br /&gt;
*Manage [[Cchost/admin/License|licenses]]&lt;br /&gt;
*Create your own submit form types&lt;br /&gt;
*[[Cchost/admin/config_customize#Page_Layout|Page layouts]] (e.g. placement of menus, tabs, widgets, etc.)&lt;br /&gt;
*Select default font family and size from a list.&lt;br /&gt;
*Select [[Cchost/admin/config_customize#Colors|color schemes]].&lt;br /&gt;
*Select and order [[Cchost/admin/config_customize#Sidebar_extras|sidebar extras]] (aka widgets) &lt;br /&gt;
*Select how your forms are laid out from a list of available layouts.&lt;br /&gt;
*Save and retrieve multiple versions of [[Cchost/concepts/Skins#Create_a_Skin_Profile|skin profiles]]&lt;br /&gt;
*Create '[[Cchost/concepts/Virtual_Roots|mini sites]]' with different look and feel for each one&lt;br /&gt;
*[[Cchost/admin/Basic_HOWTOs#How_do_I_add_new_file_types_to_the_system.3F|Add file types]] to the system&lt;br /&gt;
*Select [[Cchost/How_Content_is_Displayed#Upload_Listings|user content listing types]] from a list of options&lt;br /&gt;
*Configure the [[Cchost/How_Content_is_Displayed#Query_Browser|query browser]]&lt;br /&gt;
&lt;br /&gt;
For more options see [[cchost/admin/Basic HOWTOs|Basic HOWTOs]].&lt;br /&gt;
&lt;br /&gt;
==Query Customizations==&lt;br /&gt;
All user content (uploads, topics, reviews, etc.) is display via the [[cchost/concepts/Query_Engine|Query API]]. With a little knowledge of URL building you gain control over what uploaded content is displayed in the settings of your choice. For example if you want to show the most popular uploads tagged 'remix' for the last two weeks you specify that using URL syntax in a navigation tab, including the title to display:&lt;br /&gt;
&lt;br /&gt;
  tags=remix&amp;amp;sinced=2 weeks ago&amp;amp;sort=rankings&amp;amp;title=Hot Remixes&lt;br /&gt;
&lt;br /&gt;
The query engine also works with topic contents.&lt;br /&gt;
&lt;br /&gt;
==Configuration Customizations==&lt;br /&gt;
The way the system is set up, ''all'' of the customizations in the 'Admin' section above are actually fancy ways of manipulating configuration files already in your system, many of which can be superseded by simply making your own version.&lt;br /&gt;
  &lt;br /&gt;
Even if you don't exactly know what the configuration syntax is or how it works, you can easily customize your installation with some judicious cut and paste in configuration files that the system will look for in your &amp;lt;local_files&amp;gt; directory. These include:&lt;br /&gt;
*How to [[cchost/admin/config_customize#Strings|replace strings]] in forms, prompts and listings.&lt;br /&gt;
*Create your own [[cchost/admin/config_customize#Colors|custom color scheme]].&lt;br /&gt;
*Create specialized [[cchost/admin/config_customize#Sidebar_extras|sidebar widgets]].&lt;br /&gt;
&lt;br /&gt;
==HTML/CSS Markup Customization==&lt;br /&gt;
If you are comfortable with a little HTML and CSS hacking and you still want more control over your installation then you will find quite a large world open up to you. &lt;br /&gt;
&lt;br /&gt;
===Custom Pieces===&lt;br /&gt;
If you are generally happy with the overall look and layout of the site but want to change specific screen, you can create customized display layouts and then select them through the admin screens:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/Custom_Query_Templates|Custom query templates]] (way more powerful than you might first realize)&lt;br /&gt;
*[[cchost/Static_HTML_Pages|Static HTML]] (and PHP) pages&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Page|Upload page]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Listings|Upload listings]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Query Browser|Query browser listing]]&lt;br /&gt;
*Form layouts&lt;br /&gt;
&lt;br /&gt;
===Custom Skins=== &lt;br /&gt;
Creating your own skin is how you take ultimate control of the overall look and feel of your installation. Learn how this is done in the [[cchost/concepts/Skins|Skins section]].&lt;br /&gt;
&lt;br /&gt;
==Developer Customizations==&lt;br /&gt;
===Common===&lt;br /&gt;
There are many customizations that can be done with just a few lines of code. Some of those the more popular ones are:&lt;br /&gt;
*[[cchost/developer/customize#Add_or_remove_form_fields|Add or remove form fields]] including the submit forms&lt;br /&gt;
*Add data fields [[cchost/developer/customize#Add_data_per_user|per user]] and [[cchost/developer/customize#Add_data_per_upload|per upload]].&lt;br /&gt;
*[[Cchost/developer/customize#Using_custom_data_in_a_template|Retrieving custom data]] for listing display in a template&lt;br /&gt;
*Saving and retrieving [[Cchost/developer/customize#Saving_and_retrieving_system_configuration_data|data from the system configuration]]&lt;br /&gt;
*[[Cchost/developer/customize#Adding_settings_to_the_admin_menus|Adding an admin setting]] to settings menu&lt;br /&gt;
*[[Cchost/developer/customize#Mapping_URLs_to_custom_code|Mapping a URL]] to your custom code&lt;br /&gt;
&lt;br /&gt;
===Event Hooking===&lt;br /&gt;
ccHost triggers events at certain key moments and you can register to be notified at those times. The more popular ones of those are:&lt;br /&gt;
*On [[cchost/developer/tutorial/Hooking_File_Events|file uploaded or deleted]].&lt;br /&gt;
*On display of [[Cchost/developer/Hooking_the_User_Profile|user profile]].&lt;br /&gt;
*When the remix sources for an upload has changed&lt;br /&gt;
*When a new topic has been added or deleted&lt;br /&gt;
*When a [[Cchost/Developers#Wait_for_Initialization|session is starting]].&lt;br /&gt;
*On [[cchost/developer/Hooking Page Render|every page render]].&lt;br /&gt;
*Several different phases of a form being constructed (this applies to every single form in the system)&lt;br /&gt;
&lt;br /&gt;
===Esoteric===&lt;br /&gt;
There are many other hooks in the system (over 100) many of which still fall in the category of &amp;quot;easy to hook&amp;quot; even if the hook itself may or may not require heavy lifting. These include:&lt;br /&gt;
*Adding % macros that expand on file renaming and ID3 tagging&lt;br /&gt;
*Adding and verifying new parameters to the query engine&lt;br /&gt;
*[[cchost/developer/tutorial/Replacing the File Verifier|Replacing the file verifier]]&lt;br /&gt;
*Adding a new search type&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/Basic_HOWTOs&amp;diff=23864</id>
		<title>Cchost/admin/Basic HOWTOs</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/Basic_HOWTOs&amp;diff=23864"/>
				<updated>2009-06-12T18:32:44Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* What's a 'Blurb' and How Do I Use It? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=How do I change the banner (logo)?=&lt;br /&gt;
*Log in as an administrator &lt;br /&gt;
*Click on ''Manage Site'' then ''Banner Logo'' (or browse to '''admin/templatetags/bannerlogo''')&lt;br /&gt;
*Click on the &amp;quot;Browse&amp;quot; button and select your preferred image.  &lt;br /&gt;
*Click on the ''Submit Banner Logo'' button&lt;br /&gt;
&lt;br /&gt;
=How do I add new file types to the system?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Global Settings'' then ''Pseudo Verify'' (or browse to '''admin/pverify''')&lt;br /&gt;
*Follow the instructions at the top of the screen&lt;br /&gt;
*When you finished click on the ''Submit'' button&lt;br /&gt;
*Follow the instructions directly below to enable the file type in submit forms.&lt;br /&gt;
&lt;br /&gt;
=How do I enable/restrict file types users can upload?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Mangage Site'' then ''File Formats'' (or browse to '''admin/formats''')&lt;br /&gt;
*Check the boxes for the formats you want to allow&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
&lt;br /&gt;
=How do I restrict licenses?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Manage Site'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*Check the licenses you want to enable in submit forms&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
For information on the Creative Commons Licenses see: http://creativecommons.org/licenses/&lt;br /&gt;
&lt;br /&gt;
=How do I add administrators?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Manage Site'' then ''Settings'' (or browse to '''admin/settings''')&lt;br /&gt;
*At the ''Site Administrators'' field, enter a comma separated list of log in names. (If the user name is not in use yet, the next user that registers with that name will become an admin)&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
=What's a 'Blurb' and How Do I Use It?=&lt;br /&gt;
A blurb is simply some message you want to convey to visitors of your site. This can be useful for announcing special promotions on the site or future site outages.&lt;br /&gt;
&lt;br /&gt;
You edit and use them exactly the same way you use the [[Cchost/customize/News_Feature|'News' feature]] except you substitute the word 'blurb' for 'news' in that tutorial.&lt;br /&gt;
&lt;br /&gt;
The difference is that registered users can turn the 'News' feature off through the ''Preferences'' menu item, whereas only admins control the 'blurbs' widget.&lt;br /&gt;
&lt;br /&gt;
=How do I edit the navigation tabs at the top of the page?=&lt;br /&gt;
Read [[cchost/customize/Navigation Tabs|all about navigation tabs]].&lt;br /&gt;
&lt;br /&gt;
=How do I manage page and topic content in ccHost?=&lt;br /&gt;
&lt;br /&gt;
For the complete howto, see [[cchost/admin/Content_Manager|Content Manager Howto]].&lt;br /&gt;
&lt;br /&gt;
=How do I repair a broken configruation (A.K.A. HELP!!!!)=&lt;br /&gt;
See [[Cchost/guide/Troubleshooting#Repairing_a_broken_configuration_.28A.K.A._HELP.21.21.21.21.29|Troubleshooting]].&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/Basic_HOWTOs&amp;diff=23863</id>
		<title>Cchost/admin/Basic HOWTOs</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/Basic_HOWTOs&amp;diff=23863"/>
				<updated>2009-06-12T18:30:25Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* How do I add administrators? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=How do I change the banner (logo)?=&lt;br /&gt;
*Log in as an administrator &lt;br /&gt;
*Click on ''Manage Site'' then ''Banner Logo'' (or browse to '''admin/templatetags/bannerlogo''')&lt;br /&gt;
*Click on the &amp;quot;Browse&amp;quot; button and select your preferred image.  &lt;br /&gt;
*Click on the ''Submit Banner Logo'' button&lt;br /&gt;
&lt;br /&gt;
=How do I add new file types to the system?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Global Settings'' then ''Pseudo Verify'' (or browse to '''admin/pverify''')&lt;br /&gt;
*Follow the instructions at the top of the screen&lt;br /&gt;
*When you finished click on the ''Submit'' button&lt;br /&gt;
*Follow the instructions directly below to enable the file type in submit forms.&lt;br /&gt;
&lt;br /&gt;
=How do I enable/restrict file types users can upload?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Mangage Site'' then ''File Formats'' (or browse to '''admin/formats''')&lt;br /&gt;
*Check the boxes for the formats you want to allow&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
&lt;br /&gt;
=How do I restrict licenses?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Manage Site'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*Check the licenses you want to enable in submit forms&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
For information on the Creative Commons Licenses see: http://creativecommons.org/licenses/&lt;br /&gt;
&lt;br /&gt;
=How do I add administrators?=&lt;br /&gt;
*Log in as an administrator (if not already)&lt;br /&gt;
*Click on ''Manage Site'' then ''Settings'' (or browse to '''admin/settings''')&lt;br /&gt;
*At the ''Site Administrators'' field, enter a comma separated list of log in names. (If the user name is not in use yet, the next user that registers with that name will become an admin)&lt;br /&gt;
*Click on the ''Submit'' button&lt;br /&gt;
=What's a 'Blurb' and How Do I Use It?=&lt;br /&gt;
A blurb is simply some message you want to convey to visitors to your site. You edit and use them exactly the same way you use the [[Cchost/customize/News_Feature|'News' feature]].&lt;br /&gt;
&lt;br /&gt;
The difference is that registered users can turn the 'News' feature off through the ''Preferences'' menu item. Whereas only admins control the 'blurbs' widget. This can be useful for announcing special promotions on the site or future site outages.&lt;br /&gt;
&lt;br /&gt;
=How do I edit the navigation tabs at the top of the page?=&lt;br /&gt;
Read [[cchost/customize/Navigation Tabs|all about navigation tabs]].&lt;br /&gt;
&lt;br /&gt;
=How do I manage page and topic content in ccHost?=&lt;br /&gt;
&lt;br /&gt;
For the complete howto, see [[cchost/admin/Content_Manager|Content Manager Howto]].&lt;br /&gt;
&lt;br /&gt;
=How do I repair a broken configruation (A.K.A. HELP!!!!)=&lt;br /&gt;
See [[Cchost/guide/Troubleshooting#Repairing_a_broken_configuration_.28A.K.A._HELP.21.21.21.21.29|Troubleshooting]].&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23861</id>
		<title>Cchost/customize/News Feature</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23861"/>
				<updated>2009-06-12T18:25:21Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Using 'News' Embedded in Your Home Page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= To Create New 'News' Topics = &lt;br /&gt;
The &amp;quot;News&amp;quot; feature is a sidebar widget you can use to keep your users informed of latest happenings on your site.&lt;br /&gt;
&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create New Content'' button&lt;br /&gt;
#Select 'news' from the ''Content Type'' field and leave ''New Content Type'' blank. (If you do not see 'news' as an option, then type ''news'' into the ''New Content Type'' field.)&lt;br /&gt;
#Fill out the ''Title'' and ''Content Entry'' fields and click the ''Submit Content'' button&lt;br /&gt;
&lt;br /&gt;
This last step will take you back to the ''Manage Page Content'' screen. Select 'news' from the ''Select topic type'' list and you should see your new topic at the top of the list of topics.&lt;br /&gt;
&lt;br /&gt;
= Add/Remove 'News' as a Sidebar Widget =&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Manage Site'' then ''Sidebar Extras'' (or browse to '''admin/extras''')&lt;br /&gt;
#If the 'News' box is not already in the sidebar, drag it from the center of the screen under ''Available Sidebar Extras'' to the sidebar under ''Sidebar Extras In Use / Drag items to here...'' &lt;br /&gt;
#Click on the ''Save'' button.&lt;br /&gt;
&lt;br /&gt;
To remove the 'News' feature from the sidebar, drag it from the sidebar back into the center of the screen.&lt;br /&gt;
&lt;br /&gt;
=Using 'News' Embedded in Your Home Page=&lt;br /&gt;
Follow the steps to editing your home page topics as [[Cchost/customize/Home_Page|discussed here]].&lt;br /&gt;
&lt;br /&gt;
While editing any of your home page topics and in the ''Content Entry'' field, put the following line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[query=t=news&amp;amp;type=news&amp;amp;limit=4][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will embed the latest 4 topics directly into your home page.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23860</id>
		<title>Cchost/customize/News Feature</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23860"/>
				<updated>2009-06-12T18:24:32Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= To Create New 'News' Topics = &lt;br /&gt;
The &amp;quot;News&amp;quot; feature is a sidebar widget you can use to keep your users informed of latest happenings on your site.&lt;br /&gt;
&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create New Content'' button&lt;br /&gt;
#Select 'news' from the ''Content Type'' field and leave ''New Content Type'' blank. (If you do not see 'news' as an option, then type ''news'' into the ''New Content Type'' field.)&lt;br /&gt;
#Fill out the ''Title'' and ''Content Entry'' fields and click the ''Submit Content'' button&lt;br /&gt;
&lt;br /&gt;
This last step will take you back to the ''Manage Page Content'' screen. Select 'news' from the ''Select topic type'' list and you should see your new topic at the top of the list of topics.&lt;br /&gt;
&lt;br /&gt;
= Add/Remove 'News' as a Sidebar Widget =&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Manage Site'' then ''Sidebar Extras'' (or browse to '''admin/extras''')&lt;br /&gt;
#If the 'News' box is not already in the sidebar, drag it from the center of the screen under ''Available Sidebar Extras'' to the sidebar under ''Sidebar Extras In Use / Drag items to here...'' &lt;br /&gt;
#Click on the ''Save'' button.&lt;br /&gt;
&lt;br /&gt;
To remove the 'News' feature from the sidebar, drag it from the sidebar back into the center of the screen.&lt;br /&gt;
&lt;br /&gt;
=Using 'News' Embedded in Your Home Page=&lt;br /&gt;
Follow the steps to editing your home page topics is [[Cchost/customize/Home_Page|discussed here]].&lt;br /&gt;
&lt;br /&gt;
Open any of your home page topics and in the ''Content Entry'' field, put the following line:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[query=t=news&amp;amp;type=news&amp;amp;limit=4][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will embed the latest 4 topics directly into your home page.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23859</id>
		<title>Cchost/guide/Customize</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23859"/>
				<updated>2009-06-12T18:19:04Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Admin Customizations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
==Overview==&lt;br /&gt;
There are many levels of customization to a ccHost installation with each level requiring more and more technical skill. It is not obvious what kind of customization is possible at each level so here are some hints that might help you to decide what you need to do in order to achieve your goals.&lt;br /&gt;
&lt;br /&gt;
==Admin Customizations==&lt;br /&gt;
In ccHost 5 there are dozens of customizations that do not require any coding. You can do all these simply by filling out forms:&lt;br /&gt;
*Customize your [[Cchost/customize/Home_Page|home page]]&lt;br /&gt;
* Using the [[Cchost/customize/News_Feature|'News' feature]] in the sidebar or your home page.&lt;br /&gt;
*Create and manage [[cchost/admin/Content_Manager|formatted content pages]]&lt;br /&gt;
*Upload [[cchost/admin/Basic HOWTOs##How_do_I_change_the_banner_.28logo.29.3F|banner images (logos)]]&lt;br /&gt;
*Customize [[Cchost/admin/config_customize#Strings|the text]] (menus, prompts, labels, etc.)&lt;br /&gt;
*Manage [[Cchost/admin/License|licenses]]&lt;br /&gt;
*Create your own submit form types&lt;br /&gt;
*[[Cchost/admin/config_customize#Page_Layout|Page layouts]] (e.g. placement of menus, tabs, widgets, etc.)&lt;br /&gt;
*Select default font family and size from a list.&lt;br /&gt;
*Select [[Cchost/admin/config_customize#Colors|color schemes]].&lt;br /&gt;
*Select and order [[Cchost/admin/config_customize#Sidebar_extras|sidebar extras]] (aka widgets) &lt;br /&gt;
*Select how your forms are laid out from a list of available layouts.&lt;br /&gt;
*Save and retrieve multiple versions of [[Cchost/concepts/Skins#Create_a_Skin_Profile|skin profiles]]&lt;br /&gt;
*Create '[[Cchost/concepts/Virtual_Roots|mini sites]]' with different look and feel for each one&lt;br /&gt;
*[[Cchost/admin/Basic_HOWTOs#How_do_I_add_new_file_types_to_the_system.3F|Add file types]] to the system&lt;br /&gt;
*Select [[Cchost/How_Content_is_Displayed#Upload_Listings|user content listing types]] from a list of options&lt;br /&gt;
*Configure the [[Cchost/How_Content_is_Displayed#Query_Browser|query browser]]&lt;br /&gt;
&lt;br /&gt;
For more options see [[cchost/admin/Basic HOWTOs|Basic HOWTOs]].&lt;br /&gt;
&lt;br /&gt;
==Query Customizations==&lt;br /&gt;
All user content (uploads, topics, reviews, etc.) is display via the [[cchost/concepts/Query_Engine|Query API]]. With a little knowledge of URL building you gain control over what uploaded content is displayed in the settings of your choice. For example if you want to show the most popular uploads tagged 'remix' for the last two weeks you specify that using URL syntax in a navigation tab, including the title to display:&lt;br /&gt;
&lt;br /&gt;
  tags=remix&amp;amp;sinced=2 weeks ago&amp;amp;sort=rankings&amp;amp;title=Hot Remixes&lt;br /&gt;
&lt;br /&gt;
The query engine also works with topic contents.&lt;br /&gt;
&lt;br /&gt;
==Configuration Customizations==&lt;br /&gt;
The way the system is set up, ''all'' of the customizations in the 'Admin' section above are actually fancy ways of manipulating configuration files already in your system, many of which can be superseded by simply making your own version.&lt;br /&gt;
  &lt;br /&gt;
Even if you don't exactly know what the configuration syntax is or how it works, you can easily customize your installation with some judicious cut and paste in configuration files that the system will look for in your &amp;lt;local_files&amp;gt; directory. These include:&lt;br /&gt;
*How to [[cchost/admin/config_customize#Strings|replace strings]] in forms, prompts and listings.&lt;br /&gt;
*Create your own [[cchost/admin/config_customize#Colors|custom color scheme]].&lt;br /&gt;
*Create specialized [[cchost/admin/config_customize#Sidebar_extras|sidebar widgets]].&lt;br /&gt;
&lt;br /&gt;
==HTML/CSS Markup Customization==&lt;br /&gt;
If you are comfortable with a little HTML and CSS hacking and you still want more control over your installation then you will find quite a large world open up to you. &lt;br /&gt;
&lt;br /&gt;
===Custom Pieces===&lt;br /&gt;
If you are generally happy with the overall look and layout of the site but want to change specific screen, you can create customized display layouts and then select them through the admin screens:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/Custom_Query_Templates|Custom query templates]] (way more powerful than you might first realize)&lt;br /&gt;
*[[cchost/Static_HTML_Pages|Static HTML]] (and PHP) pages&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Page|Upload page]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Listings|Upload listings]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Query Browser|Query browser listing]]&lt;br /&gt;
*Form layouts&lt;br /&gt;
&lt;br /&gt;
===Custom Skins=== &lt;br /&gt;
Creating your own skin is how you take ultimate control of the overall look and feel of your installation. Learn how this is done in the [[cchost/concepts/Skins|Skins section]].&lt;br /&gt;
&lt;br /&gt;
==Developer Customizations==&lt;br /&gt;
===Common===&lt;br /&gt;
There are many customizations that can be done with just a few lines of code. Some of those the more popular ones are:&lt;br /&gt;
*[[cchost/developer/customize#Add_or_remove_form_fields|Add or remove form fields]] including the submit forms&lt;br /&gt;
*Add data fields [[cchost/developer/customize#Add_data_per_user|per user]] and [[cchost/developer/customize#Add_data_per_upload|per upload]].&lt;br /&gt;
*[[Cchost/developer/customize#Using_custom_data_in_a_template|Retrieving custom data]] for listing display in a template&lt;br /&gt;
*Saving and retrieving [[Cchost/developer/customize#Saving_and_retrieving_system_configuration_data|data from the system configuration]]&lt;br /&gt;
*[[Cchost/developer/customize#Adding_settings_to_the_admin_menus|Adding an admin setting]] to settings menu&lt;br /&gt;
*[[Cchost/developer/customize#Mapping_URLs_to_custom_code|Mapping a URL]] to your custom code&lt;br /&gt;
&lt;br /&gt;
===Event Hooking===&lt;br /&gt;
ccHost triggers events at certain key moments and you can register to be notified at those times. The more popular ones of those are:&lt;br /&gt;
*On [[cchost/developer/tutorial/Hooking_File_Events|file uploaded or deleted]].&lt;br /&gt;
*On display of [[Cchost/developer/Hooking_the_User_Profile|user profile]].&lt;br /&gt;
*When the remix sources for an upload has changed&lt;br /&gt;
*When a new topic has been added or deleted&lt;br /&gt;
*When a [[Cchost/Developers#Wait_for_Initialization|session is starting]].&lt;br /&gt;
*On [[cchost/developer/Hooking Page Render|every page render]].&lt;br /&gt;
*Several different phases of a form being constructed (this applies to every single form in the system)&lt;br /&gt;
&lt;br /&gt;
===Esoteric===&lt;br /&gt;
There are many other hooks in the system (over 100) many of which still fall in the category of &amp;quot;easy to hook&amp;quot; even if the hook itself may or may not require heavy lifting. These include:&lt;br /&gt;
*Adding % macros that expand on file renaming and ID3 tagging&lt;br /&gt;
*Adding and verifying new parameters to the query engine&lt;br /&gt;
*[[cchost/developer/tutorial/Replacing the File Verifier|Replacing the file verifier]]&lt;br /&gt;
*Adding a new search type&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23858</id>
		<title>Cchost/customize/News Feature</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/customize/News_Feature&amp;diff=23858"/>
				<updated>2009-06-12T18:16:29Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with 'Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{cchost_head}} {{cchost_5_1}} {{lowercase}} = To Create New 'News'...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= To Create New 'News' Topics = &lt;br /&gt;
The &amp;quot;News&amp;quot; feature is a sidebar widget you can use to keep your users informed of latest happenings on your site.&lt;br /&gt;
&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create New Content'' button&lt;br /&gt;
#Select 'news' from the ''Content Type'' field and leave ''New Content Type'' blank. (If you do not see 'news' as an option, then type ''news'' into the ''New Content Type'' field.)&lt;br /&gt;
#Fill out the ''Title'' and ''Content Entry'' fields and click the ''Submit Content'' button&lt;br /&gt;
&lt;br /&gt;
This last step will take you back to the ''Manage Page Content'' screen. Select 'news' from the ''Select topic type'' list and you should see your new topic at the top of the list of topics.&lt;br /&gt;
&lt;br /&gt;
= Add/Remove 'News' as a Sidebar Widget =&lt;br /&gt;
#Log in as administrator (if not already)&lt;br /&gt;
#Click on ''Manage Site'' then ''Sidebar Extras'' (or browse to '''admin/extras''')&lt;br /&gt;
#If the 'News' box is not already in the sidebar, drag it from the center of the screen under ''Available Sidebar Extras'' to the sidebar under ''Sidebar Extras In Use / Drag items to here...'' &lt;br /&gt;
#Click on the ''Save'' button.&lt;br /&gt;
&lt;br /&gt;
To remove the 'News' feature from the sidebar, drag it from the sidebar back into the center of the screen.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23729</id>
		<title>Cchost/guide/Customize</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23729"/>
				<updated>2009-06-09T06:35:50Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Admin Customizations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
==Overview==&lt;br /&gt;
There are many levels of customization to a ccHost installation with each level requiring more and more technical skill. It is not obvious what kind of customization is possible at each level so here are some hints that might help you to decide what you need to do in order to achieve your goals.&lt;br /&gt;
&lt;br /&gt;
==Admin Customizations==&lt;br /&gt;
In ccHost 5 there are dozens of customizations that do not require any coding. You can do all these simply by filling out forms:&lt;br /&gt;
*Customize your [[Cchost/customize/Home_Page|home page]]&lt;br /&gt;
*Create and manage [[cchost/admin/Content_Manager|formatted content pages]]&lt;br /&gt;
*Upload [[cchost/admin/Basic HOWTOs##How_do_I_change_the_banner_.28logo.29.3F|banner images (logos)]]&lt;br /&gt;
*Customize [[Cchost/admin/config_customize#Strings|the text]] (menus, prompts, labels, etc.)&lt;br /&gt;
*Manage [[Cchost/admin/License|licenses]]&lt;br /&gt;
*Create your own submit form types&lt;br /&gt;
*[[Cchost/admin/config_customize#Page_Layout|Page layouts]] (e.g. placement of menus, tabs, widgets, etc.)&lt;br /&gt;
*Select default font family and size from a list.&lt;br /&gt;
*Select [[Cchost/admin/config_customize#Colors|color schemes]].&lt;br /&gt;
*Select and order [[Cchost/admin/config_customize#Sidebar_extras|sidebar extras]] (aka widgets) &lt;br /&gt;
*Select how your forms are laid out from a list of available layouts.&lt;br /&gt;
*Save and retrieve multiple versions of [[Cchost/concepts/Skins#Create_a_Skin_Profile|skin profiles]]&lt;br /&gt;
*Create '[[Cchost/concepts/Virtual_Roots|mini sites]]' with different look and feel for each one&lt;br /&gt;
*[[Cchost/admin/Basic_HOWTOs#How_do_I_add_new_file_types_to_the_system.3F|Add file types]] to the system&lt;br /&gt;
*Select [[Cchost/How_Content_is_Displayed#Upload_Listings|user content listing types]] from a list of options&lt;br /&gt;
*Configure the [[Cchost/How_Content_is_Displayed#Query_Browser|query browser]]&lt;br /&gt;
&lt;br /&gt;
For more options see [[cchost/admin/Basic HOWTOs|Basic HOWTOs]].&lt;br /&gt;
&lt;br /&gt;
==Query Customizations==&lt;br /&gt;
All user content (uploads, topics, reviews, etc.) is display via the [[cchost/concepts/Query_Engine|Query API]]. With a little knowledge of URL building you gain control over what uploaded content is displayed in the settings of your choice. For example if you want to show the most popular uploads tagged 'remix' for the last two weeks you specify that using URL syntax in a navigation tab, including the title to display:&lt;br /&gt;
&lt;br /&gt;
  tags=remix&amp;amp;sinced=2 weeks ago&amp;amp;sort=rankings&amp;amp;title=Hot Remixes&lt;br /&gt;
&lt;br /&gt;
The query engine also works with topic contents.&lt;br /&gt;
&lt;br /&gt;
==Configuration Customizations==&lt;br /&gt;
The way the system is set up, ''all'' of the customizations in the 'Admin' section above are actually fancy ways of manipulating configuration files already in your system, many of which can be superseded by simply making your own version.&lt;br /&gt;
  &lt;br /&gt;
Even if you don't exactly know what the configuration syntax is or how it works, you can easily customize your installation with some judicious cut and paste in configuration files that the system will look for in your &amp;lt;local_files&amp;gt; directory. These include:&lt;br /&gt;
*How to [[cchost/admin/config_customize#Strings|replace strings]] in forms, prompts and listings.&lt;br /&gt;
*Create your own [[cchost/admin/config_customize#Colors|custom color scheme]].&lt;br /&gt;
*Create specialized [[cchost/admin/config_customize#Sidebar_extras|sidebar widgets]].&lt;br /&gt;
&lt;br /&gt;
==HTML/CSS Markup Customization==&lt;br /&gt;
If you are comfortable with a little HTML and CSS hacking and you still want more control over your installation then you will find quite a large world open up to you. &lt;br /&gt;
&lt;br /&gt;
===Custom Pieces===&lt;br /&gt;
If you are generally happy with the overall look and layout of the site but want to change specific screen, you can create customized display layouts and then select them through the admin screens:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/Custom_Query_Templates|Custom query templates]] (way more powerful than you might first realize)&lt;br /&gt;
*[[cchost/Static_HTML_Pages|Static HTML]] (and PHP) pages&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Page|Upload page]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Listings|Upload listings]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Query Browser|Query browser listing]]&lt;br /&gt;
*Form layouts&lt;br /&gt;
&lt;br /&gt;
===Custom Skins=== &lt;br /&gt;
Creating your own skin is how you take ultimate control of the overall look and feel of your installation. Learn how this is done in the [[cchost/concepts/Skins|Skins section]].&lt;br /&gt;
&lt;br /&gt;
==Developer Customizations==&lt;br /&gt;
===Common===&lt;br /&gt;
There are many customizations that can be done with just a few lines of code. Some of those the more popular ones are:&lt;br /&gt;
*[[cchost/developer/customize#Add_or_remove_form_fields|Add or remove form fields]] including the submit forms&lt;br /&gt;
*Add data fields [[cchost/developer/customize#Add_data_per_user|per user]] and [[cchost/developer/customize#Add_data_per_upload|per upload]].&lt;br /&gt;
*[[Cchost/developer/customize#Using_custom_data_in_a_template|Retrieving custom data]] for listing display in a template&lt;br /&gt;
*Saving and retrieving [[Cchost/developer/customize#Saving_and_retrieving_system_configuration_data|data from the system configuration]]&lt;br /&gt;
*[[Cchost/developer/customize#Adding_settings_to_the_admin_menus|Adding an admin setting]] to settings menu&lt;br /&gt;
*[[Cchost/developer/customize#Mapping_URLs_to_custom_code|Mapping a URL]] to your custom code&lt;br /&gt;
&lt;br /&gt;
===Event Hooking===&lt;br /&gt;
ccHost triggers events at certain key moments and you can register to be notified at those times. The more popular ones of those are:&lt;br /&gt;
*On [[cchost/developer/tutorial/Hooking_File_Events|file uploaded or deleted]].&lt;br /&gt;
*On display of [[Cchost/developer/Hooking_the_User_Profile|user profile]].&lt;br /&gt;
*When the remix sources for an upload has changed&lt;br /&gt;
*When a new topic has been added or deleted&lt;br /&gt;
*When a [[Cchost/Developers#Wait_for_Initialization|session is starting]].&lt;br /&gt;
*On [[cchost/developer/Hooking Page Render|every page render]].&lt;br /&gt;
*Several different phases of a form being constructed (this applies to every single form in the system)&lt;br /&gt;
&lt;br /&gt;
===Esoteric===&lt;br /&gt;
There are many other hooks in the system (over 100) many of which still fall in the category of &amp;quot;easy to hook&amp;quot; even if the hook itself may or may not require heavy lifting. These include:&lt;br /&gt;
*Adding % macros that expand on file renaming and ID3 tagging&lt;br /&gt;
*Adding and verifying new parameters to the query engine&lt;br /&gt;
*[[cchost/developer/tutorial/Replacing the File Verifier|Replacing the file verifier]]&lt;br /&gt;
*Adding a new search type&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/customize/Home_Page&amp;diff=23728</id>
		<title>Cchost/customize/Home Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/customize/Home_Page&amp;diff=23728"/>
				<updated>2009-06-09T06:34:40Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Under the '''Content Topics''' section, make sure that 'home' is selected from the ''Select content type'' drop-down list &lt;br /&gt;
&lt;br /&gt;
This last step will refresh your page, filtering the contents to just the topics with the type 'home'.&lt;br /&gt;
&lt;br /&gt;
Here you can edit or delete the topics that are used on the home page.&lt;br /&gt;
&lt;br /&gt;
By default, the topics will flow across the home page, starting with the newest topic on the top left. To change this behavior, or any other general property of the home page (like the title), click on the ''edit'' button next to the &amp;quot;/home&amp;quot; page under the '''Content Pages''' section.&lt;br /&gt;
&lt;br /&gt;
To create new topics for the home page:&lt;br /&gt;
&lt;br /&gt;
#Click on the ''Create New Content'' button. &lt;br /&gt;
#This will bring up the '''Post Content''' form. &lt;br /&gt;
#Select 'home' in the ''Content Type'' field&lt;br /&gt;
#Leave the ''New Content Type'' blank.&lt;br /&gt;
#Fill out the rest of the form, then click ''Submit''&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/customize/Home_Page&amp;diff=23727</id>
		<title>Cchost/customize/Home Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/customize/Home_Page&amp;diff=23727"/>
				<updated>2009-06-09T06:29:28Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with 'Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{cchost_head}} {{lowercase}}  #Log in as an admin (if not already)...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Under the '''Content Topics''' section, make sure that 'home' is selected from the ''Select content type'' drop-down list &lt;br /&gt;
&lt;br /&gt;
This last step will refresh your page, filtering the contents to just the topics with the type 'home'.&lt;br /&gt;
&lt;br /&gt;
Here you can create, edit or delete the topics that are used on the home page.&lt;br /&gt;
&lt;br /&gt;
By default, the topics will flow across the home page, starting with the newest topic on the top left. To change this behavior, or any other general property of the home page (like the title), click on the ''edit'' button next to the &amp;quot;/home&amp;quot; page under the '''Content Pages''' section.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23726</id>
		<title>Cchost/guide/Installing</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23726"/>
				<updated>2009-06-09T06:19:42Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Upgrading to 5.0 from 3.0 or Before */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Installing=&lt;br /&gt;
== Simple  ==&lt;br /&gt;
The easiest way to get going is to start with a web hosting server. Common web hosting services like [http://www.brainpulse.com BrainPulse] ,   [http://www.dreamhost.com/ Dreamhost] and [http://www.websitesource.com WebsiteSource] provide an administration interface for setting up a mysql database. Hosting services also provide some FTP or SFTP mechanism to upload the ccHost installation files as well. 99% of all services provide support for PHP as well. If you have questions about support in this area, check the server requirements below and with your hosting service.&lt;br /&gt;
&lt;br /&gt;
#Unzip the ccHost ZIP archive on your local system and copy the files to your server retaining the the directory structure.&lt;br /&gt;
#Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed&amp;lt;/nowiki&amp;gt;''' and follow all the instructions from then on.&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
If you have basic knowledge of using FTP and you are comfortable at a terminal command line you can use these steps. Many of these can be filed under &amp;quot;you'll be glad you did&amp;quot; by the time you get to the browser-based installation steps later on.&lt;br /&gt;
&lt;br /&gt;
=== Download/Install getID3 ===&lt;br /&gt;
ccHost depends on the getID3 library for verifying uploads. Install getID3 (at least 1.7.3) here: http://www.getid3.org/#download before you install ccHost. (It's a simple download-unpack operation.)&lt;br /&gt;
&lt;br /&gt;
Note: Make sure the release you install is marked as '''stable'''. Do ''not'' install anything that is &amp;quot;beta&amp;quot; or &amp;quot;alpha&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example (on Linux):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzf getid3.tar.gz&lt;br /&gt;
cp -a getid3/getid3 /var/www/localhost/htdocs/getid3/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ccHost installer will 'find' your getID3 installation if it's roughly in the same area of the server, however it is ''not'' required that your getID3 be visible on the web and in fact, it's probably more secure if it isn't.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|BUG WARNING: Later versions of getID3 (starting with 1.7.7) have an issue with RIFF based files (WAV, AVI, etc.) when tagging them and require a manual patch in order to work properly. Remove line #105 in getID3/write.php that looks like:&lt;br /&gt;
 case 'riff': // maybe not officially, but people do it anyway }}&lt;br /&gt;
&lt;br /&gt;
=== ccHost Terminal Installtion ===&lt;br /&gt;
* Unzip the ccHost ZIP archive on your local system and copy the files (retaining the directory structure) to your web-server directory. &lt;br /&gt;
* On Linux change the group and permissions of the files so they may be written by the web server (e.g., in the following lines, the web-server account is &amp;quot;apache&amp;quot;).&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a cchost-1.0.3 /var/www/localhost/htdocs/cchost&lt;br /&gt;
chgrp -R apache /var/www/localhost/htdocs/cchost&lt;br /&gt;
chmod g+w /var/www/localhost/htdocs/cchost/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create a new database for ccHost (e.g., named &amp;quot;cchost&amp;quot;) and create an administrative user to access it (e.g., &amp;quot;cchostadmin&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p -u root&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE cchost;&lt;br /&gt;
mysql&amp;gt; GRANT ALL ON cchost.* TO 'cchostadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to change 'YOUR_PASSWORD_HERE' (and maybe 'cchostadmin') to something unique to your site.&lt;br /&gt;
(Many systems provide '''phpMyAdmin''' to take care of these tasks.&lt;br /&gt;
*Create directory /var/log/cchost or other location to store log files.  Must be writable by the web-server account (e.g., &amp;quot;apache&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/log/cchost&lt;br /&gt;
chown apache:apache /var/log/cchost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several suggestions for mod_rewrite and configuration settings [[cchost/admin/apache/config|here]].&lt;br /&gt;
&lt;br /&gt;
Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed_cchost&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Everything else you need to know will be on the screen from that point on, including topics covered above such as suggested php.ini and .htaccess settings, access permissions requirements, etc.&lt;br /&gt;
&lt;br /&gt;
= Upgrading =&lt;br /&gt;
{{Infobox|'''Always''' make a backup of your mySQL ccHost database and the files you change before you start the upgrade process. Things go wrong. You have been warned.}}&lt;br /&gt;
== Upgrading from 5.0 to higher ==&lt;br /&gt;
*Log in to your ccHost installation as an admin&lt;br /&gt;
*Unzip the ZIP archive on a local machine&lt;br /&gt;
*Delete the '''ccadmin''' directory on your local copy&lt;br /&gt;
*Copy the entire structure to your web installation&lt;br /&gt;
*Browse '''&amp;lt;you_installation_root&amp;gt;?update=1'''&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.x from 3.1 and Above ==&lt;br /&gt;
===Before you upgrade===&lt;br /&gt;
==== Plugins ====&lt;br /&gt;
It is recommended that you do '''not''' copy any plugins or custom code that have not been ported to ccHost 5 during the initial upgrade. You should get your site up and running without them using the standard upgrade first, then start migrating your plugins.&lt;br /&gt;
==== Importing phpTAL Templates ====&lt;br /&gt;
None of your previous version skins, pages, etc. work anymore as is. You can try to import your old phpTAL XML templates using:&lt;br /&gt;
&lt;br /&gt;
     bin/cc-host-import-v4-template.php &lt;br /&gt;
&lt;br /&gt;
Many imported templates (like your home page) might &amp;quot;just work&amp;quot; but many will need tweaking, assuming you are familiar with PHP. A detailed description of what might go wrong is [[Preparing_for_ccHost_5.0|this document]].&lt;br /&gt;
&lt;br /&gt;
===Doing the upgrade===&lt;br /&gt;
* Log in as admin on your ccHost installation&lt;br /&gt;
* Make a backup of your database.&lt;br /&gt;
* Unzip the ccHost package on a local machine.&lt;br /&gt;
* Copy the entire tree (including ccadmin) to your installation&lt;br /&gt;
* Browse to &amp;lt;nowiki&amp;gt;http://&amp;lt;your_install_location&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5 from 3.0 or Before ==&lt;br /&gt;
Upgrading to 5 simply hasn't been tried or tested. (If you have some experience, please feel to share with the rest of the class.) It is therefore not recommended except for the very strong willed. &lt;br /&gt;
&lt;br /&gt;
Instead what you may want to consider (if you don't have a lot of content data) is start with a brand new installation using version 5.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23725</id>
		<title>Cchost/guide/Installing</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23725"/>
				<updated>2009-06-09T06:18:44Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Upgrading to 5.0 from 3.1 and Above */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Installing=&lt;br /&gt;
== Simple  ==&lt;br /&gt;
The easiest way to get going is to start with a web hosting server. Common web hosting services like [http://www.brainpulse.com BrainPulse] ,   [http://www.dreamhost.com/ Dreamhost] and [http://www.websitesource.com WebsiteSource] provide an administration interface for setting up a mysql database. Hosting services also provide some FTP or SFTP mechanism to upload the ccHost installation files as well. 99% of all services provide support for PHP as well. If you have questions about support in this area, check the server requirements below and with your hosting service.&lt;br /&gt;
&lt;br /&gt;
#Unzip the ccHost ZIP archive on your local system and copy the files to your server retaining the the directory structure.&lt;br /&gt;
#Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed&amp;lt;/nowiki&amp;gt;''' and follow all the instructions from then on.&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
If you have basic knowledge of using FTP and you are comfortable at a terminal command line you can use these steps. Many of these can be filed under &amp;quot;you'll be glad you did&amp;quot; by the time you get to the browser-based installation steps later on.&lt;br /&gt;
&lt;br /&gt;
=== Download/Install getID3 ===&lt;br /&gt;
ccHost depends on the getID3 library for verifying uploads. Install getID3 (at least 1.7.3) here: http://www.getid3.org/#download before you install ccHost. (It's a simple download-unpack operation.)&lt;br /&gt;
&lt;br /&gt;
Note: Make sure the release you install is marked as '''stable'''. Do ''not'' install anything that is &amp;quot;beta&amp;quot; or &amp;quot;alpha&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example (on Linux):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzf getid3.tar.gz&lt;br /&gt;
cp -a getid3/getid3 /var/www/localhost/htdocs/getid3/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ccHost installer will 'find' your getID3 installation if it's roughly in the same area of the server, however it is ''not'' required that your getID3 be visible on the web and in fact, it's probably more secure if it isn't.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|BUG WARNING: Later versions of getID3 (starting with 1.7.7) have an issue with RIFF based files (WAV, AVI, etc.) when tagging them and require a manual patch in order to work properly. Remove line #105 in getID3/write.php that looks like:&lt;br /&gt;
 case 'riff': // maybe not officially, but people do it anyway }}&lt;br /&gt;
&lt;br /&gt;
=== ccHost Terminal Installtion ===&lt;br /&gt;
* Unzip the ccHost ZIP archive on your local system and copy the files (retaining the directory structure) to your web-server directory. &lt;br /&gt;
* On Linux change the group and permissions of the files so they may be written by the web server (e.g., in the following lines, the web-server account is &amp;quot;apache&amp;quot;).&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a cchost-1.0.3 /var/www/localhost/htdocs/cchost&lt;br /&gt;
chgrp -R apache /var/www/localhost/htdocs/cchost&lt;br /&gt;
chmod g+w /var/www/localhost/htdocs/cchost/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create a new database for ccHost (e.g., named &amp;quot;cchost&amp;quot;) and create an administrative user to access it (e.g., &amp;quot;cchostadmin&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p -u root&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE cchost;&lt;br /&gt;
mysql&amp;gt; GRANT ALL ON cchost.* TO 'cchostadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to change 'YOUR_PASSWORD_HERE' (and maybe 'cchostadmin') to something unique to your site.&lt;br /&gt;
(Many systems provide '''phpMyAdmin''' to take care of these tasks.&lt;br /&gt;
*Create directory /var/log/cchost or other location to store log files.  Must be writable by the web-server account (e.g., &amp;quot;apache&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/log/cchost&lt;br /&gt;
chown apache:apache /var/log/cchost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several suggestions for mod_rewrite and configuration settings [[cchost/admin/apache/config|here]].&lt;br /&gt;
&lt;br /&gt;
Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed_cchost&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Everything else you need to know will be on the screen from that point on, including topics covered above such as suggested php.ini and .htaccess settings, access permissions requirements, etc.&lt;br /&gt;
&lt;br /&gt;
= Upgrading =&lt;br /&gt;
{{Infobox|'''Always''' make a backup of your mySQL ccHost database and the files you change before you start the upgrade process. Things go wrong. You have been warned.}}&lt;br /&gt;
== Upgrading from 5.0 to higher ==&lt;br /&gt;
*Log in to your ccHost installation as an admin&lt;br /&gt;
*Unzip the ZIP archive on a local machine&lt;br /&gt;
*Delete the '''ccadmin''' directory on your local copy&lt;br /&gt;
*Copy the entire structure to your web installation&lt;br /&gt;
*Browse '''&amp;lt;you_installation_root&amp;gt;?update=1'''&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.x from 3.1 and Above ==&lt;br /&gt;
===Before you upgrade===&lt;br /&gt;
==== Plugins ====&lt;br /&gt;
It is recommended that you do '''not''' copy any plugins or custom code that have not been ported to ccHost 5 during the initial upgrade. You should get your site up and running without them using the standard upgrade first, then start migrating your plugins.&lt;br /&gt;
==== Importing phpTAL Templates ====&lt;br /&gt;
None of your previous version skins, pages, etc. work anymore as is. You can try to import your old phpTAL XML templates using:&lt;br /&gt;
&lt;br /&gt;
     bin/cc-host-import-v4-template.php &lt;br /&gt;
&lt;br /&gt;
Many imported templates (like your home page) might &amp;quot;just work&amp;quot; but many will need tweaking, assuming you are familiar with PHP. A detailed description of what might go wrong is [[Preparing_for_ccHost_5.0|this document]].&lt;br /&gt;
&lt;br /&gt;
===Doing the upgrade===&lt;br /&gt;
* Log in as admin on your ccHost installation&lt;br /&gt;
* Make a backup of your database.&lt;br /&gt;
* Unzip the ccHost package on a local machine.&lt;br /&gt;
* Copy the entire tree (including ccadmin) to your installation&lt;br /&gt;
* Browse to &amp;lt;nowiki&amp;gt;http://&amp;lt;your_install_location&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.0 from 3.0 or Before ==&lt;br /&gt;
Upgrading to 5.0 simply hasn't been tried or tested. (If you have some experience, please feel to share with the rest of the class.) It is therefore not recommended except for the very strong willed. &lt;br /&gt;
&lt;br /&gt;
Instead what you may want to consider (if you don't have a lot of content data) is start new with 5.0.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Commands&amp;diff=23724</id>
		<title>Cchost/concepts/Commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/concepts/Commands&amp;diff=23724"/>
				<updated>2009-06-09T06:15:40Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=ccHost is About Commands=&lt;br /&gt;
Get used to the idea that ccHost is a command based system. Command are the done via URLs. They are the things you put into menus and navigation tabs when you are asked for 'command' or 'action' or 'URL'.&lt;br /&gt;
&lt;br /&gt;
Commands are appended to the base URL after the [[cchost/concepts/Virtual Roots|virtual root]].&lt;br /&gt;
&lt;br /&gt;
http://ccmixter.org/media/people&lt;br /&gt;
&lt;br /&gt;
  HINT:  Substitute your installation base URL for 'ccmixter.org' in these examples.&lt;br /&gt;
&lt;br /&gt;
==Pretty URLs==&lt;br /&gt;
If you are using non-pretty-URLs then that command would like like:&lt;br /&gt;
&lt;br /&gt;
http://ccmixter.org?ccm=/media/people&lt;br /&gt;
&lt;br /&gt;
For purposes of brevity in this documentation we tend to assume 'pretty-URLs' (the same URL without the ''?ccm='') are enabled in your system.&lt;br /&gt;
&lt;br /&gt;
==Stripping the Virtual Root==&lt;br /&gt;
As of ccHost 5.0 you can leave off the default virtual root ('''media''').&lt;br /&gt;
&lt;br /&gt;
If the virtual root is '''media''' and the command is '''people''' that will display the latest users (with uploads). If the virtual root is left off, 'media' is assumed. So the same command can be stated:&lt;br /&gt;
&lt;br /&gt;
http://ccmixter.org/people&lt;br /&gt;
&lt;br /&gt;
==Command in This Documentation==&lt;br /&gt;
In this documentation there are many places where you are told to browse to some location and given a partial path, for example, '''admin/paths'''.&lt;br /&gt;
&lt;br /&gt;
This is the command (and parameters if applicable) that you append to your installation root.&lt;br /&gt;
&lt;br /&gt;
  '''&amp;lt;nowiki&amp;gt;http://your_installation_root?ccm=/admin/paths&amp;lt;/nowiki&amp;gt;'''   Pretty URLs turned OFF&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
  '''&amp;lt;nowiki&amp;gt;http://your_installation_root/admin/paths&amp;lt;/nowiki&amp;gt;'''  For pretty URLs turned ON&lt;br /&gt;
&lt;br /&gt;
If the location in the documentation includes a '?' like:&lt;br /&gt;
&lt;br /&gt;
  '''api/query?tags=remix'''&lt;br /&gt;
&lt;br /&gt;
then you need to convert that to an ampersand '&amp;amp;' if you have pretty URLs turned OFF because your URL already has a '?':&lt;br /&gt;
&lt;br /&gt;
  '''&amp;lt;nowiki&amp;gt;http://your_installation_root?ccm=/api/query&amp;amp;tags=remix&amp;lt;/nowiki&amp;gt;'''   Pretty URLs turned OFF&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
Most command have parameters that are appended to the URL. For example '''people/antonov'''&lt;br /&gt;
&lt;br /&gt;
command is still 'people', parameter is 'antonov' which displays anotov's user profile&lt;br /&gt;
&lt;br /&gt;
=Command Reference=&lt;br /&gt;
Browse to the following commands for various dumps:&lt;br /&gt;
&lt;br /&gt;
* '''commands''' - all documented commands&lt;br /&gt;
* '''commands/public''' - commands available to users not logged in&lt;br /&gt;
* '''commands/user''' - commands available to users logged in&lt;br /&gt;
* '''commands/0''' - all commands, including undocumented&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23722</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23722"/>
				<updated>2009-06-09T06:06:20Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Choose License For Submit Forms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of ccHost 5.1, administrators have total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the actual license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
* You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
* At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
* Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If you only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available to the user during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. [[Cchost/admin/License#Allowing_Stricter_Licenses_for_Derived_Works|See below]] if you would like to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
* Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license'''  note there is 's' at the end of 'license')&lt;br /&gt;
* Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;br /&gt;
==Allowing Stricter Licenses for Derived Works==&lt;br /&gt;
The default behavior during the upload of a derived work (a.k.a. remix) is to use the strictest license of the sources chosen.&lt;br /&gt;
&lt;br /&gt;
However, some users may want to enforce an even stricter license during the upload. For example if the strictest license of all sources is Attribution, you might want to give the choice to the user to select a NonCommercial license. Another example is if the sources are all waived through Public Domain or CC0 (CC Zero) you might want to give the choice to the user to select a CC license for the derived work.&lt;br /&gt;
&lt;br /&gt;
If order to allow this follow these steps:&lt;br /&gt;
*Click on ''Global Settings'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*At the bottom of that screen, click on the '''Configure Upgrade Alternatives''' button.&lt;br /&gt;
&lt;br /&gt;
You are now presented with a form with two sets of all the licenses in the system. From the top half, select the licenses of the source, (i.e. the &amp;quot;incoming&amp;quot; license that is the strictest of the combined sources). From the bottom half select what licenses you'd like to offer if any of the incoming licenses are seen.&lt;br /&gt;
&lt;br /&gt;
For example, if the incoming license is CC0 and you want offer CC Attribution, check the CC0 box in the top half, and Attribution in the bottom half. (You don't have to select CC0 in the bottom half, the incoming license will always be a choice.)&lt;br /&gt;
&lt;br /&gt;
These choices are offered dynamically as the user is selecting sources in the the remix submit form and also when they are changing the sources of an existing upload.&lt;br /&gt;
&lt;br /&gt;
You do you not wish to offer any stricter licenses, leave all of the check boxes in the entire screen blank.&lt;br /&gt;
{{Infobox|Please be very careful with this screen, as it is very easy to create illegal combination of 'upgrades'.}}&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23721</id>
		<title>Cchost/guide/Customize</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Customize&amp;diff=23721"/>
				<updated>2009-06-09T06:04:44Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Admin Customizations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
==Overview==&lt;br /&gt;
There are many levels of customization to a ccHost installation with each level requiring more and more technical skill. It is not obvious what kind of customization is possible at each level so here are some hints that might help you to decide what you need to do in order to achieve your goals.&lt;br /&gt;
&lt;br /&gt;
==Admin Customizations==&lt;br /&gt;
In ccHost 5 there are dozens of customizations that do not require any coding. You can do all these simply by filling out forms:&lt;br /&gt;
*Create and manage [[cchost/admin/Content_Manager|formatted content pages]]&lt;br /&gt;
*Upload [[cchost/admin/Basic HOWTOs##How_do_I_change_the_banner_.28logo.29.3F|banner images (logos)]]&lt;br /&gt;
*Customize [[Cchost/admin/config_customize#Strings|the text]] (menus, prompts, labels, etc.)&lt;br /&gt;
*Manage [[Cchost/admin/License|licenses]]&lt;br /&gt;
*Create your own submit form types&lt;br /&gt;
*[[Cchost/admin/config_customize#Page_Layout|Page layouts]] (e.g. placement of menus, tabs, widgets, etc.)&lt;br /&gt;
*Select default font family and size from a list.&lt;br /&gt;
*Select [[Cchost/admin/config_customize#Colors|color schemes]].&lt;br /&gt;
*Select and order [[Cchost/admin/config_customize#Sidebar_extras|sidebar extras]] (aka widgets) &lt;br /&gt;
*Select how your forms are laid out from a list of available layouts.&lt;br /&gt;
*Save and retrieve multiple versions of [[Cchost/concepts/Skins#Create_a_Skin_Profile|skin profiles]]&lt;br /&gt;
*Create '[[Cchost/concepts/Virtual_Roots|mini sites]]' with different look and feel for each one&lt;br /&gt;
*[[Cchost/admin/Basic_HOWTOs#How_do_I_add_new_file_types_to_the_system.3F|Add file types]] to the system&lt;br /&gt;
*Select [[Cchost/How_Content_is_Displayed#Upload_Listings|user content listing types]] from a list of options&lt;br /&gt;
*Configure the [[Cchost/How_Content_is_Displayed#Query_Browser|query browser]]&lt;br /&gt;
&lt;br /&gt;
For more options see [[cchost/admin/Basic HOWTOs|Basic HOWTOs]].&lt;br /&gt;
&lt;br /&gt;
==Query Customizations==&lt;br /&gt;
All user content (uploads, topics, reviews, etc.) is display via the [[cchost/concepts/Query_Engine|Query API]]. With a little knowledge of URL building you gain control over what uploaded content is displayed in the settings of your choice. For example if you want to show the most popular uploads tagged 'remix' for the last two weeks you specify that using URL syntax in a navigation tab, including the title to display:&lt;br /&gt;
&lt;br /&gt;
  tags=remix&amp;amp;sinced=2 weeks ago&amp;amp;sort=rankings&amp;amp;title=Hot Remixes&lt;br /&gt;
&lt;br /&gt;
The query engine also works with topic contents.&lt;br /&gt;
&lt;br /&gt;
==Configuration Customizations==&lt;br /&gt;
The way the system is set up, ''all'' of the customizations in the 'Admin' section above are actually fancy ways of manipulating configuration files already in your system, many of which can be superseded by simply making your own version.&lt;br /&gt;
  &lt;br /&gt;
Even if you don't exactly know what the configuration syntax is or how it works, you can easily customize your installation with some judicious cut and paste in configuration files that the system will look for in your &amp;lt;local_files&amp;gt; directory. These include:&lt;br /&gt;
*How to [[cchost/admin/config_customize#Strings|replace strings]] in forms, prompts and listings.&lt;br /&gt;
*Create your own [[cchost/admin/config_customize#Colors|custom color scheme]].&lt;br /&gt;
*Create specialized [[cchost/admin/config_customize#Sidebar_extras|sidebar widgets]].&lt;br /&gt;
&lt;br /&gt;
==HTML/CSS Markup Customization==&lt;br /&gt;
If you are comfortable with a little HTML and CSS hacking and you still want more control over your installation then you will find quite a large world open up to you. &lt;br /&gt;
&lt;br /&gt;
===Custom Pieces===&lt;br /&gt;
If you are generally happy with the overall look and layout of the site but want to change specific screen, you can create customized display layouts and then select them through the admin screens:&lt;br /&gt;
&lt;br /&gt;
*[[cchost/Custom_Query_Templates|Custom query templates]] (way more powerful than you might first realize)&lt;br /&gt;
*[[cchost/Static_HTML_Pages|Static HTML]] (and PHP) pages&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Page|Upload page]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Upload Listings|Upload listings]]&lt;br /&gt;
*[[cchost/How_Content_is_Displayed#Query Browser|Query browser listing]]&lt;br /&gt;
*Form layouts&lt;br /&gt;
&lt;br /&gt;
===Custom Skins=== &lt;br /&gt;
Creating your own skin is how you take ultimate control of the overall look and feel of your installation. Learn how this is done in the [[cchost/concepts/Skins|Skins section]].&lt;br /&gt;
&lt;br /&gt;
==Developer Customizations==&lt;br /&gt;
===Common===&lt;br /&gt;
There are many customizations that can be done with just a few lines of code. Some of those the more popular ones are:&lt;br /&gt;
*[[cchost/developer/customize#Add_or_remove_form_fields|Add or remove form fields]] including the submit forms&lt;br /&gt;
*Add data fields [[cchost/developer/customize#Add_data_per_user|per user]] and [[cchost/developer/customize#Add_data_per_upload|per upload]].&lt;br /&gt;
*[[Cchost/developer/customize#Using_custom_data_in_a_template|Retrieving custom data]] for listing display in a template&lt;br /&gt;
*Saving and retrieving [[Cchost/developer/customize#Saving_and_retrieving_system_configuration_data|data from the system configuration]]&lt;br /&gt;
*[[Cchost/developer/customize#Adding_settings_to_the_admin_menus|Adding an admin setting]] to settings menu&lt;br /&gt;
*[[Cchost/developer/customize#Mapping_URLs_to_custom_code|Mapping a URL]] to your custom code&lt;br /&gt;
&lt;br /&gt;
===Event Hooking===&lt;br /&gt;
ccHost triggers events at certain key moments and you can register to be notified at those times. The more popular ones of those are:&lt;br /&gt;
*On [[cchost/developer/tutorial/Hooking_File_Events|file uploaded or deleted]].&lt;br /&gt;
*On display of [[Cchost/developer/Hooking_the_User_Profile|user profile]].&lt;br /&gt;
*When the remix sources for an upload has changed&lt;br /&gt;
*When a new topic has been added or deleted&lt;br /&gt;
*When a [[Cchost/Developers#Wait_for_Initialization|session is starting]].&lt;br /&gt;
*On [[cchost/developer/Hooking Page Render|every page render]].&lt;br /&gt;
*Several different phases of a form being constructed (this applies to every single form in the system)&lt;br /&gt;
&lt;br /&gt;
===Esoteric===&lt;br /&gt;
There are many other hooks in the system (over 100) many of which still fall in the category of &amp;quot;easy to hook&amp;quot; even if the hook itself may or may not require heavy lifting. These include:&lt;br /&gt;
*Adding % macros that expand on file renaming and ID3 tagging&lt;br /&gt;
*Adding and verifying new parameters to the query engine&lt;br /&gt;
*[[cchost/developer/tutorial/Replacing the File Verifier|Replacing the file verifier]]&lt;br /&gt;
*Adding a new search type&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Template:Cchost_5_1&amp;diff=23720</id>
		<title>Template:Cchost 5 1</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Template:Cchost_5_1&amp;diff=23720"/>
				<updated>2009-06-09T06:02:38Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*''This page refers to features only available on '''ccHost 5.1'''''&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23719</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23719"/>
				<updated>2009-06-09T05:59:58Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{cchost_5_1}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of ccHost 5.1, administrators have total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the actual license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
* You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
* At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
* Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If you only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available to the user during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. See below if you would like to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
* Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license'''  note there is 's' at the end of 'license')&lt;br /&gt;
* Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;br /&gt;
==Allowing Stricter Licenses for Derived Works==&lt;br /&gt;
The default behavior during the upload of a derived work (a.k.a. remix) is to use the strictest license of the sources chosen.&lt;br /&gt;
&lt;br /&gt;
However, some users may want to enforce an even stricter license during the upload. For example if the strictest license of all sources is Attribution, you might want to give the choice to the user to select a NonCommercial license. Another example is if the sources are all waived through Public Domain or CC0 (CC Zero) you might want to give the choice to the user to select a CC license for the derived work.&lt;br /&gt;
&lt;br /&gt;
If order to allow this follow these steps:&lt;br /&gt;
*Click on ''Global Settings'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*At the bottom of that screen, click on the '''Configure Upgrade Alternatives''' button.&lt;br /&gt;
&lt;br /&gt;
You are now presented with a form with two sets of all the licenses in the system. From the top half, select the licenses of the source, (i.e. the &amp;quot;incoming&amp;quot; license that is the strictest of the combined sources). From the bottom half select what licenses you'd like to offer if any of the incoming licenses are seen.&lt;br /&gt;
&lt;br /&gt;
For example, if the incoming license is CC0 and you want offer CC Attribution, check the CC0 box in the top half, and Attribution in the bottom half. (You don't have to select CC0 in the bottom half, the incoming license will always be a choice.)&lt;br /&gt;
&lt;br /&gt;
These choices are offered dynamically as the user is selecting sources in the the remix submit form and also when they are changing the sources of an existing upload.&lt;br /&gt;
&lt;br /&gt;
You do you not wish to offer any stricter licenses, leave all of the check boxes in the entire screen blank.&lt;br /&gt;
{{Infobox|Please be very careful with this screen, as it is very easy to create illegal combination of 'upgrades'.}}&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Template:Cchost_5_1&amp;diff=23718</id>
		<title>Template:Cchost 5 1</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Template:Cchost_5_1&amp;diff=23718"/>
				<updated>2009-06-09T05:59:03Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with '{{Infobox|Information on this page contains features only available on ccHost 5.1}}'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox|Information on this page contains features only available on ccHost 5.1}}&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23717</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23717"/>
				<updated>2009-06-09T05:53:01Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Choose License For Submit Forms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of ccHost 5.1, administrators have total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the actual license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
* You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
* At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
* Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If you only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available to the user during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. See below if you would like to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
* Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license'''  note there is 's' at the end of 'license')&lt;br /&gt;
* Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;br /&gt;
==Allowing Stricter Licenses for Derived Works==&lt;br /&gt;
The default behavior during the upload of a derived work (a.k.a. remix) is to use the strictest license of the sources chosen.&lt;br /&gt;
&lt;br /&gt;
However, some users may want to enforce an even stricter license during the upload. For example if the strictest license of all sources is Attribution, you might want to give the choice to the user to select a NonCommercial license. Another example is if the sources are all waived through Public Domain or CC0 (CC Zero) you might want to give the choice to the user to select a CC license for the derived work.&lt;br /&gt;
&lt;br /&gt;
If order to allow this follow these steps:&lt;br /&gt;
*Click on ''Global Settings'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*At the bottom of that screen, click on the '''Configure Upgrade Alternatives''' button.&lt;br /&gt;
&lt;br /&gt;
You are now presented with a form with two sets of all the licenses in the system. From the top half, select the licenses of the source, (i.e. the &amp;quot;incoming&amp;quot; license that is the strictest of the combined sources). From the bottom half select what licenses you'd like to offer if any of the incoming licenses are seen.&lt;br /&gt;
&lt;br /&gt;
For example, if the incoming license is CC0 and you want offer CC Attribution, check the CC0 box in the top half, and Attribution in the bottom half. (You don't have to select CC0 in the bottom half, the incoming license will always be a choice.)&lt;br /&gt;
&lt;br /&gt;
These choices are offered dynamically as the user is selecting sources in the the remix submit form and also when they are changing the sources of an existing upload.&lt;br /&gt;
&lt;br /&gt;
You do you not wish to offer any stricter licenses, leave all of the check boxes in the entire screen blank.&lt;br /&gt;
{{Infobox|Please be very careful with this screen, as it is very easy to create illegal combination of 'upgrades'.}}&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23678</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23678"/>
				<updated>2009-06-08T00:32:14Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Allowing Stricter Licenses for Derived Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of ccHost 5.1, administrators have total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the actual license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
* You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
* At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
* Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. See below if you would to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
* Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license'''  note there is 's' at the end of 'license')&lt;br /&gt;
* Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;br /&gt;
==Allowing Stricter Licenses for Derived Works==&lt;br /&gt;
The default behavior during the upload of a derived work (a.k.a. remix) is to use the strictest license of the sources chosen.&lt;br /&gt;
&lt;br /&gt;
However, some users may want to enforce an even stricter license during the upload. For example if the strictest license of all sources is Attribution, you might want to give the choice to the user to select a NonCommercial license. Another example is if the sources are all waived through Public Domain or CC0 (CC Zero) you might want to give the choice to the user to select a CC license for the derived work.&lt;br /&gt;
&lt;br /&gt;
If order to allow this follow these steps:&lt;br /&gt;
*Click on ''Global Settings'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*At the bottom of that screen, click on the '''Configure Upgrade Alternatives''' button.&lt;br /&gt;
&lt;br /&gt;
You are now presented with a form with two sets of all the licenses in the system. From the top half, select the licenses of the source, (i.e. the &amp;quot;incoming&amp;quot; license that is the strictest of the combined sources). From the bottom half select what licenses you'd like to offer if any of the incoming licenses are seen.&lt;br /&gt;
&lt;br /&gt;
For example, if the incoming license is CC0 and you want offer CC Attribution, check the CC0 box in the top half, and Attribution in the bottom half. (You don't have to select CC0 in the bottom half, the incoming license will always be a choice.)&lt;br /&gt;
&lt;br /&gt;
These choices are offered dynamically as the user is selecting sources in the the remix submit form and also when they are changing the sources of an existing upload.&lt;br /&gt;
&lt;br /&gt;
You do you not wish to offer any stricter licenses, leave all of the check boxes in the entire screen blank.&lt;br /&gt;
{{Infobox|Please be very careful with this screen, as it is very easy to create illegal combination of 'upgrades'.}}&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23677</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23677"/>
				<updated>2009-06-08T00:30:16Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of ccHost 5.1, administrators have total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the actual license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
* You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
* At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
* Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. See below if you would to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
* Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license'''  note there is 's' at the end of 'license')&lt;br /&gt;
* Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;br /&gt;
==Allowing Stricter Licenses for Derived Works==&lt;br /&gt;
The default behavior during the upload of a derived work (a.k.a. remix) is to use the strictest license of the sources chosen.&lt;br /&gt;
&lt;br /&gt;
However, some users may want to enforce an even stricter license during the upload. For example if the strictest license of all sources is Attribution, you might want to give the choice to the user to select a NonCommercial license. Another example is if the sources are all waived through Public Domain or CC0 (CC Zero) you might want to give the choice to the user to select a CC license for the derived work.&lt;br /&gt;
&lt;br /&gt;
If order to allow this follow these steps:&lt;br /&gt;
*Click on ''Global Settings'' then ''License'' (or browse to '''admin/license''')&lt;br /&gt;
*At the bottom of that screen, click on the '''Configure Upgrade Alternatives''' button.&lt;br /&gt;
&lt;br /&gt;
You are now presented with a form with two sets of all the licenses in the system. From the top half, select the licenses of the source, (i.e. the &amp;quot;incoming&amp;quot; license that is the strictest of the combined sources). From the bottom half select what licenses you'd like to offer if any of the incoming licenses are seen.&lt;br /&gt;
&lt;br /&gt;
For example, if the incoming license is CC0 and you want offer CC Attribution, check the CC0 box in the top half, and Attribution in the bottom half. (You don't have to select CC0 in the bottom half, the incoming license will always be a choice.)&lt;br /&gt;
&lt;br /&gt;
These choices are offered dynamically as the user is selecting sources in the the remix submit form and also when they are changing the sources of an existing upload.&lt;br /&gt;
&lt;br /&gt;
You do you not wish to offer any stricter licenses, leave all of the check boxes in the entire screen blank.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23676</id>
		<title>Cchost/admin/License</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/License&amp;diff=23676"/>
				<updated>2009-06-08T00:16:49Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: Created page with 'Category:ccHost Category:ccMixter Category:Developer Category:Software Category:Technology {{cchost_head}} {{lowercase}}  =Managing Licenses= As of 5.1 admini...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
=Managing Licenses=&lt;br /&gt;
As of 5.1 administrators have easy, total control over which licenses are available during the upload process. The licenses are shown to the user on the ''submit'' forms. &lt;br /&gt;
&lt;br /&gt;
Please note that with ccHost you are only managing references to licenses, not the actual license itself. For example, if you want to present a custom commercial license to the user, you would create the license with other tools and then use the ccHost facilities described below to reference that license.&lt;br /&gt;
&lt;br /&gt;
==Choose License For Submit Forms==&lt;br /&gt;
You can edit which licenses are available for the user during upload of original material. While logged in administrator:&lt;br /&gt;
&lt;br /&gt;
- Click on &amp;quot;Manage Site&amp;quot; then &amp;quot;Submit Forms&amp;quot; (or browse to '''admin/submit''')&lt;br /&gt;
- You can create a new submit form type by clicking on 'Add New Submit Form' button or click on '''Edit''' next to one of the existing type to bring up the submit form editor. &lt;br /&gt;
- At the section called ''Licenses'' you can select which licenses or waivers are available for type submission to your site. (They will appear as a radio button choice in the submit form.)&lt;br /&gt;
- Click ''Submit'' button when you're done.&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for each submit form type.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If only pick one license or waiver, then no options will be available for the user during submit. You could, for example, have one submit form for just Public Domain submissions and another form for CC Attribution.}}&lt;br /&gt;
&lt;br /&gt;
{{Infobox|If the ''Enable Remix Search'' is enabled then no explicit license choices are available during submit, since the ccHost code will pick the &amp;quot;strictest&amp;quot; license based on the sources of the upload. See below if you would to offer users even stricter licenses during the uploading of derived works.}}&lt;br /&gt;
==Editing the Licenses in the System==&lt;br /&gt;
If you would like change some of the properties of the licenses (e.g. their graphical logos) or offer more licenses than the ccHost defaults, (e.g. different jurisdictions) you can edit them in the following way:&lt;br /&gt;
- Click on &amp;quot;Global Settings&amp;quot; then &amp;quot;Licenses&amp;quot; (or browser to '''admin/license''' - note there is 's' at the end of 'license')&lt;br /&gt;
- Click on the '''Add New License''' button to create a new license in the system, or click '''Edit''' next to the license you wish to edit.&lt;br /&gt;
===License Properties===&lt;br /&gt;
The '''License ID''' is only editable for the new licenses and must be unique across the system. You can put a number at the end if you like: attribution_4 for the a future version of the CC-BY license.&lt;br /&gt;
&lt;br /&gt;
As of this writing the '''Jurisdiction''' field is not used in ccHost.&lt;br /&gt;
&lt;br /&gt;
The '''Description''' field can have HTML in it and will be displayed directly in the submit form to the user.&lt;br /&gt;
&lt;br /&gt;
The '''Permits/Requires/Prohibits''' section are used by CC-aware search engines such as Google(tm) and Yahoo!(tm).&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=23675</id>
		<title>CcHost</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=23675"/>
				<updated>2009-06-07T23:23:44Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Current Stable Release */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
{{Project}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
'''ccHost''' is Creative Commons' open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) [http://en.wikipedia.org/wiki/Content_management_system content management system] project that powers [http://ccmixter.org ccMixter] and is the winner of the [http://creativecommons.org/weblog/entry/6026 Linux Journal LinuxWorldExpo Product Excellence Award] for '''Best Open Source Solution.''' Read more about ccHost [[#Zeitgeist|here]].&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Sign up for [http://sourceforge.net/export/rss2_projfiles.php?group_id=80503 our RSS release feed] to make sure you don't miss important bug fixes and feature updates.&lt;br /&gt;
&lt;br /&gt;
=== Current Stable Release ===&lt;br /&gt;
Latest stable build of [https://sourceforge.net/project/showfiles.php?group_id=80503&amp;amp;package_id=156675 ccHost 5.1 Release Candidate] is available in ZIP archive format.&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
[[cchost/Documentation|ccHost 5 Documentation]]&lt;br /&gt;
&lt;br /&gt;
=Communication=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== People ===&lt;br /&gt;
* [[User:fourstones|Victor Stone]]&lt;br /&gt;
* [[User:Jon Phillips|Jon Phillips]]&lt;br /&gt;
=== Contacting  ===&lt;br /&gt;
The mailing list is the best way to get our attention. That and other methods are listed below:&lt;br /&gt;
* Mailing List: https://lists.sourceforge.net/mailman/listinfo/cctools-cchost&lt;br /&gt;
** [http://sourceforge.net/mailarchive/forum.php?forum=cctools-cchost Archive]&lt;br /&gt;
* Chat: #cc on irc.freenode.net&lt;br /&gt;
* Wiki: This page (http://wiki.creativecommons.org/CcHost)&lt;br /&gt;
* [[Cchost/Developers#Bugs_and_Feature_Requests|Bugs and feature requests]]&lt;br /&gt;
&lt;br /&gt;
= Zeitgeist =&lt;br /&gt;
=== Goal ===&lt;br /&gt;
The goal of this project is to spread media content that is licensed under Creative Commons throughout the web in much the same way that weblogs spread CC licensed text. &lt;br /&gt;
=== Short Description ===&lt;br /&gt;
&amp;quot;Web-based System Supporting Remixing and Collaboration on Media&amp;quot;&lt;br /&gt;
=== Slightly Longer Description === &lt;br /&gt;
'''ccHost''' is an open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) project that provides web-based infrastructure to support collaboration, sharing, and storage of multi-media using the Creative Commons licenses and metadata. It is the codebase used by [http://ccmixter.org ccMixter] and [[#Usage Examples|other sites]].&lt;br /&gt;
&lt;br /&gt;
Besides its focus on sharing content, ccHost differentiates itself from other multi-media hosting programs by emphasizing the '''reuse''' (a.k.a. remixing) of content between artists, not only between artists on any given installation of ccHost, but between all installations across the web and any web site that implements the Creative Commons [http://ccmixter.org/media/viewfile/pool_api_doc.xml Sample Pool API], including non-ccHost sites such as the [http://freesound.iua.upf.edu/ freesound project].&lt;br /&gt;
&lt;br /&gt;
=== Usage Examples ===&lt;br /&gt;
&lt;br /&gt;
* [http://ccmixter.org ccMixter] - Primary usage of ccHost is the Creative Commons remix site, ccMixter.&lt;br /&gt;
* [http://www.openclipart.org/ Open Clip Art Library ccHost in testing]&lt;br /&gt;
* [http://www.openfontlibrary.org Open Font Library]&lt;br /&gt;
* [http://freemusic.freeculture.org Freemusic Project]&lt;br /&gt;
* [http://www.opensourcecinema.com/cchost Open Source Cinema]&lt;br /&gt;
* [http://rayne.hellawack.net/ Matrix Rayne Online]&lt;br /&gt;
* [http://remix.machinehasnoagenda.com/ remix.linux]&lt;br /&gt;
* [http://www.ccmixter.co.za/ ccmixter South Africa]&lt;br /&gt;
* [http://fourstones.net fourstones.net] Victor's personal website&lt;br /&gt;
* [http://www.esolpc.com/teacherhost/ TeacherHost] - for Instructors to share instructional materials.&lt;br /&gt;
* [http://adrenalinicsound.com/ Adrenalinic Sound]&lt;br /&gt;
* [http://creativecommons.org.tw/formoz ccMixter from CC Taiwan]&lt;br /&gt;
* [http://www.overmundo.com.br/overmixter Overmixter - Brazil]&lt;br /&gt;
* [http://www.iamacc.org/ Iamacc.org]&lt;br /&gt;
* [http://www.enciclopediacecilia.org/musicast/ Remix Cecilia] at the Enciclopedia Cecilia project, music in the catholic church.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
= Appendix A: Compatibility =&lt;br /&gt;
&lt;br /&gt;
=== Browsers ===&lt;br /&gt;
&lt;br /&gt;
Recently tested on: Firefox 2/3 Mac/PC/Linux, IE 7 PC, Safari Mac (IE8 requires &amp;quot;compatibility&amp;quot; mode - see [[Cchost/guide/Troubleshooting#IE8_Layout_Issues|here]] for workaround)&lt;br /&gt;
&lt;br /&gt;
Cookies must be enabled.&lt;br /&gt;
&lt;br /&gt;
Most skins (the ones people will want to use) require Javascript enabled.&lt;br /&gt;
&lt;br /&gt;
=== Servers ===&lt;br /&gt;
&lt;br /&gt;
Primary development is done on Ubuntu 8.04 (hardy heron) using Apache, mySQL, and PHP. The actual dev setup is described in detail [[Cchost/Developers/Victor's_Dev_Setup|here]].&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
ccHost on Apache (2.0.49 up to at least apache-2.0.55-r1) on Linux, &lt;br /&gt;
&lt;br /&gt;
One should be able to easily install mySQL, PHP, and Apache (if they are not already available) through their distributions packaging system. See the dev setup above.&lt;br /&gt;
&lt;br /&gt;
==== Windows IIS Server ====&lt;br /&gt;
&lt;br /&gt;
{{Infobox|ccHost has not been seen running or tested on Windows for a long time - several versions ago.}}&lt;br /&gt;
&lt;br /&gt;
Windows users with their installation disks may install optionally the Windows IIS Web Server. This option has been tested. However, there might still be issues with it, and if so, [http://sourceforge.net/tracker2/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966 please file a bug].&lt;br /&gt;
&lt;br /&gt;
Even if you using Apache on Windows you may need to have IIS installed if you plan to use mail contact functions.&lt;br /&gt;
&lt;br /&gt;
==== Windows Apache ====&lt;br /&gt;
There are many good tutorials for setting up a Windows/Apache/MySQL/PHP site ([http://google.com/search?q=installing+WAMP Google search]) and all three subsystems now come with Windows installers making the job of installing relatively straightforward.&lt;br /&gt;
&lt;br /&gt;
====== XAMPP ======&lt;br /&gt;
Windows installations without Apache, mySQL and PHP already installed should consider using [http://www.apachefriends.org/en/xampp.html XAMPP] for Windows, which provides an easy install of Apache web server, MySQL database server, and PHP and perl programming languages. This is an easy way to get up and running, with the underlying technology necessary to use ccHost.&lt;br /&gt;
&lt;br /&gt;
Follow the instructions for installation of XAMPP to know where to put the uncompressed ccHost package to properly work with your local setup.&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X ====&lt;br /&gt;
&lt;br /&gt;
''NOTE: This setup is similar to Linux.''&lt;br /&gt;
&lt;br /&gt;
Verified:&lt;br /&gt;
&lt;br /&gt;
* OS X 10.4.6&lt;br /&gt;
* default OS X MySQL build, 4.0.26&lt;br /&gt;
* GetID3 1.7.7&lt;br /&gt;
* default Apache/PHP&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23643</id>
		<title>Cchost/guide/Installing</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23643"/>
				<updated>2009-06-04T20:47:20Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Download/Install getID3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Installing=&lt;br /&gt;
== Simple  ==&lt;br /&gt;
The easiest way to get going is to start with a web hosting server. Common web hosting services like [http://www.brainpulse.com BrainPulse] ,   [http://www.dreamhost.com/ Dreamhost] and [http://www.websitesource.com WebsiteSource] provide an administration interface for setting up a mysql database. Hosting services also provide some FTP or SFTP mechanism to upload the ccHost installation files as well. 99% of all services provide support for PHP as well. If you have questions about support in this area, check the server requirements below and with your hosting service.&lt;br /&gt;
&lt;br /&gt;
#Unzip the ccHost ZIP archive on your local system and copy the files to your server retaining the the directory structure.&lt;br /&gt;
#Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed&amp;lt;/nowiki&amp;gt;''' and follow all the instructions from then on.&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
If you have basic knowledge of using FTP and you are comfortable at a terminal command line you can use these steps. Many of these can be filed under &amp;quot;you'll be glad you did&amp;quot; by the time you get to the browser-based installation steps later on.&lt;br /&gt;
&lt;br /&gt;
=== Download/Install getID3 ===&lt;br /&gt;
ccHost depends on the getID3 library for verifying uploads. Install getID3 (at least 1.7.3) here: http://www.getid3.org/#download before you install ccHost. (It's a simple download-unpack operation.)&lt;br /&gt;
&lt;br /&gt;
Note: Make sure the release you install is marked as '''stable'''. Do ''not'' install anything that is &amp;quot;beta&amp;quot; or &amp;quot;alpha&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example (on Linux):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzf getid3.tar.gz&lt;br /&gt;
cp -a getid3/getid3 /var/www/localhost/htdocs/getid3/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ccHost installer will 'find' your getID3 installation if it's roughly in the same area of the server, however it is ''not'' required that your getID3 be visible on the web and in fact, it's probably more secure if it isn't.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|BUG WARNING: Later versions of getID3 (starting with 1.7.7) have an issue with RIFF based files (WAV, AVI, etc.) when tagging them and require a manual patch in order to work properly. Remove line #105 in getID3/write.php that looks like:&lt;br /&gt;
 case 'riff': // maybe not officially, but people do it anyway }}&lt;br /&gt;
&lt;br /&gt;
=== ccHost Terminal Installtion ===&lt;br /&gt;
* Unzip the ccHost ZIP archive on your local system and copy the files (retaining the directory structure) to your web-server directory. &lt;br /&gt;
* On Linux change the group and permissions of the files so they may be written by the web server (e.g., in the following lines, the web-server account is &amp;quot;apache&amp;quot;).&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a cchost-1.0.3 /var/www/localhost/htdocs/cchost&lt;br /&gt;
chgrp -R apache /var/www/localhost/htdocs/cchost&lt;br /&gt;
chmod g+w /var/www/localhost/htdocs/cchost/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create a new database for ccHost (e.g., named &amp;quot;cchost&amp;quot;) and create an administrative user to access it (e.g., &amp;quot;cchostadmin&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p -u root&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE cchost;&lt;br /&gt;
mysql&amp;gt; GRANT ALL ON cchost.* TO 'cchostadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to change 'YOUR_PASSWORD_HERE' (and maybe 'cchostadmin') to something unique to your site.&lt;br /&gt;
(Many systems provide '''phpMyAdmin''' to take care of these tasks.&lt;br /&gt;
*Create directory /var/log/cchost or other location to store log files.  Must be writable by the web-server account (e.g., &amp;quot;apache&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/log/cchost&lt;br /&gt;
chown apache:apache /var/log/cchost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several suggestions for mod_rewrite and configuration settings [[cchost/admin/apache/config|here]].&lt;br /&gt;
&lt;br /&gt;
Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed_cchost&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Everything else you need to know will be on the screen from that point on, including topics covered above such as suggested php.ini and .htaccess settings, access permissions requirements, etc.&lt;br /&gt;
&lt;br /&gt;
= Upgrading =&lt;br /&gt;
{{Infobox|'''Always''' make a backup of your mySQL ccHost database and the files you change before you start the upgrade process. Things go wrong. You have been warned.}}&lt;br /&gt;
== Upgrading from 5.0 to higher ==&lt;br /&gt;
*Log in to your ccHost installation as an admin&lt;br /&gt;
*Unzip the ZIP archive on a local machine&lt;br /&gt;
*Delete the '''ccadmin''' directory on your local copy&lt;br /&gt;
*Copy the entire structure to your web installation&lt;br /&gt;
*Browse '''&amp;lt;you_installation_root&amp;gt;?update=1'''&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.0 from 3.1 and Above ==&lt;br /&gt;
===Before you upgrade===&lt;br /&gt;
==== Plugins ====&lt;br /&gt;
It is recommended that you do '''not''' copy any plugins or custom code that have not been ported to ccHost 5 during the initial upgrade. You should get your site up and running without them using the standard upgrade first, then start migrating your plugins.&lt;br /&gt;
==== Importing phpTAL Templates ====&lt;br /&gt;
None of your previous version skins, pages, etc. work anymore as is. You can try to import your old phpTAL XML templates using:&lt;br /&gt;
&lt;br /&gt;
     bin/cc-host-import-v4-template.php &lt;br /&gt;
&lt;br /&gt;
Many imported templates (like your home page) might &amp;quot;just work&amp;quot; but many will need tweaking, assuming you are familiar with PHP. A detailed description of what might go wrong is [[Preparing_for_ccHost_5.0|this document]].&lt;br /&gt;
&lt;br /&gt;
===Doing the upgrade===&lt;br /&gt;
* Log in as admin on your ccHost installation&lt;br /&gt;
* Make a backup of your database.&lt;br /&gt;
* Unzip the ccHost package on a local machine.&lt;br /&gt;
* Copy the entire tree (including ccadmin) to your installation&lt;br /&gt;
* Browse to &amp;lt;nowiki&amp;gt;http://&amp;lt;your_install_location&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.0 from 3.0 or Before ==&lt;br /&gt;
Upgrading to 5.0 simply hasn't been tried or tested. (If you have some experience, please feel to share with the rest of the class.) It is therefore not recommended except for the very strong willed. &lt;br /&gt;
&lt;br /&gt;
Instead what you may want to consider (if you don't have a lot of content data) is start new with 5.0.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23642</id>
		<title>Cchost/guide/Installing</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Installing&amp;diff=23642"/>
				<updated>2009-06-04T20:46:02Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Download/Install getID3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
=Installing=&lt;br /&gt;
== Simple  ==&lt;br /&gt;
The easiest way to get going is to start with a web hosting server. Common web hosting services like [http://www.brainpulse.com BrainPulse] ,   [http://www.dreamhost.com/ Dreamhost] and [http://www.websitesource.com WebsiteSource] provide an administration interface for setting up a mysql database. Hosting services also provide some FTP or SFTP mechanism to upload the ccHost installation files as well. 99% of all services provide support for PHP as well. If you have questions about support in this area, check the server requirements below and with your hosting service.&lt;br /&gt;
&lt;br /&gt;
#Unzip the ccHost ZIP archive on your local system and copy the files to your server retaining the the directory structure.&lt;br /&gt;
#Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed&amp;lt;/nowiki&amp;gt;''' and follow all the instructions from then on.&lt;br /&gt;
&lt;br /&gt;
== Advanced ==&lt;br /&gt;
If you have basic knowledge of using FTP and you are comfortable at a terminal command line you can use these steps. Many of these can be filed under &amp;quot;you'll be glad you did&amp;quot; by the time you get to the browser-based installation steps later on.&lt;br /&gt;
&lt;br /&gt;
=== Download/Install getID3 ===&lt;br /&gt;
ccHost depends on the getID3 library for verifying uploads. Install getID3 (at least 1.7.3) here: http://www.getid3.org/#download before you install ccHost. (It's a simple download-unpack operation.)&lt;br /&gt;
&lt;br /&gt;
Note: Do ''not'' install anything but the '''stable''' release of getID3&lt;br /&gt;
&lt;br /&gt;
For example (on Linux):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzf getid3.tar.gz&lt;br /&gt;
cp -a getid3/getid3 /var/www/localhost/htdocs/getid3/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ccHost installer will 'find' your getID3 installation if it's roughly in the same area of the server, however it is ''not'' required that your getID3 be visible on the web and in fact, it's probably more secure if it isn't.&lt;br /&gt;
&lt;br /&gt;
{{Infobox|BUG WARNING: Later versions of getID3 (starting with 1.7.7) have an issue with RIFF based files (WAV, AVI, etc.) when tagging them and require a manual patch in order to work properly. Remove line #105 in getID3/write.php that looks like:&lt;br /&gt;
 case 'riff': // maybe not officially, but people do it anyway }}&lt;br /&gt;
&lt;br /&gt;
=== ccHost Terminal Installtion ===&lt;br /&gt;
* Unzip the ccHost ZIP archive on your local system and copy the files (retaining the directory structure) to your web-server directory. &lt;br /&gt;
* On Linux change the group and permissions of the files so they may be written by the web server (e.g., in the following lines, the web-server account is &amp;quot;apache&amp;quot;).&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp -a cchost-1.0.3 /var/www/localhost/htdocs/cchost&lt;br /&gt;
chgrp -R apache /var/www/localhost/htdocs/cchost&lt;br /&gt;
chmod g+w /var/www/localhost/htdocs/cchost/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Create a new database for ccHost (e.g., named &amp;quot;cchost&amp;quot;) and create an administrative user to access it (e.g., &amp;quot;cchostadmin&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p -u root&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE cchost;&lt;br /&gt;
mysql&amp;gt; GRANT ALL ON cchost.* TO 'cchostadmin'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD_HERE';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to change 'YOUR_PASSWORD_HERE' (and maybe 'cchostadmin') to something unique to your site.&lt;br /&gt;
(Many systems provide '''phpMyAdmin''' to take care of these tasks.&lt;br /&gt;
*Create directory /var/log/cchost or other location to store log files.  Must be writable by the web-server account (e.g., &amp;quot;apache&amp;quot;).  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/log/cchost&lt;br /&gt;
chown apache:apache /var/log/cchost&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are several suggestions for mod_rewrite and configuration settings [[cchost/admin/apache/config|here]].&lt;br /&gt;
&lt;br /&gt;
Browse to '''&amp;lt;nowiki&amp;gt;http://where_you_installed_cchost&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Everything else you need to know will be on the screen from that point on, including topics covered above such as suggested php.ini and .htaccess settings, access permissions requirements, etc.&lt;br /&gt;
&lt;br /&gt;
= Upgrading =&lt;br /&gt;
{{Infobox|'''Always''' make a backup of your mySQL ccHost database and the files you change before you start the upgrade process. Things go wrong. You have been warned.}}&lt;br /&gt;
== Upgrading from 5.0 to higher ==&lt;br /&gt;
*Log in to your ccHost installation as an admin&lt;br /&gt;
*Unzip the ZIP archive on a local machine&lt;br /&gt;
*Delete the '''ccadmin''' directory on your local copy&lt;br /&gt;
*Copy the entire structure to your web installation&lt;br /&gt;
*Browse '''&amp;lt;you_installation_root&amp;gt;?update=1'''&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.0 from 3.1 and Above ==&lt;br /&gt;
===Before you upgrade===&lt;br /&gt;
==== Plugins ====&lt;br /&gt;
It is recommended that you do '''not''' copy any plugins or custom code that have not been ported to ccHost 5 during the initial upgrade. You should get your site up and running without them using the standard upgrade first, then start migrating your plugins.&lt;br /&gt;
==== Importing phpTAL Templates ====&lt;br /&gt;
None of your previous version skins, pages, etc. work anymore as is. You can try to import your old phpTAL XML templates using:&lt;br /&gt;
&lt;br /&gt;
     bin/cc-host-import-v4-template.php &lt;br /&gt;
&lt;br /&gt;
Many imported templates (like your home page) might &amp;quot;just work&amp;quot; but many will need tweaking, assuming you are familiar with PHP. A detailed description of what might go wrong is [[Preparing_for_ccHost_5.0|this document]].&lt;br /&gt;
&lt;br /&gt;
===Doing the upgrade===&lt;br /&gt;
* Log in as admin on your ccHost installation&lt;br /&gt;
* Make a backup of your database.&lt;br /&gt;
* Unzip the ccHost package on a local machine.&lt;br /&gt;
* Copy the entire tree (including ccadmin) to your installation&lt;br /&gt;
* Browse to &amp;lt;nowiki&amp;gt;http://&amp;lt;your_install_location&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 5.0 from 3.0 or Before ==&lt;br /&gt;
Upgrading to 5.0 simply hasn't been tried or tested. (If you have some experience, please feel to share with the rest of the class.) It is therefore not recommended except for the very strong willed. &lt;br /&gt;
&lt;br /&gt;
Instead what you may want to consider (if you don't have a lot of content data) is start new with 5.0.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=23258</id>
		<title>CcHost</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost&amp;diff=23258"/>
				<updated>2009-05-08T22:18:16Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Appendix A: Compatibility */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
{{Project}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
'''ccHost''' is Creative Commons' open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) [http://en.wikipedia.org/wiki/Content_management_system content management system] project that powers [http://ccmixter.org ccMixter] and is the winner of the [http://creativecommons.org/weblog/entry/6026 Linux Journal LinuxWorldExpo Product Excellence Award] for '''Best Open Source Solution.''' Read more about ccHost [[#Zeitgeist|here]].&lt;br /&gt;
&lt;br /&gt;
= Download =&lt;br /&gt;
&lt;br /&gt;
Sign up for [http://sourceforge.net/export/rss2_projfiles.php?group_id=80503 our RSS release feed] to make sure you don't miss important bug fixes and feature updates.&lt;br /&gt;
&lt;br /&gt;
=== Current Stable Release ===&lt;br /&gt;
Latest stable build of [https://sourceforge.net/project/showfiles.php?group_id=80503&amp;amp;package_id=156675 ccHost 5.0.1] is available in ZIP archive format.&lt;br /&gt;
&lt;br /&gt;
= Documentation =&lt;br /&gt;
&lt;br /&gt;
[[cchost/Documentation|ccHost 5 Documentation]]&lt;br /&gt;
&lt;br /&gt;
=Communication=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== People ===&lt;br /&gt;
* [[User:fourstones|Victor Stone]]&lt;br /&gt;
* [[User:Jon Phillips|Jon Phillips]]&lt;br /&gt;
=== Contacting  ===&lt;br /&gt;
The mailing list is the best way to get our attention. That and other methods are listed below:&lt;br /&gt;
* Mailing List: https://lists.sourceforge.net/mailman/listinfo/cctools-cchost&lt;br /&gt;
** [http://sourceforge.net/mailarchive/forum.php?forum=cctools-cchost Archive]&lt;br /&gt;
* Chat: #cc on irc.freenode.net&lt;br /&gt;
* Wiki: This page (http://wiki.creativecommons.org/CcHost)&lt;br /&gt;
* [[Cchost/Developers#Bugs_and_Feature_Requests|Bugs and feature requests]]&lt;br /&gt;
&lt;br /&gt;
= Zeitgeist =&lt;br /&gt;
=== Goal ===&lt;br /&gt;
The goal of this project is to spread media content that is licensed under Creative Commons throughout the web in much the same way that weblogs spread CC licensed text. &lt;br /&gt;
=== Short Description ===&lt;br /&gt;
&amp;quot;Web-based System Supporting Remixing and Collaboration on Media&amp;quot;&lt;br /&gt;
=== Slightly Longer Description === &lt;br /&gt;
'''ccHost''' is an open source ([http://creativecommons.org/licenses/GPL/2.0/ GPL] licensed) project that provides web-based infrastructure to support collaboration, sharing, and storage of multi-media using the Creative Commons licenses and metadata. It is the codebase used by [http://ccmixter.org ccMixter] and [[#Usage Examples|other sites]].&lt;br /&gt;
&lt;br /&gt;
Besides its focus on sharing content, ccHost differentiates itself from other multi-media hosting programs by emphasizing the '''reuse''' (a.k.a. remixing) of content between artists, not only between artists on any given installation of ccHost, but between all installations across the web and any web site that implements the Creative Commons [http://ccmixter.org/media/viewfile/pool_api_doc.xml Sample Pool API], including non-ccHost sites such as the [http://freesound.iua.upf.edu/ freesound project].&lt;br /&gt;
&lt;br /&gt;
=== Usage Examples ===&lt;br /&gt;
&lt;br /&gt;
* [http://ccmixter.org ccMixter] - Primary usage of ccHost is the Creative Commons remix site, ccMixter.&lt;br /&gt;
* [http://www.openclipart.org/ Open Clip Art Library ccHost in testing]&lt;br /&gt;
* [http://www.openfontlibrary.org Open Font Library]&lt;br /&gt;
* [http://freemusic.freeculture.org Freemusic Project]&lt;br /&gt;
* [http://www.opensourcecinema.com/cchost Open Source Cinema]&lt;br /&gt;
* [http://rayne.hellawack.net/ Matrix Rayne Online]&lt;br /&gt;
* [http://remix.machinehasnoagenda.com/ remix.linux]&lt;br /&gt;
* [http://www.ccmixter.co.za/ ccmixter South Africa]&lt;br /&gt;
* [http://fourstones.net fourstones.net] Victor's personal website&lt;br /&gt;
* [http://www.esolpc.com/teacherhost/ TeacherHost] - for Instructors to share instructional materials.&lt;br /&gt;
* [http://adrenalinicsound.com/ Adrenalinic Sound]&lt;br /&gt;
* [http://creativecommons.org.tw/formoz ccMixter from CC Taiwan]&lt;br /&gt;
* [http://www.overmundo.com.br/overmixter Overmixter - Brazil]&lt;br /&gt;
* [http://www.iamacc.org/ Iamacc.org]&lt;br /&gt;
* [http://www.enciclopediacecilia.org/musicast/ Remix Cecilia] at the Enciclopedia Cecilia project, music in the catholic church.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
= Appendix A: Compatibility =&lt;br /&gt;
&lt;br /&gt;
=== Browsers ===&lt;br /&gt;
&lt;br /&gt;
Recently tested on: Firefox 2/3 Mac/PC/Linux, IE 7 PC, Safari Mac (IE8 requires &amp;quot;compatibility&amp;quot; mode - see [[Cchost/guide/Troubleshooting#IE8_Layout_Issues|here]] for workaround)&lt;br /&gt;
&lt;br /&gt;
Cookies must be enabled.&lt;br /&gt;
&lt;br /&gt;
Most skins (the ones people will want to use) require Javascript enabled.&lt;br /&gt;
&lt;br /&gt;
=== Servers ===&lt;br /&gt;
&lt;br /&gt;
Primary development is done on Ubuntu 8.04 (hardy heron) using Apache, mySQL, and PHP. The actual dev setup is described in detail [[Cchost/Developers/Victor's_Dev_Setup|here]].&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
ccHost on Apache (2.0.49 up to at least apache-2.0.55-r1) on Linux, &lt;br /&gt;
&lt;br /&gt;
One should be able to easily install mySQL, PHP, and Apache (if they are not already available) through their distributions packaging system. See the dev setup above.&lt;br /&gt;
&lt;br /&gt;
==== Windows IIS Server ====&lt;br /&gt;
&lt;br /&gt;
{{Infobox|ccHost has not been seen running or tested on Windows for a long time - several versions ago.}}&lt;br /&gt;
&lt;br /&gt;
Windows users with their installation disks may install optionally the Windows IIS Web Server. This option has been tested. However, there might still be issues with it, and if so, [http://sourceforge.net/tracker2/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966 please file a bug].&lt;br /&gt;
&lt;br /&gt;
Even if you using Apache on Windows you may need to have IIS installed if you plan to use mail contact functions.&lt;br /&gt;
&lt;br /&gt;
==== Windows Apache ====&lt;br /&gt;
There are many good tutorials for setting up a Windows/Apache/MySQL/PHP site ([http://google.com/search?q=installing+WAMP Google search]) and all three subsystems now come with Windows installers making the job of installing relatively straightforward.&lt;br /&gt;
&lt;br /&gt;
====== XAMPP ======&lt;br /&gt;
Windows installations without Apache, mySQL and PHP already installed should consider using [http://www.apachefriends.org/en/xampp.html XAMPP] for Windows, which provides an easy install of Apache web server, MySQL database server, and PHP and perl programming languages. This is an easy way to get up and running, with the underlying technology necessary to use ccHost.&lt;br /&gt;
&lt;br /&gt;
Follow the instructions for installation of XAMPP to know where to put the uncompressed ccHost package to properly work with your local setup.&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X ====&lt;br /&gt;
&lt;br /&gt;
''NOTE: This setup is similar to Linux.''&lt;br /&gt;
&lt;br /&gt;
Verified:&lt;br /&gt;
&lt;br /&gt;
* OS X 10.4.6&lt;br /&gt;
* default OS X MySQL build, 4.0.26&lt;br /&gt;
* GetID3 1.7.7&lt;br /&gt;
* default Apache/PHP&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23257</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23257"/>
				<updated>2009-05-08T21:57:58Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* IE8 Layout Issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't see an 'extra-meta' field you can add one:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/new&lt;br /&gt;
# Type '''extra-meta''' into the field and submit&lt;br /&gt;
&lt;br /&gt;
That should return you to the template tags editing screen where you can add the meta tag above.&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= No Flash Player (little speaker) for Audio Files =&lt;br /&gt;
If you uploaded an audio file and expected a little speaker icon and the Flash (tm) player but don't see that it could be one of several things:&lt;br /&gt;
&lt;br /&gt;
- The Flash(tm) will not show up on a page unless you have chosen the &amp;quot;Text appropriate for music sites&amp;quot; string profile, or one that derives from it, from '''admin/skins/settings''' screen. (This is a design flaw we will be addressing in the not-so-distant future.)&lt;br /&gt;
&lt;br /&gt;
- Older versions of Flash only support MP3s and only those that are encoded with a sample rate divisible by 11 like 44k.&lt;br /&gt;
&lt;br /&gt;
- You don't have a working Flash(tm) plugin installed in your browser.&lt;br /&gt;
&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23256</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23256"/>
				<updated>2009-05-08T21:54:13Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* IE8 Layout Issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't see an 'extra-meta' field you can add one:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/tempaltetags/new&lt;br /&gt;
# Type '''extra-meta''' into the field and submit&lt;br /&gt;
&lt;br /&gt;
That should return you to the template tags editing screen where you can add the meta tag above.&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= No Flash Player (little speaker) for Audio Files =&lt;br /&gt;
If you uploaded an audio file and expected a little speaker icon and the Flash (tm) player but don't see that it could be one of several things:&lt;br /&gt;
&lt;br /&gt;
- The Flash(tm) will not show up on a page unless you have chosen the &amp;quot;Text appropriate for music sites&amp;quot; string profile, or one that derives from it, from '''admin/skins/settings''' screen. (This is a design flaw we will be addressing in the not-so-distant future.)&lt;br /&gt;
&lt;br /&gt;
- Older versions of Flash only support MP3s and only those that are encoded with a sample rate divisible by 11 like 44k.&lt;br /&gt;
&lt;br /&gt;
- You don't have a working Flash(tm) plugin installed in your browser.&lt;br /&gt;
&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23255</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23255"/>
				<updated>2009-05-08T21:53:50Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* IE8 Layout Issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don't see an 'extra-meta' field you can add one:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/tempaltetags/new&lt;br /&gt;
# Type '''extra-meta''' into field and submit&lt;br /&gt;
&lt;br /&gt;
That should return you to the template tags editing screen where you can add the meta tag above.&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= No Flash Player (little speaker) for Audio Files =&lt;br /&gt;
If you uploaded an audio file and expected a little speaker icon and the Flash (tm) player but don't see that it could be one of several things:&lt;br /&gt;
&lt;br /&gt;
- The Flash(tm) will not show up on a page unless you have chosen the &amp;quot;Text appropriate for music sites&amp;quot; string profile, or one that derives from it, from '''admin/skins/settings''' screen. (This is a design flaw we will be addressing in the not-so-distant future.)&lt;br /&gt;
&lt;br /&gt;
- Older versions of Flash only support MP3s and only those that are encoded with a sample rate divisible by 11 like 44k.&lt;br /&gt;
&lt;br /&gt;
- You don't have a working Flash(tm) plugin installed in your browser.&lt;br /&gt;
&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/Content_Manager&amp;diff=23248</id>
		<title>Cchost/admin/Content Manager</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/Content_Manager&amp;diff=23248"/>
				<updated>2009-05-08T16:53:48Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Step 2. Create the page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
You can create pages in your system without any HTML/XML file editing whatsoever. Examples of pages created this way are the [http://ccmixter.org/ ccMixter home page] and [http://ccmixter.org/view/media/remix/trackback As Seen on the Web]. Learn more about [[cchost/concepts/Content|how ccHost manages content]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Step 1. Creating content for the pages=&lt;br /&gt;
The actual content for the pages will entered as 'topics' (similar to reviews and forum posts).&lt;br /&gt;
&lt;br /&gt;
First create new content topics:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create new content'' link&lt;br /&gt;
#At ''New Content Type'' type in &amp;quot;my_page_content&amp;quot; (without the quotes)&lt;br /&gt;
#Enter a title and topic contents (you can use the [[Cchost/concepts/Content#Topic_Format_Commands|topic formatting commands]])&lt;br /&gt;
#Click on the ''Submit Content'' button.&lt;br /&gt;
&lt;br /&gt;
When you want to add more topics repeat the steps above but select &amp;quot;my_page_content&amp;quot; from the ''Content type'' drop down instead of entering it manually.&lt;br /&gt;
&lt;br /&gt;
==Optionally add images==&lt;br /&gt;
You can optionally add images when submitting content.&lt;br /&gt;
&lt;br /&gt;
Images are uploaded to '''&amp;lt;local_files&amp;gt;/images'''  To refer to those images use the '''[img]'''  block in your topics. Example:&lt;br /&gt;
&lt;br /&gt;
 [img=&amp;lt;local_files&amp;gt;/images/my_image.gif][/img]&lt;br /&gt;
&lt;br /&gt;
You can also use the '''[left]''' or '''[right]''' blocks to float images:&lt;br /&gt;
&lt;br /&gt;
  [left][img=&amp;lt;local_files&amp;gt;images/my_image.gif][/img][/left]&lt;br /&gt;
&lt;br /&gt;
Next create a new content page:&lt;br /&gt;
&lt;br /&gt;
==Optionally perform queries==&lt;br /&gt;
One powerful feature of adding content this way is the ability to easily embed queries into your content topics. This is how the [http://ccmixter.org/featured-playlists Featured Playlists] feature at ccMixter is implemented:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[left][query=t=avatar&amp;amp;u=mcjackinthebox][/query][/left]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[query=t=playlist_2_info&amp;amp;ids=2747][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[query=t=yahoo_black&amp;amp;playlist=2747][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Step 2. Create the page=&lt;br /&gt;
Your topic type is now ready to be merged with a page. Here is how you set up that page:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create new page'' link&lt;br /&gt;
#At ''Content Type'' select &amp;quot;my_page_content&amp;quot; &lt;br /&gt;
#Enter a page title like &amp;quot;My Page&amp;quot; (without the quotes)&lt;br /&gt;
#Click on the ''Submit'' button - this should take you back to the 'Manage Page Content' screen&lt;br /&gt;
#Click on the ''view'' next to your new page to preview the page (Note the URL in your browser)&lt;br /&gt;
&lt;br /&gt;
=Step 3. Optionally Map a Page to a Navigation Tab=&lt;br /&gt;
&lt;br /&gt;
To map your new page to a tab:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Manage Site'' then ''Navigator Tab Sets'' (or browse to '''admin/tabs''')&lt;br /&gt;
#Click on the ''edit tabs'' links&lt;br /&gt;
#Click on the ''Add tab'' button&lt;br /&gt;
#Under ''Function'' select 'Execute URL'&lt;br /&gt;
#Under ''Data'' enter the URL from the last step in the section above&lt;br /&gt;
#Click on the ''Submit'' button&lt;br /&gt;
&lt;br /&gt;
HINT: entering a full URL in a tab causes a re-direct (extra round trip to your server). To prevent this, enter '''/docs/&amp;lt;page_name&amp;gt;''' instead.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/admin/Content_Manager&amp;diff=23228</id>
		<title>Cchost/admin/Content Manager</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/admin/Content_Manager&amp;diff=23228"/>
				<updated>2009-05-07T22:05:19Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
&lt;br /&gt;
You can create pages in your system without any HTML/XML file editing whatsoever. Examples of pages created this way are the [http://ccmixter.org/ ccMixter home page] and [http://ccmixter.org/view/media/remix/trackback As Seen on the Web]. Learn more about [[cchost/concepts/Content|how ccHost manages content]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Step 1. Creating content for the pages=&lt;br /&gt;
The actual content for the pages will entered as 'topics' (similar to reviews and forum posts).&lt;br /&gt;
&lt;br /&gt;
First create new content topics:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content''')&lt;br /&gt;
#Click on the ''Create new content'' link&lt;br /&gt;
#At ''New Content Type'' type in &amp;quot;my_page_content&amp;quot; (without the quotes)&lt;br /&gt;
#Enter a title and topic contents (you can use the [[Cchost/concepts/Content#Topic_Format_Commands|topic formatting commands]])&lt;br /&gt;
#Click on the ''Submit Content'' button.&lt;br /&gt;
&lt;br /&gt;
When you want to add more topics repeat the steps above but select &amp;quot;my_page_content&amp;quot; from the ''Content type'' drop down instead of entering it manually.&lt;br /&gt;
&lt;br /&gt;
==Optionally add images==&lt;br /&gt;
You can optionally add images when submitting content.&lt;br /&gt;
&lt;br /&gt;
Images are uploaded to '''&amp;lt;local_files&amp;gt;/images'''  To refer to those images use the '''[img]'''  block in your topics. Example:&lt;br /&gt;
&lt;br /&gt;
 [img=&amp;lt;local_files&amp;gt;/images/my_image.gif][/img]&lt;br /&gt;
&lt;br /&gt;
You can also use the '''[left]''' or '''[right]''' blocks to float images:&lt;br /&gt;
&lt;br /&gt;
  [left][img=&amp;lt;local_files&amp;gt;images/my_image.gif][/img][/left]&lt;br /&gt;
&lt;br /&gt;
Next create a new content page:&lt;br /&gt;
&lt;br /&gt;
==Optionally perform queries==&lt;br /&gt;
One powerful feature of adding content this way is the ability to easily embed queries into your content topics. This is how the [http://ccmixter.org/featured-playlists Featured Playlists] feature at ccMixter is implemented:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[left][query=t=avatar&amp;amp;u=mcjackinthebox][/query][/left]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[query=t=playlist_2_info&amp;amp;ids=2747][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[query=t=yahoo_black&amp;amp;playlist=2747][/query]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Step 2. Create the page=&lt;br /&gt;
Your topic type is now ready to be merged with a page. Here is how you set up that page:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Global Settings'' then ''Manage Page Content'' (or browse to '''admin/content'''&lt;br /&gt;
#Click on the ''Create new page''' link&lt;br /&gt;
#At ''Content Type'' select &amp;quot;my_page_content&amp;quot; &lt;br /&gt;
#Enter a page title like &amp;quot;My Page&amp;quot; (without the quotes)&lt;br /&gt;
#Click on the ''Submit'' button - this should take you back to the 'Manage Page Content' screen&lt;br /&gt;
#Click on the ''view'' next to your new page to preview the page (Note the URL in your browser)&lt;br /&gt;
&lt;br /&gt;
=Step 3. Optionally Map a Page to a Navigation Tab=&lt;br /&gt;
&lt;br /&gt;
To map your new page to a tab:&lt;br /&gt;
&lt;br /&gt;
#Log in as an admin (if not already) &lt;br /&gt;
#Click on ''Manage Site'' then ''Navigator Tab Sets'' (or browse to '''admin/tabs''')&lt;br /&gt;
#Click on the ''edit tabs'' links&lt;br /&gt;
#Click on the ''Add tab'' button&lt;br /&gt;
#Under ''Function'' select 'Execute URL'&lt;br /&gt;
#Under ''Data'' enter the URL from the last step in the section above&lt;br /&gt;
#Click on the ''Submit'' button&lt;br /&gt;
&lt;br /&gt;
HINT: entering a full URL in a tab causes a re-direct (extra round trip to your server). To prevent this, enter '''/docs/&amp;lt;page_name&amp;gt;''' instead.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23171</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23171"/>
				<updated>2009-05-07T16:53:30Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* File Access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= No Flash Player (little speaker) for Audio Files =&lt;br /&gt;
If you uploaded an audio file and expected a little speaker icon and the Flash (tm) player but don't see that it could be one of several things:&lt;br /&gt;
&lt;br /&gt;
- The Flash(tm) will not show up on a page unless you have chosen the &amp;quot;Text appropriate for music sites&amp;quot; string profile, or one that derives from it, from '''admin/skins/settings''' screen. (This is a design flaw we will be addressing in the not-so-distant future.)&lt;br /&gt;
&lt;br /&gt;
- Older versions of Flash only support MP3s and only those that are encoded with a sample rate divisible by 11 like 44k.&lt;br /&gt;
&lt;br /&gt;
- You don't have a working Flash(tm) plugin installed in your browser.&lt;br /&gt;
&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23009</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=23009"/>
				<updated>2009-05-04T22:43:02Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Blank Screen On Upload */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few lines later do the same thing to the ''RestoreErrors'' calls so it looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::RestoreErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=23001</id>
		<title>CcHost File Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=23001"/>
				<updated>2009-05-03T20:13:42Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* What ccHost Requires (IMPORTANT) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
== Information regarding UNIX file permission and ccHost== &lt;br /&gt;
&lt;br /&gt;
Setting file permissions in the most efficient and secure way can be tricky with a content management system such as ccHost on a UNIX system.&lt;br /&gt;
&lt;br /&gt;
There are many (i.e. many, many) UNIX configurations for running Apache and PHP &lt;br /&gt;
and this document does not pretend to cover all. It is a compendium of issues &lt;br /&gt;
encountered by various ccHost installations under some popular scenarios. If &lt;br /&gt;
there are security issues on your server with ccHost or you would like to avoid &lt;br /&gt;
them, hopefully this document will arm you with enough information to ask your &lt;br /&gt;
system administrator the right questions.&lt;br /&gt;
&lt;br /&gt;
If you 'own' the server and have super-user (root) access then these problems &lt;br /&gt;
are probably moot because you have the rights to do whatever you want with the  &lt;br /&gt;
directories and files created by ccHost. However, depending on whether you run PHP in CGI mode or not, these issues could very well be a big problem.&lt;br /&gt;
&lt;br /&gt;
On the other hand if you are using a company server or a web hosting service, especially on a 'shared server', then chances are you do not have such&lt;br /&gt;
access rights and that's where the issues begin.&lt;br /&gt;
&lt;br /&gt;
In either case the thing to understand is that on a UNIX&lt;br /&gt;
system: Whoever creates a file or directory on UNIX typically has full&lt;br /&gt;
(or enough) access rights to that file or directory to do what&lt;br /&gt;
ever they like.'''&lt;br /&gt;
&lt;br /&gt;
=== You are not nobody=== &lt;br /&gt;
&lt;br /&gt;
When you sign on to your web server via a terminal application (i.e.&lt;br /&gt;
shell) or transfer files via FTP you are operating as &lt;br /&gt;
whoever you logged in as. When you copy the ccHost installation&lt;br /&gt;
onto your server (or unzip them directly there) the directories &lt;br /&gt;
you create and files you copy into them are under your jurisdiction &lt;br /&gt;
and UNIX considers you the 'user' (you 'own' them).&lt;br /&gt;
&lt;br /&gt;
When ccHost is running on a UNIX server it is considered &lt;br /&gt;
a PHP browser application running in an instance of Apache. Your&lt;br /&gt;
server administrator has set up all PHP applications like ccHost&lt;br /&gt;
to run, not as you, but as a special user, usually called 'nobody' &lt;br /&gt;
and UNIX considers 'nobody' to be the user who owns the directory&lt;br /&gt;
and files.&lt;br /&gt;
&lt;br /&gt;
The main point is: These are two very distinctly different identities and the directories&lt;br /&gt;
and files created by ccHost are owned by this 'nobody' account, not you.&lt;br /&gt;
&lt;br /&gt;
Evidence can be seen when you list out the directories in your ccHost&lt;br /&gt;
installation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 Jul 15 01:41 icons &lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 Jul 17 02:09 content&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first directory 'icons' created by me during FTP install. The second directory 'content' was created by ccHost when I installed ccHost and is therefore owned by another user.&lt;br /&gt;
&lt;br /&gt;
=== What ccHost Requires (IMPORTANT)=== &lt;br /&gt;
&lt;br /&gt;
For 3.1 installations and later: The path configuration screen ('''admin/paths''') will let you know exactly which directories require write access from script. These include 'content' and your 'local_files' directory. &lt;br /&gt;
&lt;br /&gt;
{{Infobox|NOTE: Your installation will not work properly until local_files and and directories under it are writable to script.}}&lt;br /&gt;
&lt;br /&gt;
=== Case 1: You and ccHost are the same user=== &lt;br /&gt;
&lt;br /&gt;
In the best case scenario, some web hosters make all of this go away by &lt;br /&gt;
simply having PHP applications run under the same account as your login account. There is no 'nobody' account to contend with and ccHost is, in fact, running as you so permission to create directories in the main directory or write files to the phptal_cache directory is given. So if you ask your system administrator 'Do PHP apps run under my user's account?' and if the answer is 'Yes' then you can skip down the ccHost policy section because none of &lt;br /&gt;
this applies to your ccHost installation.&lt;br /&gt;
&lt;br /&gt;
=== Case 2: You and ccHost are in the same group=== &lt;br /&gt;
&lt;br /&gt;
The next question you have to ask is whether your account and PHP account&lt;br /&gt;
is in the same group. You can see in the listing first mentioned &lt;br /&gt;
above that this is case:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 ....&lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 ....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is important because while you may not be the same user as&lt;br /&gt;
the PHP account, UNIX has another level of security called group before&lt;br /&gt;
getting to the global space (the rest of the world).&lt;br /&gt;
If this is the case then you should consider restricting the directories that need writing access to only owner and group.&lt;br /&gt;
&lt;br /&gt;
The way to traditionally do this is to run the chmod command as such:&lt;br /&gt;
&lt;br /&gt;
 chmod 775 folder&lt;br /&gt;
&lt;br /&gt;
Or, for all files under the folder recursively:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 775 folder&lt;br /&gt;
&lt;br /&gt;
And/or, just to give the group full read (r), write (w) and execute (x) privileges:&lt;br /&gt;
&lt;br /&gt;
 chmod -R g+rwx folder&lt;br /&gt;
&lt;br /&gt;
=== Case 3: You and ccHost are not in the same group=== &lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not even in the &lt;br /&gt;
same group then you may still have an out:&lt;br /&gt;
&lt;br /&gt;
Some web hosting companies provide you with a secure browser based&lt;br /&gt;
interface that allows you to bridge difference in user rights by giving you&lt;br /&gt;
behind-the-scenes circumvention to ownership issues in your space&lt;br /&gt;
on the server. When the ccHost&lt;br /&gt;
documentation prescribes things like 'setting write permissions on a &lt;br /&gt;
directory' you should use this secure web interface provided by your&lt;br /&gt;
web hoster to perform the action. When you need to make changes to the &lt;br /&gt;
files, use this interface. That way it won't matter if the&lt;br /&gt;
'nobody' account or your account created the directory or file, &lt;br /&gt;
you can make the needed change.&lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not in the same group and you haven't a secure web interface, then your system administrator or web hosting service has left you with no choice to make the necessary directories available for writing to global users (a.k.a. other). You should keep the ccHost default access permission at 777.&lt;br /&gt;
&lt;br /&gt;
== ccHost Permissions Policy== &lt;br /&gt;
ccHost 3.0 will use 0777 as the default for creating files. This is so new installations can get quickly off the ground and running. If you wish to change this policy go to 'Manage Site' and then 'Global Settings' or browse to the '''admin/setup''' command.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22999</id>
		<title>CcHost File Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22999"/>
				<updated>2009-05-03T20:12:10Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
== Information regarding UNIX file permission and ccHost== &lt;br /&gt;
&lt;br /&gt;
Setting file permissions in the most efficient and secure way can be tricky with a content management system such as ccHost on a UNIX system.&lt;br /&gt;
&lt;br /&gt;
There are many (i.e. many, many) UNIX configurations for running Apache and PHP &lt;br /&gt;
and this document does not pretend to cover all. It is a compendium of issues &lt;br /&gt;
encountered by various ccHost installations under some popular scenarios. If &lt;br /&gt;
there are security issues on your server with ccHost or you would like to avoid &lt;br /&gt;
them, hopefully this document will arm you with enough information to ask your &lt;br /&gt;
system administrator the right questions.&lt;br /&gt;
&lt;br /&gt;
If you 'own' the server and have super-user (root) access then these problems &lt;br /&gt;
are probably moot because you have the rights to do whatever you want with the  &lt;br /&gt;
directories and files created by ccHost. However, depending on whether you run PHP in CGI mode or not, these issues could very well be a big problem.&lt;br /&gt;
&lt;br /&gt;
On the other hand if you are using a company server or a web hosting service, especially on a 'shared server', then chances are you do not have such&lt;br /&gt;
access rights and that's where the issues begin.&lt;br /&gt;
&lt;br /&gt;
In either case the thing to understand is that on a UNIX&lt;br /&gt;
system: Whoever creates a file or directory on UNIX typically has full&lt;br /&gt;
(or enough) access rights to that file or directory to do what&lt;br /&gt;
ever they like.'''&lt;br /&gt;
&lt;br /&gt;
=== You are not nobody=== &lt;br /&gt;
&lt;br /&gt;
When you sign on to your web server via a terminal application (i.e.&lt;br /&gt;
shell) or transfer files via FTP you are operating as &lt;br /&gt;
whoever you logged in as. When you copy the ccHost installation&lt;br /&gt;
onto your server (or unzip them directly there) the directories &lt;br /&gt;
you create and files you copy into them are under your jurisdiction &lt;br /&gt;
and UNIX considers you the 'user' (you 'own' them).&lt;br /&gt;
&lt;br /&gt;
When ccHost is running on a UNIX server it is considered &lt;br /&gt;
a PHP browser application running in an instance of Apache. Your&lt;br /&gt;
server administrator has set up all PHP applications like ccHost&lt;br /&gt;
to run, not as you, but as a special user, usually called 'nobody' &lt;br /&gt;
and UNIX considers 'nobody' to be the user who owns the directory&lt;br /&gt;
and files.&lt;br /&gt;
&lt;br /&gt;
The main point is: These are two very distinctly different identities and the directories&lt;br /&gt;
and files created by ccHost are owned by this 'nobody' account, not you.&lt;br /&gt;
&lt;br /&gt;
Evidence can be seen when you list out the directories in your ccHost&lt;br /&gt;
installation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 Jul 15 01:41 icons &lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 Jul 17 02:09 content&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first directory 'icons' created by me during FTP install. The second directory 'content' was created by ccHost when I installed ccHost and is therefore owned by another user.&lt;br /&gt;
&lt;br /&gt;
=== What ccHost Requires (IMPORTANT)=== &lt;br /&gt;
&lt;br /&gt;
For 3.1 installations and later: The path configuration screen ('''admin/paths''') will let you know exactly which directories require write access from script. These include 'content' and your 'local_files' directory. &lt;br /&gt;
&lt;br /&gt;
{{InfoBox|NOTE: Your installation will not work properly until local_files and all directories under it are writable to script.}}&lt;br /&gt;
&lt;br /&gt;
=== Case 1: You and ccHost are the same user=== &lt;br /&gt;
&lt;br /&gt;
In the best case scenario, some web hosters make all of this go away by &lt;br /&gt;
simply having PHP applications run under the same account as your login account. There is no 'nobody' account to contend with and ccHost is, in fact, running as you so permission to create directories in the main directory or write files to the phptal_cache directory is given. So if you ask your system administrator 'Do PHP apps run under my user's account?' and if the answer is 'Yes' then you can skip down the ccHost policy section because none of &lt;br /&gt;
this applies to your ccHost installation.&lt;br /&gt;
&lt;br /&gt;
=== Case 2: You and ccHost are in the same group=== &lt;br /&gt;
&lt;br /&gt;
The next question you have to ask is whether your account and PHP account&lt;br /&gt;
is in the same group. You can see in the listing first mentioned &lt;br /&gt;
above that this is case:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 ....&lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 ....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is important because while you may not be the same user as&lt;br /&gt;
the PHP account, UNIX has another level of security called group before&lt;br /&gt;
getting to the global space (the rest of the world).&lt;br /&gt;
If this is the case then you should consider restricting the directories that need writing access to only owner and group.&lt;br /&gt;
&lt;br /&gt;
The way to traditionally do this is to run the chmod command as such:&lt;br /&gt;
&lt;br /&gt;
 chmod 775 folder&lt;br /&gt;
&lt;br /&gt;
Or, for all files under the folder recursively:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 775 folder&lt;br /&gt;
&lt;br /&gt;
And/or, just to give the group full read (r), write (w) and execute (x) privileges:&lt;br /&gt;
&lt;br /&gt;
 chmod -R g+rwx folder&lt;br /&gt;
&lt;br /&gt;
=== Case 3: You and ccHost are not in the same group=== &lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not even in the &lt;br /&gt;
same group then you may still have an out:&lt;br /&gt;
&lt;br /&gt;
Some web hosting companies provide you with a secure browser based&lt;br /&gt;
interface that allows you to bridge difference in user rights by giving you&lt;br /&gt;
behind-the-scenes circumvention to ownership issues in your space&lt;br /&gt;
on the server. When the ccHost&lt;br /&gt;
documentation prescribes things like 'setting write permissions on a &lt;br /&gt;
directory' you should use this secure web interface provided by your&lt;br /&gt;
web hoster to perform the action. When you need to make changes to the &lt;br /&gt;
files, use this interface. That way it won't matter if the&lt;br /&gt;
'nobody' account or your account created the directory or file, &lt;br /&gt;
you can make the needed change.&lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not in the same group and you haven't a secure web interface, then your system administrator or web hosting service has left you with no choice to make the necessary directories available for writing to global users (a.k.a. other). You should keep the ccHost default access permission at 777.&lt;br /&gt;
&lt;br /&gt;
== ccHost Permissions Policy== &lt;br /&gt;
ccHost 3.0 will use 0777 as the default for creating files. This is so new installations can get quickly off the ground and running. If you wish to change this policy go to 'Manage Site' and then 'Global Settings' or browse to the '''admin/setup''' command.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22998</id>
		<title>CcHost File Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22998"/>
				<updated>2009-05-03T20:10:13Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* ccHost Permissions Policy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information regarding UNIX file permission and ccHost== &lt;br /&gt;
&lt;br /&gt;
Setting file permissions in the most efficient and secure way can be tricky with a content management system such as ccHost on a UNIX system.&lt;br /&gt;
&lt;br /&gt;
There are many (i.e. many, many) UNIX configurations for running Apache and PHP &lt;br /&gt;
and this document does not pretend to cover all. It is a compendium of issues &lt;br /&gt;
encountered by various ccHost installations under some popular scenarios. If &lt;br /&gt;
there are security issues on your server with ccHost or you would like to avoid &lt;br /&gt;
them, hopefully this document will arm you with enough information to ask your &lt;br /&gt;
system administrator the right questions.&lt;br /&gt;
&lt;br /&gt;
If you 'own' the server and have super-user (root) access then these problems &lt;br /&gt;
are probably moot because you have the rights to do whatever you want with the  &lt;br /&gt;
directories and files created by ccHost. However, depending on whether you run PHP in CGI mode or not, these issues could very well be a big problem.&lt;br /&gt;
&lt;br /&gt;
On the other hand if you are using a company server or a web hosting service, especially on a 'shared server', then chances are you do not have such&lt;br /&gt;
access rights and that's where the issues begin.&lt;br /&gt;
&lt;br /&gt;
In either case the thing to understand is that on a UNIX&lt;br /&gt;
system: Whoever creates a file or directory on UNIX typically has full&lt;br /&gt;
(or enough) access rights to that file or directory to do what&lt;br /&gt;
ever they like.'''&lt;br /&gt;
&lt;br /&gt;
=== You are not nobody=== &lt;br /&gt;
&lt;br /&gt;
When you sign on to your web server via a terminal application (i.e.&lt;br /&gt;
shell) or transfer files via FTP you are operating as &lt;br /&gt;
whoever you logged in as. When you copy the ccHost installation&lt;br /&gt;
onto your server (or unzip them directly there) the directories &lt;br /&gt;
you create and files you copy into them are under your jurisdiction &lt;br /&gt;
and UNIX considers you the 'user' (you 'own' them).&lt;br /&gt;
&lt;br /&gt;
When ccHost is running on a UNIX server it is considered &lt;br /&gt;
a PHP browser application running in an instance of Apache. Your&lt;br /&gt;
server administrator has set up all PHP applications like ccHost&lt;br /&gt;
to run, not as you, but as a special user, usually called 'nobody' &lt;br /&gt;
and UNIX considers 'nobody' to be the user who owns the directory&lt;br /&gt;
and files.&lt;br /&gt;
&lt;br /&gt;
The main point is: These are two very distinctly different identities and the directories&lt;br /&gt;
and files created by ccHost are owned by this 'nobody' account, not you.&lt;br /&gt;
&lt;br /&gt;
Evidence can be seen when you list out the directories in your ccHost&lt;br /&gt;
installation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 Jul 15 01:41 icons &lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 Jul 17 02:09 content&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first directory 'icons' created by me during FTP install. The second directory 'content' was created by ccHost when I installed ccHost and is therefore owned by another user.&lt;br /&gt;
&lt;br /&gt;
=== What ccHost Requires (IMPORTANT)=== &lt;br /&gt;
&lt;br /&gt;
For 3.1 installations and later: The path configuration screen ('''admin/paths''') will let you know exactly which directories require write access from script. These include 'content' and your 'local_files' directory. &lt;br /&gt;
&lt;br /&gt;
{{InfoBox|NOTE: Your installation will not work properly until local_files and all directories under it are writable to script.}}&lt;br /&gt;
&lt;br /&gt;
=== Case 1: You and ccHost are the same user=== &lt;br /&gt;
&lt;br /&gt;
In the best case scenario, some web hosters make all of this go away by &lt;br /&gt;
simply having PHP applications run under the same account as your login account. There is no 'nobody' account to contend with and ccHost is, in fact, running as you so permission to create directories in the main directory or write files to the phptal_cache directory is given. So if you ask your system administrator 'Do PHP apps run under my user's account?' and if the answer is 'Yes' then you can skip down the ccHost policy section because none of &lt;br /&gt;
this applies to your ccHost installation.&lt;br /&gt;
&lt;br /&gt;
=== Case 2: You and ccHost are in the same group=== &lt;br /&gt;
&lt;br /&gt;
The next question you have to ask is whether your account and PHP account&lt;br /&gt;
is in the same group. You can see in the listing first mentioned &lt;br /&gt;
above that this is case:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 ....&lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 ....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is important because while you may not be the same user as&lt;br /&gt;
the PHP account, UNIX has another level of security called group before&lt;br /&gt;
getting to the global space (the rest of the world).&lt;br /&gt;
If this is the case then you should consider restricting the directories that need writing access to only owner and group.&lt;br /&gt;
&lt;br /&gt;
The way to traditionally do this is to run the chmod command as such:&lt;br /&gt;
&lt;br /&gt;
 chmod 775 folder&lt;br /&gt;
&lt;br /&gt;
Or, for all files under the folder recursively:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 775 folder&lt;br /&gt;
&lt;br /&gt;
And/or, just to give the group full read (r), write (w) and execute (x) privileges:&lt;br /&gt;
&lt;br /&gt;
 chmod -R g+rwx folder&lt;br /&gt;
&lt;br /&gt;
=== Case 3: You and ccHost are not in the same group=== &lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not even in the &lt;br /&gt;
same group then you may still have an out:&lt;br /&gt;
&lt;br /&gt;
Some web hosting companies provide you with a secure browser based&lt;br /&gt;
interface that allows you to bridge difference in user rights by giving you&lt;br /&gt;
behind-the-scenes circumvention to ownership issues in your space&lt;br /&gt;
on the server. When the ccHost&lt;br /&gt;
documentation prescribes things like 'setting write permissions on a &lt;br /&gt;
directory' you should use this secure web interface provided by your&lt;br /&gt;
web hoster to perform the action. When you need to make changes to the &lt;br /&gt;
files, use this interface. That way it won't matter if the&lt;br /&gt;
'nobody' account or your account created the directory or file, &lt;br /&gt;
you can make the needed change.&lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not in the same group and you haven't a secure web interface, then your system administrator or web hosting service has left you with no choice to make the necessary directories available for writing to global users (a.k.a. other). You should keep the ccHost default access permission at 777.&lt;br /&gt;
&lt;br /&gt;
== ccHost Permissions Policy== &lt;br /&gt;
ccHost 3.0 will use 0777 as the default for creating files. This is so new installations can get quickly off the ground and running. If you wish to change this policy go to 'Manage Site' and then 'Global Settings' or browse to the '''admin/setup''' command.&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22997</id>
		<title>CcHost File Access</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=CcHost_File_Access&amp;diff=22997"/>
				<updated>2009-05-03T20:08:46Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: brought this page up to date to represent more current installs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Information regarding UNIX file permission and ccHost== &lt;br /&gt;
&lt;br /&gt;
Setting file permissions in the most efficient and secure way can be tricky with a content management system such as ccHost on a UNIX system.&lt;br /&gt;
&lt;br /&gt;
There are many (i.e. many, many) UNIX configurations for running Apache and PHP &lt;br /&gt;
and this document does not pretend to cover all. It is a compendium of issues &lt;br /&gt;
encountered by various ccHost installations under some popular scenarios. If &lt;br /&gt;
there are security issues on your server with ccHost or you would like to avoid &lt;br /&gt;
them, hopefully this document will arm you with enough information to ask your &lt;br /&gt;
system administrator the right questions.&lt;br /&gt;
&lt;br /&gt;
If you 'own' the server and have super-user (root) access then these problems &lt;br /&gt;
are probably moot because you have the rights to do whatever you want with the  &lt;br /&gt;
directories and files created by ccHost. However, depending on whether you run PHP in CGI mode or not, these issues could very well be a big problem.&lt;br /&gt;
&lt;br /&gt;
On the other hand if you are using a company server or a web hosting service, especially on a 'shared server', then chances are you do not have such&lt;br /&gt;
access rights and that's where the issues begin.&lt;br /&gt;
&lt;br /&gt;
In either case the thing to understand is that on a UNIX&lt;br /&gt;
system: Whoever creates a file or directory on UNIX typically has full&lt;br /&gt;
(or enough) access rights to that file or directory to do what&lt;br /&gt;
ever they like.'''&lt;br /&gt;
&lt;br /&gt;
=== You are not nobody=== &lt;br /&gt;
&lt;br /&gt;
When you sign on to your web server via a terminal application (i.e.&lt;br /&gt;
shell) or transfer files via FTP you are operating as &lt;br /&gt;
whoever you logged in as. When you copy the ccHost installation&lt;br /&gt;
onto your server (or unzip them directly there) the directories &lt;br /&gt;
you create and files you copy into them are under your jurisdiction &lt;br /&gt;
and UNIX considers you the 'user' (you 'own' them).&lt;br /&gt;
&lt;br /&gt;
When ccHost is running on a UNIX server it is considered &lt;br /&gt;
a PHP browser application running in an instance of Apache. Your&lt;br /&gt;
server administrator has set up all PHP applications like ccHost&lt;br /&gt;
to run, not as you, but as a special user, usually called 'nobody' &lt;br /&gt;
and UNIX considers 'nobody' to be the user who owns the directory&lt;br /&gt;
and files.&lt;br /&gt;
&lt;br /&gt;
The main point is: These are two very distinctly different identities and the directories&lt;br /&gt;
and files created by ccHost are owned by this 'nobody' account, not you.&lt;br /&gt;
&lt;br /&gt;
Evidence can be seen when you list out the directories in your ccHost&lt;br /&gt;
installation:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 Jul 15 01:41 icons &lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 Jul 17 02:09 content&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first directory 'icons' created by me during FTP install. The second directory 'content' was created by ccHost when I installed ccHost and is therefore owned by another user.&lt;br /&gt;
&lt;br /&gt;
=== What ccHost Requires (IMPORTANT)=== &lt;br /&gt;
&lt;br /&gt;
For 3.1 installations and later: The path configuration screen ('''admin/paths''') will let you know exactly which directories require write access from script. These include 'content' and your 'local_files' directory. &lt;br /&gt;
&lt;br /&gt;
{{InfoBox|NOTE: Your installation will not work properly until local_files and all directories under it are writable to script.}}&lt;br /&gt;
&lt;br /&gt;
=== Case 1: You and ccHost are the same user=== &lt;br /&gt;
&lt;br /&gt;
In the best case scenario, some web hosters make all of this go away by &lt;br /&gt;
simply having PHP applications run under the same account as your login account. There is no 'nobody' account to contend with and ccHost is, in fact, running as you so permission to create directories in the main directory or write files to the phptal_cache directory is given. So if you ask your system administrator 'Do PHP apps run under my user's account?' and if the answer is 'Yes' then you can skip down the ccHost policy section because none of &lt;br /&gt;
this applies to your ccHost installation.&lt;br /&gt;
&lt;br /&gt;
=== Case 2: You and ccHost are in the same group=== &lt;br /&gt;
&lt;br /&gt;
The next question you have to ask is whether your account and PHP account&lt;br /&gt;
is in the same group. You can see in the listing first mentioned &lt;br /&gt;
above that this is case:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drwxrwxr-x   5 victor wgroup  4096 ....&lt;br /&gt;
drwxrwxr-x   5 nobody wgroup  4096 ....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is important because while you may not be the same user as&lt;br /&gt;
the PHP account, UNIX has another level of security called group before&lt;br /&gt;
getting to the global space (the rest of the world).&lt;br /&gt;
If this is the case then you should consider restricting the directories that need writing access to only owner and group.&lt;br /&gt;
&lt;br /&gt;
The way to traditionally do this is to run the chmod command as such:&lt;br /&gt;
&lt;br /&gt;
 chmod 775 folder&lt;br /&gt;
&lt;br /&gt;
Or, for all files under the folder recursively:&lt;br /&gt;
&lt;br /&gt;
 chmod -R 775 folder&lt;br /&gt;
&lt;br /&gt;
And/or, just to give the group full read (r), write (w) and execute (x) privileges:&lt;br /&gt;
&lt;br /&gt;
 chmod -R g+rwx folder&lt;br /&gt;
&lt;br /&gt;
=== Case 3: You and ccHost are not in the same group=== &lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not even in the &lt;br /&gt;
same group then you may still have an out:&lt;br /&gt;
&lt;br /&gt;
Some web hosting companies provide you with a secure browser based&lt;br /&gt;
interface that allows you to bridge difference in user rights by giving you&lt;br /&gt;
behind-the-scenes circumvention to ownership issues in your space&lt;br /&gt;
on the server. When the ccHost&lt;br /&gt;
documentation prescribes things like 'setting write permissions on a &lt;br /&gt;
directory' you should use this secure web interface provided by your&lt;br /&gt;
web hoster to perform the action. When you need to make changes to the &lt;br /&gt;
files, use this interface. That way it won't matter if the&lt;br /&gt;
'nobody' account or your account created the directory or file, &lt;br /&gt;
you can make the needed change.&lt;br /&gt;
&lt;br /&gt;
If your personal UNIX login account and your PHP account are not in the same group and you haven't a secure web interface, then your system administrator or web hosting service has left you with no choice to make the necessary directories available for writing to global users (a.k.a. other). You should keep the ccHost default access permission at 777.&lt;br /&gt;
&lt;br /&gt;
== ccHost Permissions Policy== &lt;br /&gt;
ccHost 3.0 will use 0777 as the default for creating files. This is so new installations can get quickly off the ground and running. If you wish to change this policy go to 'Manage Site' and then 'Global Settings.'&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=22996</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=22996"/>
				<updated>2009-05-03T19:57:51Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: /* Blank Screen On Upload */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now try your upload using the ccHost submit forms. If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	<entry>
		<id>https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=22995</id>
		<title>Cchost/guide/Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://wiki.creativecommons.org/index.php?title=Cchost/guide/Troubleshooting&amp;diff=22995"/>
				<updated>2009-05-03T19:56:23Z</updated>
		
		<summary type="html">&lt;p&gt;Fourstones: blank screen on upload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:ccHost]]&lt;br /&gt;
[[Category:ccMixter]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
{{cchost_head}}&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
= Known Issues =&lt;br /&gt;
Please consult our [http://sourceforge.net/tracker/?func=browse&amp;amp;group_id=80503&amp;amp;atid=559966&amp;amp;status=1&amp;amp;category=751589 bug tracker] for the latest list of unresolved issues.&lt;br /&gt;
= Blank Screen On Upload =&lt;br /&gt;
PHP is notorious for returning a completely blank screen when uploading a file fails under some circumstances. Unfortunately those circumstances are hard to track down because of this lack of error reporting.&lt;br /&gt;
&lt;br /&gt;
The most common reasons have to do with [[CcHost_File_Access|file access conflicts]] in Apache as well as memory allocation and other settings in your PHP configuration.&lt;br /&gt;
&lt;br /&gt;
For ccHost 5.1 (in SVN only as of this writing) you can check your installation by browsing to ''/ini_settings''. &lt;br /&gt;
&lt;br /&gt;
Otherwise these settings should be sufficient:&lt;br /&gt;
&lt;br /&gt;
*file_uploads '''On (1)'''&lt;br /&gt;
*upload_max_filesize '''10M'''&lt;br /&gt;
*post_max_size	'''10M'''&lt;br /&gt;
*memory_limit '''10M'''&lt;br /&gt;
*max_execution_time '''120'''&lt;br /&gt;
*max_input_time '''-1'''&lt;br /&gt;
&lt;br /&gt;
If you are still having problems, to make sure that uploading works on your installation, copy the following code to test_upload.php in your root installation and browse to ''/test_upload.php'' :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt; &amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  error_reporting(E_ALL);&lt;br /&gt;
  upload_file();&lt;br /&gt;
  print_form();&lt;br /&gt;
  &lt;br /&gt;
  function print_form()&lt;br /&gt;
  {&lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;form enctype=&amp;quot;multipart/form-data&amp;quot; action=&amp;quot;test_upload.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&lt;br /&gt;
  File: &amp;lt;input name=&amp;quot;uploadedfile&amp;quot; type=&amp;quot;file&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Upload File&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;?&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  function upload_file()&lt;br /&gt;
  {&lt;br /&gt;
    if( empty($_FILES) )&lt;br /&gt;
    {&lt;br /&gt;
        echo &amp;quot;No files to upload&amp;quot;;&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
      &lt;br /&gt;
    $target_path = &amp;quot;&amp;lt;/nowiki&amp;gt;'''content/admin/'''&amp;lt;nowiki&amp;gt;&amp;quot; . basename( $_FILES['uploadedfile']['name']); &lt;br /&gt;
&lt;br /&gt;
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {&lt;br /&gt;
        echo &amp;quot;The file &amp;quot;.  basename( $_FILES['uploadedfile']['name']). &lt;br /&gt;
        &amp;quot; has been uploaded &amp;quot;;&lt;br /&gt;
        echo &amp;quot;&amp;lt;a href=\&amp;quot;&amp;quot; . $target_path . &amp;quot;\&amp;quot;&amp;gt;download&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
    } else{&lt;br /&gt;
        echo &amp;quot;There was an error uploading the file, please try again!&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
  &amp;lt;/html&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox|Note that the code above assumes your content upload directory is called '''content''' and that you have a user called '''admin'''. Edit the code above to conform to your installation if these assumptions are not correct.}}&lt;br /&gt;
&lt;br /&gt;
If the upload did ''not'' succeed then the problem is definitely in your operating system or PHP environment and not in ccHost.&lt;br /&gt;
&lt;br /&gt;
If the upload did succeed there might be a problem with you getID3 installation. To test that possibility you'll need to edit a file within the ccHost installation called '''cchost_lib/cc-fileveryify.php''' In that file at about line 143 there is a line of code that looks like:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;CCDebug::QuietErrors();&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You'll want to put two forward slashes in front of that line so it looks like this:&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;nowiki&amp;gt;// CCDebug::QuietErrors();&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there is a problem with your getID3 installation, then the errors should lead you to what the solution is.&lt;br /&gt;
&lt;br /&gt;
= IE8 Layout Issues =&lt;br /&gt;
Some of the screens in some of the skins are problematic for Internet Explorer 8.&lt;br /&gt;
&lt;br /&gt;
The easy way to prevent these problems is to force &amp;quot;compatibility&amp;quot; mode using a meta tag in the skin.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
# Browse to admin/templatetags/profiles&lt;br /&gt;
# For the '''%(extra-meta)%''' field enter the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= File Access =&lt;br /&gt;
By far the most common issue with new installs on Unix based systems involves file access permissions. The recommended way of dealing with this is to set the entire ccHost directory structure as all-access (0777) just while you get things going. If everything else is working then you should follow the &lt;br /&gt;
[[CcHost_File_Access|ccHost file access guildlines]].&lt;br /&gt;
= Outputting Debug Messages =&lt;br /&gt;
Debug messages are special messages that help ccHost developers troublshoot your site when there is a problem. The option to turn on debug message output is '''on''' by default in 5.0 installations and upgrades. The file that controls this option is &amp;lt;nowiki&amp;gt;&amp;lt;your_local_files&amp;gt;/lib/DEBUG.php&amp;lt;/nowiki&amp;gt;. You can remove this file (or change the extension to something other than .php) and that will turn the option '''off''' debug output for your production site.&lt;br /&gt;
== Variable Dumps ==&lt;br /&gt;
&lt;br /&gt;
You can dump various records and environment variable at any time, right onto the screen. &lt;br /&gt;
&lt;br /&gt;
First, you must enable debug mode as described above.&lt;br /&gt;
&lt;br /&gt;
Then, as long as you logged in as admin, on any page browse to:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_page=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the global variables available to you (the user record is the currently logged in user).&lt;br /&gt;
&lt;br /&gt;
To view the first record of the current page's Query API record results:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other words, you can append '''dump_rec=1''' to almost any URL to see what the Query API is returning:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/files/victor/1234?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/people/teru?dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;your_installation_root&amp;gt;/api/query?tags=remix&amp;amp;user=loveshadow&amp;amp;dump_rec=1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will list out all the variables in a given upload record (the user record here is the one that uploaded the thing).&lt;br /&gt;
&lt;br /&gt;
To dump the internal dataview use '''dpreview=1''' instead.&lt;br /&gt;
===Developer Dumps===&lt;br /&gt;
ccHost developers have several options for dumping specific variables and getting state information.&lt;br /&gt;
&lt;br /&gt;
All of these assume that debug mode has been enabled somewhere:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Enable(true);&lt;br /&gt;
&lt;br /&gt;
For dumping a variable to the screen:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::PrintVar($var);&lt;br /&gt;
&lt;br /&gt;
For sending text to the log file determined at '''admin/paths''':&lt;br /&gt;
&lt;br /&gt;
  CCDebug::Log($text);&lt;br /&gt;
&lt;br /&gt;
To dump a variable to the log use:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::LogVar( $text, $var );&lt;br /&gt;
&lt;br /&gt;
Since ccHost is event based it's not always to figure &amp;quot;how I got here.&amp;quot; For an abbreviated stack trace:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace();&lt;br /&gt;
&lt;br /&gt;
For a full blown (very expansive) version:&lt;br /&gt;
&lt;br /&gt;
  CCDebug::StackTrace( false, true );&lt;br /&gt;
&lt;br /&gt;
=Repairing a broken configuration (A.K.A. HELP!!!!)=&lt;br /&gt;
&lt;br /&gt;
If you get into 'trouble' with your system you might be able to salvage your site by browsing to ''one'' of these URLs:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;?ccm=/media/admin/edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not logged in as an administrator when trying this you will have to:&lt;br /&gt;
*Open the '''cchost_lib/cc-config-repair.php''' file in a text editor&lt;br /&gt;
*Remove the two forward slashes '''//''' before the word 'return' in the line at the top of the file&lt;br /&gt;
*Save this file to disk&lt;br /&gt;
*From your browser, go to '''&amp;lt;your_root_installation&amp;gt;/cchost_lib/cc-config-repair.php'''. (This should bring up a configuration editor)&lt;br /&gt;
*Click on the word '''media''' to open the configuration settings and see if you can spot the error&lt;br /&gt;
*After you have fixed (or decided you can't fix) the problem ''make sure'' to the put the '''//''' back into the '''cchost_lib/cc-config-repair.php''' file otherwise you will leave a large gaping security hole in your site&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>	</entry>

	</feed>