Forum OpenACS Q&A: Help on using aolserver4 and php 4.3.4

Hi, we are triying to test an opensource ad-server based on postgresql with aolserver4.

http://www.phppgads.com/one/index.html

It requires PHP.

We have installed PHP 4.3.4 with aolserver4.

We have the virtual server feature activated using two virtual servers. Only static pages, not using openacs at this moment.

Aolserver 4 appears to crash erratically with php active.

Any experience with php and aolserver4?

Thanks for you help.

/Jorge

Collapse
Posted by Don Baccus on
I have no experience with PHP, but one common source of problems is stack overflow.  Our sample config file for OpenACS sets the stack to 512K rather than the AOLserver default of 128K, and failure to do so will cause certain OpenACS pages to cause AOLserver to crash.

This is an easy hypothesis to try out: set your stack size to a large value and see if the problem disappears.

If not, the other question that comes to mind is whether or not PHP is known to be threadsafe ...

Collapse
Posted by Jorge Garcia on
Thanks, Don.

We have increased the stack size and now we can install the php module.

We will go to test the php application now.

/Jorge

Collapse
Posted by Nima Mazloumi on
Hi Jorge,

I was wondering if you succeeded with using php on the aolserver. Does it work? I need PHP for the AOLServer 3.3oacs1 but couldn't get PHP running. The pages where served as text files without being compiled by php.

Greetings,
Nima

Collapse
Posted by Malte Sussdorff on
Hi Nima, it works on AOLserver 4 for sure (see http://www.sussdorff.de/mail/src/login.php) along with OpenACS.

Maybe you want to switch to aolserver4.

Collapse
Posted by Jorge Garcia on
Hi Nima, it works with aolserver4. We haven't tried with aol3.

As Malte, we wish to try to install several interesting programs already developed with PHP.

One of them was SquirrelMail, thanks Malte 😉

We have a virtual server with Cathy Sarisky at acornhosting.net.

We have installed the aolserver4 to try the virtual hosting, within the virtual server, and it works. We have now 3 domains to try.

In a 'true' server we also can install the phppgads software we was interested -an ads server-, but in the virtual server we can't. We get errors after creating the tables in the database and the install crash. We don't know why.

http://www.phppgads.com/

1. Is someone working with acornhosting.net who has installed any PHP software under the virtual servers and can confirm it works?. We haven't tried another PHP software yet.

2. Is someone interested to try to install the adserver in their virtual server?. If so, please tell us about your experience.

At the moment we have installed under Apache using another port. Not our favourite server :(

Malte:

1. any special sugestion to configure aolserver4 for PHP? We only have increased the stacksize.

2. Have you installed some more PHP software under aolserver4?

3. Then, could you tell us the name of that software to add it to the list of working php applications under aolserver4?

Thanks.

/Jorge

Collapse
Posted by Nima Mazloumi on
Hi Jorge,

I got PHP running under 3.3oacs1 but how do I mount a page that I stored under lets say

/www/service0/www/dotlrn/php/test.php

under

/dotlrn/php/test.php

?

This is what I did so far:
I created a node in the site map 'php'
I mounted an instance of page called 'test.php' under 'php'
I placed 'test.php' under '/www/service0/www/dotlrn/php/test.php' but the file is still accessible even if I am logged out even thou the permissions are inherited from the main site.

Any idea how I can integrate a php page into dotlrn but forcing the user to login first?

Greetings,
Nima

Collapse
Posted by Nima Mazloumi on
I removed the inheritance because it allowed the public to read. How do I make the page accessible now to all logged in users?
Collapse
Posted by Malte Sussdorff on
I did not install more than just squirrelmail for the time beeing (and have no plans to expand this at the given moment). Furthermore, I did not use any special configuration so I can't help out there either. I'm just happy to have it working, but I'm curious if and how Nima will manage what he has been trying to do.
Collapse
Posted by Jorge Garcia on
Sorry, Nima.
Can't help you at this time.
We have tried only to install a finished PHP application, not to integrate PHP with dotLRN, nor with openacs.
We haven't any plans to even try to do this for now.
I hope you have luck with your test :)
/Jorge
Collapse
Posted by Cathy Sarisky on
Hi Jorge,

That's interesting that phppgads is crashing in your vserver but works in a "real" server.  Is there anything different between the two (PHP version, etc?) other than vserver or no?