Elxis CMS Forum

Support => Installation => Topic started by: vyni on April 23, 2007, 16:08:47

Title: Some PHP-Errors
Post by: vyni on April 23, 2007, 16:08:47
Hello and Good afternoon.

I just finished to install ELXIS and got some troubles. There are a few php-errors in top at the page. Just see http://vyni.info - and You see what I mean. How can I fix this (I guess small) problems?

Is it possible to solve by myself or do I need something changed in the server-configuration?

Many thanks in advance and best regards from Vienna.
Title: Re: Some PHP-Errors
Post by: datahell on April 23, 2007, 19:58:14
Hi vyni, Open basedir restriction for folder /tmp. It's ok for this step you can move forward. Continue installation and if you see any error telling you that something is not writable make it writable and re-try.
Title: Re: Some PHP-Errors
Post by: vyni on April 24, 2007, 13:35:33
Thank You for Your quick reply.

I continued the installation. I even finished the installation. But - bad luck - there are some new errors. It looks a little bit confusing to me. There is content above the header instead in the content-area.

I realized a php-warning at the end of the installation, telling me something like a file is not withhin the allowed path...and so on. But unfortunatley the line was corrupted by the finished-screen from elxis, so I couldn´t read complete.

So far - so good.
I tried to login in the Administration - this seems to be ok.
But the frontend.....

Title: Re: Some PHP-Errors
Post by: rentasite on April 24, 2007, 15:09:12

The open_base_dir setting is primarily used to prevent php scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts.
Title: Re: Some PHP-Errors
Post by: vyni on April 24, 2007, 15:52:30
OK - I do understand this. But which one must be writeable for this warning:
Session save path  /tmp,
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web25/html/:/var/www/web25/phptmp/:/var/www/web25/files/:/var/www/web25/atd/) in /var/www/web25/html/installation/index.php on line 256
Unwritable

Or where to change the directory?

The installation-path is like this: /var/www/web25/html/
and I got a path like this:
/var/www/web25/phptmp
/var/www/web25/html/tmp
both of them are CHMOD 777

and further more I changed ALL files to CHMOD 777 manually - so I guess it is just a problem with the path
where is /tmp located ????
maybe when I change /tmp to /phptmp ???

now I transferred the package already 3 times - still the same.
Title: Re: Some PHP-Errors
Post by: Ivan Trebješanin on April 24, 2007, 18:01:48
Directory /tmpr should be in the root... or if absulute is used: home/www/public_html/tmpr/
Notice, however,  that it is called tmpr, not tmp. The above example is example of my config, it might not work for you. I've NEVER had a single mistake with elxis installation, even on very restrictive servers...
Title: Re: Some PHP-Errors
Post by: vyni on April 24, 2007, 18:18:46
Hmmm......

In which root ?
In server-root: /var/www/web25/  or in web-root: var/www/web25/html

in server-root I only got /phptmp ( but also /atd and /files ) - no /tmp. And my ISP isn´t willing to create it. He forces me to use /phptmp instead.

and in web-root I could have 200 dir´s named /tmp or /tmpr or whatever. But this doesn´t help.

Hmmmm.....I think the mainproblem is the definition /tmp for the session.save_path
Somewhere or somehow it must be changed.
Title: Re: Some PHP-Errors
Post by: datahell on April 24, 2007, 19:01:41
Open base dir restriction uses regular expressions. So, /tmp may also be valid for /tmpr... You can find more information in the internet . (PHP has a bug also in this). I think the problem is mostly due to server's misconfiguration. Tell your web master to remove this restriction. Can you tell us what version of PHP you have?
Title: Re: Some PHP-Errors
Post by: vyni on April 24, 2007, 23:18:35
Thank You once more for Your engagement.
The installed Version is MySQL 5.0.32-Debian.....

Do You think that´s why the content is missplaced? Could I change somewhere the variable to use /phptmp instead of /tmp ?

But for example: The content of "getting started" is placed correct. Aswell as the content of "FAQ" and a few more. On the other hand, the content of "Home", "Video Insite Content" and some other are missplaced. - Will this be effected by the path to /tmp ? Definitly is there something else involved.

There must be a problem with ether the path or user-rights.
Title: Re: Some PHP-Errors
Post by: vyni on April 24, 2007, 23:23:39
Ah ja, PHP-Version: Yes ( 5.1.4 )
Title: Re: Some PHP-Errors
Post by: Ivan Trebješanin on April 24, 2007, 23:45:22
There IS a catch with video if elxis is not installed in the root dir... It won't work untill you change  MOS FLV Video to reflect the correct dir. And, please, try to install it on another server, and see what happens.
Title: Re: Some PHP-Errors
Post by: datahell on April 24, 2007, 23:45:41
I think the problem is that the session save path in your server's configuration has been set to /tmp (default setting) but the Open Base Dir restriction does not allows PHP to access it as it is outside your user path. So, I think it is a server misconfiguration issue.

ini_get('session.save_path') echo to you during the installation that the session seve path is /tmp. You can also check this from administration -> system -> system information -> php tab.

A solution I can propose from here is as follows:
If you are allowed via an .htaccess file to change the php session save path for your site then create an .htaccess file (or use an existing one) and write in it:

php_value session.save_path "/var/www/web25/phptmp"

I can not do more things from here for you. If you need more help and still can not find a solution from here or from the internet try our commercial support ( http://support.elxis.org ). You wont regret it!
Title: Re: Some PHP-Errors
Post by: vyni on April 26, 2007, 00:28:00
Thank You once more.
There IS a catch with video if elxis is not installed in the root dir... It won't work untill you change  MOS FLV Video to reflect the correct dir. And, please, try to install it on another server, and see what happens.
At least - it is installed in the root-directory of my domain.

And this one?
PHP: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/web25/html/mambots/..) is not within the allowed path(s): (/var/www/web25/html/:/var/www/web25/phptmp/:/var/www/web25/files/:/var/www/web25/atd/)
uri: index.php
path: /components/com_frontpage/frontpage.php

This is the same error - just annother directory

I think the problem is that the session save path in your server's configuration has been set to /tmp (default setting) but the Open Base Dir restriction does not allows PHP to access it as it is outside your user path. So, I think it is a server misconfiguration issue.

ini_get('session.save_path') echo to you during the installation that the session seve path is /tmp. You can also check this from administration -> system -> system information -> php tab.

You are right.
And I tried Your tip "php_value session........" - resulting in error 500. I removed it and everything was as before.

So my question: Can I do something or must it done by the ISP?
And what to ask for ? Setting the session.save_path to /var/www/web25/phptmp/   ??