Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Rebels on January 07, 2005, 07:28:44 PM

Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: Rebels on January 07, 2005, 07:28:44 PM
Is there anyone who has running SME 6.0.1 with phpWebsite 9.3.4 or 0.10.0 and RSS feeds running.

I can't get it to work and think that it has to do with SME server.

Any help would be welcome.

Thanx.

Eric
Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: edb on January 25, 2005, 09:26:21 PM
Have you found any resolve to this issue on SME yet?

I would also like to get the RSS feeds working.

Ed
Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: jpnelson40 on March 13, 2005, 06:17:26 PM
Yes and no. The problem for me using phpwebsite 0.10.0 is that /etc/httpd.conf creates an alias /files which points to the /home/e-smith/files/ibays/Primary/files directory.

But, phpwebsite looks for a files directory in its own file system. I have my phpwebsite directories in the Primary directory, but references to mydomain.org/files/phpwsrssfeeds fails because it looks at the alias first.

I can fix this by editing the alias definition in /etc/httpd.conf to point instead to Primary/html/files, that is to the phpwebsite location. But that gets overwritten by e-smith after any change to configuration. I can't see how to change the templates since they are generated dynamically for all the ibays, including the Primary one. This is where I am seeking advice now.
Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: jpnelson40 on March 13, 2005, 10:46:14 PM
After further study, I have found one workaround for my problem; I am not sure about side effects for others, however.

 I copied this file:
 /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
 to:
 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
 and then modified the last line to insert "html" so that the alias will now
 point the directory in the Primary directory, not the one of the ibay, which
 I think wouldn't be used for a Primary case anyway. This seems to be a
 workaround for the problem.

    if ($cgiBin)
    {
        $OUT .= "    ScriptAlias /cgi-bin $basedir/cgi-bin\n";
    }
    else
    {
        $OUT .=
                "    # To add cgi-bin ScriptAlias for this i-bay, run:\n"
              . "    #   /sbin/e-smith/db accounts setprop $ibay CgiBin "
                            . "enabled\n"
              . "    #   /sbin/e-smith/signal-event console-save\n";
    }
    $OUT .= "    Alias       /files   $basedir/html/files\n";
Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: jpnelson40 on March 13, 2005, 11:04:54 PM
Correction to my previous post: it is the last line of the code snippet, not the last line of the file, that I modified. I couldn't provide a diff file because other changes on my system made it confusing.
Title: phpWebSite with working RSS FEEDS on SME 6.x ????????????
Post by: duncan on March 14, 2005, 12:53:45 AM
How about this (http://www.tech-geeks.org/contrib/mdrone/Safely-Installing-Webapps-for-Esmith.html)