Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: crusader 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.
-
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?
-
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
-
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.
-
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
-
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 (http://wiki.contribs.org/Useful_Commands#PHP_Related_Commands) 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).
-
Cool, the PHPBaseDir change did the trick, thank you it working again.