Installation problems /spip or /ecrire doesn't matter

I've tried http://localhost/spip/ecrire/ and http://localhost/ecrire/ and both display the first install page fine. What they can't do is go to the next page.

In the first case to start the install I go to http://localhost/spip/ecrire/ but after pressing Next>> I get several different flavors of:
-----------

Warning: include_ecrire(ecrire/inc_flock.php3) [function.include-ecrire]: failed to open stream: No such file or directory in /home/tgagne/work/SPIP-v1-8-3/ecrire/inc_version.php3 on line 51

Warning: include_ecrire() [function.include]: Failed opening 'ecrire/inc_flock.php3' for inclusion (include_path='/usr/share/php') in /home/tgagne/work/SPIP-v1-8-3/ecrire/inc_version.php3 on line 51

...

Fatal error: Call to undefined function: utiliser_langue_visiteur() in /home/tgagne/work/SPIP-v1-8-3/spip_test_dirs.php3 on line 20
----------

If I try just /ecrire/ (which is what it looks like the documentation wants) I get an "Object not found" looking for http://localhost/spip_test_dirs.php3.

The file spip_test_dirs.php3 is actually in the parent directory to ecrire, leaving me to believe the first method (/spip/ecrire/) should work, but it doesn't.

     Thu Apr 13 16:23:43 2006
     Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7g PHP/4.4.0

The archives here didn't seem to show this problem -- which is too bad since I hate believing I'm the first one with the problem... usually means I'm an idiot.

Hello,

your problem is due to the fact that your include_path isn't correctly
configured :
if you can touch php.ini, you should use
include_path = ".:/usr/share/php"
(with the dot which means the current directory)

If you can't change this parameter, this isn't really a problem :
there is a workaroud wich should solve it : The idea is to include the
files not in a relative way, but by using an absolute path to find
them.

To do this, simply change the line 26 of inc_version.php3 before the
installation :
define('_DIR_RESTREINT_ABS', 'ecrire/');
to
define('_DIR_RESTREINT_ABS', '/home/tgagne/work/SPIP-v1-8-3/ecrire/');

I think that like this it should work
(but if you can, change your php.ini, it's cleaner :slight_smile:

.Gilles
----
2006/4/13, Thomas Gagne <tgagne@wideopenwest.com>:

I've tried http://localhost/spip/ecrire/ and http://localhost/ecrire/
and both display the first install page fine. What they can't do is go
to the next page.

In the first case to start the install I go to
http://localhost/spip/ecrire/ but after pressing Next>> I get several
different flavors of:
-----------

Warning: include_ecrire(ecrire/inc_flock.php3)
[function.include-ecrire]: failed to open stream: No such file or
directory in /home/tgagne/work/SPIP-v1-8-3/ecrire/inc_version.php3 on
line 51

Warning: include_ecrire() [function.include]: Failed opening
'ecrire/inc_flock.php3' for inclusion (include_path='/usr/share/php') in
/home/tgagne/work/SPIP-v1-8-3/ecrire/inc_version.php3 on line 51

...

Fatal error: Call to undefined function: utiliser_langue_visiteur() in
/home/tgagne/work/SPIP-v1-8-3/spip_test_dirs.php3 on line 20
----------

If I try just /ecrire/ (which is what it looks like the documentation
wants) I get an "Object not found" looking for
http://localhost/spip_test_dirs.php3.

The file spip_test_dirs.php3 is actually in the parent directory to
ecrire, leaving me to believe the first method (/spip/ecrire/) should
work, but it doesn't.

     Thu Apr 13 16:23:43 2006
     Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7g PHP/4.4.0

The archives here didn't seem to show this problem -- which is too bad
since I hate believing I'm the first one with the problem... usually
means I'm an idiot.

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Gilles Vincent wrote:

Hello,

your problem is due to the fact that your include_path isn't correctly
configured :
if you can touch php.ini, you should use
include_path = ".:/usr/share/php"
(with the dot which means the current directory)

<snip>
  

Which URL should I use? /spip/ecrire/ or just /ecrire/? I modified /usr/local/lib/php.ini, but my /usr/share/php directory is empty.

tgagne:/usr/share/php/build # rpm -qa | grep php
php4-session-4.4.0-6
php4-mysql-4.4.0-6
php4-4.4.0-6.8
php4-devel-4.4.0-6
apache2-mod_php4-4.4.0-6.8

I’m going to try adding one of the spip directories to the include statement, which now looks like:

include_path = ./:/usr/share/php