Tuesday, January 22, 2013

cygwin svn behind a firewall

At work, I am behind a firewall. I knew that I had to generally configure cygwin to deal with the proxy by setting the env var HTTP_PROXY, but subversion still failed. Usually I can do svn operations through the wonderful TortoiseSVN windows suite, but building TubeTK  somehow insisted on using cygwn svn, even though I had set the svn parameter in the CMake configuration to use TortoiseSvn, and yes, I did make sure that cywin wasn't in CMakeCache.txt for the build. Some googling brought me to this post where Pascal explains it;


edit ~/.subversion/servers. In the [global] section, use these lines:
[global]
http-proxy-host = your.server.address
http-proxy-port = your_server_port

Works! Easy when you know!

Wednesday, January 16, 2013

WAMP stack and Joomla on Windows 7

The public web site for our new DR THERAPAT EU-funded project should be backed by a CMS - I thought Joomla might be nice. For testing, I installed a WAMP stack based on Win 7 machine at work. I already had MySql, otherwise I would have used XAMPP or something similar. I pretty much folllowed this blog entry, except for the bit about "Extract php5apache2_4.dll-php-5.4-win32.zip and copy php5apache2_4.dll into the ext/" directory, since I found the dll already present. I also put the packages somewhere else, which necessitated changing the conf files, but nothing unexpected was needed. I also installed phpMyAdmin and used its setup to configure it to use mysqli for DB access.

The Joomla doc lists dependencies on Apache modules mod_mysql, mod_xml and mod_zlib. This is plain wrong. What is meant is the php_ modules!! Now, since I have PHP 5.4.10, all this is very simple since mysqlnd, the native mysql driver, is already compiled into php. I just needed to configure php.ini correctly

extension_dir = ".\ext"

and


extension=php_mysql.dll
extension=php_mysqli.dll

Going to http://localhost:8000/phpMyAdmin now correctly shows the phpMyAdmin login page. 

Then installing Joomla is matter of extracting its downloaded zip into a joomla subdir to Apache's htdocs. This for testing only, I assume for a real web site I'll have to put it somewhere else.

Then going to localhost:8000/joomla, I just needed to go through Joomla' configuration pages, nothing unexpected here. Of course, I had set up a new schema in MySQL beforehand. And voila, my Joomla site showed up with standard content!

Now I need to learn how to program it, but it can't be much different from Drual which I used for my wife's web site at releaseintopeace.net.

'via Blog this'