Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I'm trying to implement CouchCMS with a one page HTML document that I've developed for a client. The client just want to be able to add images and texts to a gallery in the HTML site, without having to edit the code. So I thought that CouchCMS would be a perfect solution for this.

I tried to follow the Sample Portfolio Site Tutorial but I'm getting stuck at the section where you are being asked to rename the HTML document to PHP. In my case, I only have one HTML document named index.html, so I rename it to index.php. But when I visit the index.php in my browser, the window is just blank. From what I understand, I should see the same thing as when I visit the index.html, right?

For your information I'm using MAMP on Mac for this installation. I also tried to rename the index.html to home.php, but that didn't work either. Lastly I tried to continue with the tutorial by adding
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
at the beginning and
Code: Select all
<?php COUCH::invoke(); ?>
at the end of the php document, but the file is not appearing in the admin view of CouchCMS.

Is this a usual problem and do you know how to solve this?
Hi,

Yes, you are right - changing the extension from .html to .php should display the contents exactly as before.
Since you are getting a blank, perhaps the web-server is not configured properly to handle PHP or is throwing some error.

To test things out, please create a file (say named 'test.php') in your site's root and place only the following lines in it
Code: Select all
<?php

phpinfo();

Try accessing the file through your browser (e.g. http://localhost/test.php). You should see a long listing about the PHP version being used by your installation. If you still get a blank, please take a look at the server's error log to know exactly what it is complaining about.

Let us know how it goes, Thanks.
2 posts Page 1 of 1