I guess this is the same old story ..... I'm kind of new to this on a Linux platform. I've managed to compile Cuyahoga on FC4 running Mono 1.1.8-3, Apache 2.0.54 and MySQL 5.0.10. So far I've managed to get everything up and running to the point where I can log into the admin Webapp.
My problem is when I enter the URL for a site created in Cuyahoga it can't be found. I susppect that this is down to how Apache is configured and was wondering if anyone has a sample httpd.conf file?
Update:
I've manage to tweak my httpd.config and now I can access the site. I added the following:
DirectoryIndex index.html index.html.var default.aspx Default.aspx
and
Alias / path/to/Cuyahoga
AddMonoApplications default /:/path/to/Cuyahoga
Location
SetHandler mono
Location
Note: I had to remove the XML formatting i.e. the greater than, less than brackets and the double quotes from the above as I could not post this message otherwise.
The above, though I have no doubt is not the correct way to configure Apache, seems to work. My problem now seem to be that I can create a site, I can navigate to the site, I can add a search component, Language switcher, download and remote content component but I can't figure out how to add an article. I know this is a case of PEBKAC but any assistance on either the Apache config or how to add content would be greatly appreciated.
Many thanks,
Jim
jholmes DirectoryIndex index.html index.html.var default.aspx Default.aspx
and
Alias / path/to/Cuyahoga
AddMonoApplications default /:/path/to/Cuyahoga
Location
SetHandler mono
Location
Can you indicate if this differs from the configuration samples of Mono? I'm not really an Apache expert so I can't see at once if there is something special about the config.
Note: I had to remove the XML formatting i.e. the greater than, less than brackets and the double quotes from the above as I could not post this message otherwise.
Yes, that's because ASP.NET classifies this as unsafe. It can be turned off, but obviously the site would be a little more vulnarable to scripting attacks.
The above, though I have no doubt is not the correct way to configure Apache, seems to work. My problem now seem to be that I can create a site, I can navigate to the site, I can add a search component, Language switcher, download and remote content component but I can't figure out how to add an article. I know this is a case of PEBKAC but any assistance on either the Apache config or how to add content would be greatly appreciated.
Content management is divided into two parts: The site admininstration is for webmasters to configure the site structure, security and stuff. Once this is in place you can browse the site and when you're still authenticated and you have the right permissions, you'll see 'edit' links on top of most sections that you've added. From here the actual content can be managed.
This enables easy content management without having to access the site adminstration. If you're both the webmaster and content manager it might feel a little bit clumsy at times, but when you have dedicated roles for it, it works really well.
Many thanks for the reply,
I lifted the Apache config directly from the mod_mono howto. It looks more like a classic web app though. I had origionally configured Apache to serve Cuyahoga from the following:
http://domainname/cms/
when Cuyahoga is configured like this I can access the admin app but if I create a test site like:
http://domainname/testsite
I get a page not found. I'm guessing that Cuyahoga has to be the default site?
With regards to the actual addition of content:
Content management is divided into two parts: The site admininstration is for webmasters to configure the site structure, security and stuff. Once this is in place you can browse the site and when you're still authenticated and you have the right permissions, you'll see 'edit' links on top of most sections that you've added. From here the actual content can be managed.
This enables easy content management without having to access the site adminstration. If you're both the webmaster and content manager it might feel a little bit clumsy at times, but when you have dedicated roles for it, it works really well.
I might have this wrong (I usually do :-) ). In the administration part of the site there is a list of modules that can be added to a node? Is the staticHTML and article modules supposed to be in the drop down list along with the search, remote content, downloads etc.
Once again many thanks for your assistance.
Jim
jholmesI lifted the Apache config directly from the mod_mono howto. It looks more like a classic web app though. I had origionally configured Apache to serve Cuyahoga from the following:
http://domainname/cms/
when Cuyahoga is configured like this I can access the admin app but if I create a test site like:
http://domainname/testsite
I get a page not found. I'm guessing that Cuyahoga has to be the default site?
I think you also have to create an alias for
http://domainname/testsite and configure that as a Mono application too.
With regards to the actual addition of content:
I might have this wrong (I usually do :-) ). In the administration part of the site there is a list of modules that can be added to a node? Is the staticHTML and article modules supposed to be in the drop down list along with the search, remote content, downloads etc.
Yes, it's supposed to be there.
Once again many thanks for your assistance.
No problem :)
Once again many thanks,
I think you also have to create an alias for http://domainname/testsite and configure that as a Mono application too.
I think I've got the just of the Apache config now. I assume the alias should point to the Cuyahoga application?
I'm slowly working my way through the source though it's going to take me a bit of time. The NHibernate framework is completely new to me (Not something I knew existed but having read through the documentation will definately be something I will use in future, so once again thanks for the heads up)
I have compiled the project using VS.Net 2003 and ran it on a Windows XP platform. The web app is pointing to the same MySQL DB located on my Linux box (FC4). When I run the admin app on the Windows XP platform the StaticHTML and Article modules are not visable in the drop down list either.
Is the modules configurable and if so where do I do this so the StaticHTML and Article modules appear in the drop down list?
Update:
I've located the table that the module config resides in
cuyahoga.cuyahoga_moduletype
Looking at this table there are only four modules listed:
Search
LanguageSwitcher
RemoteContent
Downloads
I'm guessing that the Articles and StaticHTML modules should be in this list too. If so what should the ModuleTypeID for these modules?
Update:
I've looked through the SQL scipt and for some reason the User, Article and StaticHTML inserts failed to execute properly or more likely I ran the SQL update scripts before I ran the SQL init script.
Doh!
Many thanks,
Jim
Btw, you might as well be one of the first who try Cuyahoga with MySQL 5.0. At least it has never been tested with 5.0, only 4.0 and 4.1.
Don't hesitate to post if you encounter something weird.