Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: kees on November 08, 2001, 12:01:17 PM

Title: twiggi
Post by: kees on November 08, 2001, 12:01:17 PM
Has someone already installed the latest version of Twiggi in e-smith? (1.5.14)
What is the <httpd_root> and the <document root> and do I need to configure the php files?
Title: Re: twiggi
Post by: guestFF on November 08, 2001, 12:53:21 PM
Hi,

Just posted by Darrell last week or so...

http://forums.contribs.org/index.php?topic=2707.msg9158#msg9158

HFW
Title: Re: twiggi
Post by: kees on November 08, 2001, 01:07:53 PM
Yes I know. I followed the install instructions but something goes wrong.
I only see when I enter www.mydomain.xxx/twiggi the index.php code.
So I was wondering if someone else could give me the solution.
Title: Re: twiggi
Post by: kees on November 08, 2001, 01:09:00 PM
And the root mail dir is that /home/e-smith/Maildir ??
Title: Re: twiggi
Post by: guestFF on November 08, 2001, 03:42:16 PM
Are you sure the twiggi i-bay has cgi enabled?
Title: Re: twiggi
Post by: kees on November 08, 2001, 04:42:45 PM
No, ectually not. I'll try that. Maybe that's the problem.
I installed it in /home/e-smith/files/primary/html/twiggi
I shall try it with an ibay.
Thanks, I'll let you know if it works.
Title: Re: twiggi
Post by: Brian Leggett on November 08, 2001, 05:50:59 PM
You can keep it in /home/../html/twiggi but you'll need to make a custom httpd.conf template.

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-emithAccess10primary /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

Edit 90e-smithAccess10primary so looks like:


    Options Indexes Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
 

Save. Then run /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

Restart httpd.
You now have PHP in your primary.
Title: Re: twiggi
Post by: Kees on November 08, 2001, 10:11:56 PM
YES YES YES!! It works.
Brian, I didn't edit the HTTPD. I installed everything once again. The user mail dir is $HOME/Mail. Before I was going to edit the e-smith file I checked if it already worked. It works. But eventhough thanks for your reply.
Title: Re: twiggi
Post by: sage on November 08, 2001, 11:01:38 PM
Is it possible to set this up to work with my palm?
Title: error mesages
Post by: sage on November 09, 2001, 01:43:46 AM
Error: Access denied for user: 'www@localhost' (Using password: NO)

when I got to the login page I get the above error 2 times.

After I login I get it about 50 times all over the page, but it does show me email that I have as well as the buttons for changing to other parts.
Title: Re: error mesages
Post by: Harry on November 09, 2001, 02:27:37 AM
<http_user> is www
<DocumentRoot> is /home/e-smith/files/primary/html/
path to user mail folder directory is $HOME/Mail

Also tried an update but.................................... nothing. Access denied.
Title: Re: error mesages
Post by: sage on November 09, 2001, 06:46:08 PM
Harry

I did not change my mail directory and I can see my mail and my folders created.  Try putting it back to the default.

Sage
Title: Re: twiggi
Post by: Ed Form on November 15, 2001, 04:22:41 AM
Try logging in on your windows box as twiggi_admin with the password twig!gi and calling twiggi with the url as before. If your problem is the same as mine the system will hesitate for a while and then put up the password dialogue which will not accept twiggi_admin as the user but will accept any of the standard user names you have created in e-smith.

This program is driving me nuts. I've seen it now, but I simply can't get it to run by following the install instructions. Something about usernames and passwords isn't being set up correctly.

Any chance of a howto for twiggi in e-smith from one of the people who understand it?

Ed Form
Title: Re: twiggi
Post by: kees on November 15, 2001, 03:21:30 PM
You must login with the username from yourself.
You don't need the password twig!gi. It's only a password for the database.
The time of the server and client pc has to be synchronized.
Title: Re: twiggi
Post by: Ed Form on November 15, 2001, 09:28:16 PM
I think you missed my point. If I call the program from a machine where I logged in with my username and password I get the php code displayed - the program doesn't run. If I log in to the same machine with the default twiggi_admin username and the password twig!gi the code runs and I can enter a username and use the facilities of the program.

Having seen the program running now, I've lost interest in Twiggi as a potentially useful program for my clients, it isn't up to the job. My interest is in understanding the e-smith system and the way mysql can be used, and twiggi is a good basis for that.

Ed Form
Title: Re: twiggi
Post by: Richard Emory on November 17, 2001, 07:29:11 PM
I have installed twiggi on two E-Smith servers.  Home is 4.1.1 and work is 4.1.2.  Home installation in flawless.  Work in flawed.  When I goto /twiggi at work I see the program code of index.php and not the login screen. So then using my .bash_history file as a guide I tried a re-install.  Same problem. Where could the problem be?
Title: Re: twiggi
Post by: Fernando Puertas on November 18, 2001, 03:24:11 PM
Maybe at work you do not have the right to execute php-cgi... in that directory
Title: Re: twiggi
Post by: Richard Emory on November 19, 2001, 12:38:34 AM
I set up both
I have whatever permissions I desire to have
I am root and admin
Title: Re: twiggi
Post by: Richard Emory on November 24, 2001, 12:10:06 AM
I found the problem with Twiggi.  Actually the problem is a known bug in 4.1.2 see link below:

http://www.e-smith.org/bugs/index.php3?op=showBug&bugID=27

Now Twiggi and other php scripts work fine.  I think this will also fix the problem with Fernado Puertas's machine.