Koozali.org: home of the SME Server

strange php problem [SOLVED]

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
strange php problem [SOLVED]
« on: August 05, 2007, 04:45:36 AM »
I've created an ibay with enabled php/cgi content and accessable  for everyone. I've tried that php application localy and installed the server on the other day at it's new destination. I've used the same local network and attached it to a firewall which gave the server access to the outside net. Then I added some file service ibays to the server system, and tried to open the php application again. It all worked the day before, but now I get the message use index.php for some reason the application is not working anymore. Does someone has any idea what could be the problem or how such an error could be caused? I've even tried to reinstall the whole application but exactly with the same effect, I can't explain this, or even can't imagine what could trigger such a behaviour.
Any help would be great.

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
strange php problem [SOLVED]
« Reply #1 on: August 05, 2007, 05:29:28 AM »
Could use a little more information.

What is the name of the application?
Have you checked the message logs right after you try to access the program?

Which version of SME are you using?
If you think you know whats going on, you obviously have no idea whats going on!

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
strange php problem [SOLVED]
« Reply #2 on: August 05, 2007, 01:54:52 PM »
SME Version 7.2
Application name: phprojekt and the smeserver-contribs-package phpmyadmin which is called by <servername>/phpmyadmin
In which log do I find such errors, I've checked the messages log but there was no error.

Ok, I tried it once again, a now I get just a blank website no source code no warning. Nothing at all.
The other side gives me following error in messages log:

Aug  5 13:59:21 officeserver httpd: PHP Notice:  Use of undefined constant LIB_PATH - assumed 'LIB_PATH' in /home/e-smith/files/ibays/phprojekt/html/summary/summary.php on line 12

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
strange php problem [SOLVED]
« Reply #3 on: August 05, 2007, 03:10:20 PM »
Quote from: "crusader"
Aug  5 13:59:21 officeserver httpd: PHP Notice:  Use of undefined constant LIB_PATH - assumed 'LIB_PATH' in /home/e-smith/files/ibays/phprojekt/html/summary/summary.php on line 12
It seems that the LIB_PATH is undefined, are you sure you configured everything correctly? As its seems that PHP is unable to determine the value for this variable and therefore assumes it's variable name.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
strange php problem [SOLVED]
« Reply #4 on: August 05, 2007, 08:59:59 PM »
I didn't change anything for this, the first day it worked and the second not.
I don't know why this application does not recognize the LIB_PATH could it be that some changings in the ibay config could cause such a problem?

How can I fix this specific problem?
By the way the phpmyadmin contribs installation is working again, don't know why

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
strange php problem [SOLVED]
« Reply #5 on: August 05, 2007, 11:38:47 PM »
Quote from: "crusader"
I didn't change anything for this, the first day it worked and the second not.
I don't know why this application does not recognize the LIB_PATH could it be that some changings in the ibay config could cause such a problem?

How can I fix this specific problem?
By the way the phpmyadmin contribs installation is working again, don't know why
Yes this could perfectly have to do with ibay changes. Please read up on the PHP BaseDir restrictions as this is often the issue.
Somewhere it seems that the LIB_PATH variable is not set or not determinined, this could be because some of the libraries can not be found within the scope of the ibay, and php is not allowed to look outisde of the ibay (basically what the basedir restriction does).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
strange php problem [SOLVED]
« Reply #6 on: August 06, 2007, 01:29:20 AM »
Cool, the PHPBaseDir change did the trick, thank you it working again.