![]() ![]() Follow that link to start the install.Īfter the install the Setting up your PHP environment screen tells me that /etc/php5/apache2/php.ini should be edited with different defaults and I go do that.Ĭlick on the 'One more thing' link. That brings up the 'cchost has not been properly install.' with a link to ccamdin' subdirectory. Kill all instances of the browser, then browse to NOTE: You may have to log out of Ubuntu or possibly reboot and get all the config stuff to take. We start by restarting Apache to get our config changes to take hold: sudo /etc/init.d/apache2 restart (The actual location is different than the one here but the steps are the same): sudo mkdir /var/log/cchostįinally ready to see if our setup is alive. Just to make the mirroring easier I created a log directory in the same location as ccMixter's on my local machine. The group is already correct ('victor') because I created it so all we have to do is enable write by the group: chmod 775 cchostįor cchost log files we write them to a directory that is not accessible to the web. We need 'cchost' directory writable by the web server. If you're only doing read-only updates then its: svn co cchost Moving to /var/www I got the code: svn co svn+ cchost ![]() The ssh-agent daemon was already running in my install so all I had to do was register the keys (the passphrase was prompted for): ssh-addįrom this point on, all SVN access to the CC server would be done passing these keys back and forth and I never had to think about it again. ssh/id_dsa naming convention is magic and required, the files must be private read-only: chmod 600. Puttygen victors_key.ppk -O private-openssh -o. I probably could have gone back to Windows to translate these but instead I installed the 'nix version the Putty tools: sudo apt-get install puttyįrom my home directory I ran my key file through that to generate the OpenSSH key files: puttygen -L victors_key.ppk >. The 'nix system prefers OpenSSH version of the key files so I had to translate the PPK (Putty) version to that. My key was originally generated on Windows using the Putty tools. And you can skip the rest of this section entirely. If you don't have ssh keys then you can use ssh-keygen and let the CC folks know about it to get writable access. If you already have keys registered in your system you can skip this section entirely. If you only plan to do read-only updates from SVN you can skip this section entirely. Since I need writable access to the CC code repository, I had to register my public key with the system. There's a very usable and worthwhile GUI on Ubuntu and a fine diff program that I get: sudo apt-get install subversion The Creative Commons code server uses Subversion. Then I grab the zip from the net, unzip and do some clean up: curl > getid3.zip I want to make the mirroring with ccMixter smooth so I create a directory that matches where we have getID3 on the ccMixter server: sudo mkdir /var/getid3 Mysql> GRANT ALL ON ccmixter.* TO IDENTIFIED BY 'ccm_password' Then map the name for my local machine: sudo vi /etc/hostsĮven though I'm going to mirror the ccMixter database here, it doesn't matter what the names are here locally: mysql -p -u root Then enable it: ln -s /etc/apache2/sites-available/cchost /etc/apache2/sites-enabled/cchost Create the new file: sudo vi /etc/apache2/sites-available/cchost I prefer to keep my localhost website for junky experiments so I create a virtual Apache host for ccMixter. Under change the line: AllowOverride None htaccess overwrites: cd /etc/apache2/sites-available mods-available/rewrite.load rewrite.loadĪnd you need to enable. I next want to enable mod_rewrite: cd /etc/apache2/mods-enabled Then edit the line: export APACHE_RUN_GROUP=www-data In order to ease this problem I change the default group that apache will run in to the same as me ('victor'): cd /etc/apache2 Sudo apt-get install php5 libapache2-mod-php5īecause I'm using the PHP module (not CGI) Apache will perform operations in 'nix as a user in a group that will need write permissions to several directories. ![]() I then went out and got and verified the pieces of LAMP: sudo apt-get install apache2 I end up as user 'victor' in group 'victor'.Īfter installation, there were 195 'updates' and I got all of those. I used the Wubi installer to get Ubuntu on my Windows laptop. ccHost 5.0.1 (Committed revision 11342 Nov.PHP: PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch. ![]() Ubuntu: 8.04 - the Hardy Heron - released in April 2008. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |