Menu

#1 installation fails on mkdir() [with correct ACL]

open
nobody
None
5
2006-05-16
2006-05-16
No

hello,

installer give some php warnings for eval() and fails
to install at the first mkdir() template/ inside
/var/www/html/nv

* config: linux :: apache2 :: mod_php (php4)

* before install:
# cp NagView-NagEdit-1.0.rc3.php /var/www/html/nv.php
# chown -R apache:root /var/www/html
# chmod 750 /var/www/html

* personnal tests:
I verify apache can make directories with php

# cat > /var/www/html/mkdir.php <<END
<?php
mkdir("testdir") or die ("could not create directory");
?>
END

# browse http://localhost/mkdir.php

# ls /var/www/html
. .. nv.php testdir/

=> Ok, testdir has been created

* install session:
# browse http://localhost/nv.php
[ ok, this is nicely deflated
[ Pre-installation Check
-file_get_contents........Available
-unserialize..............Available
-GZ Compression...........Available
-FTP......................Available ]
[ Check lisense ]
[ Install Path = /var/www/html/nv ]
[ About to Install
The following files will be written:
/var/www/html/nv/SQLParser.php
/var/www/html/nv/README
... ]
[ Installing...
Writing files and folders to /var/www/html/nv
Adding directory: /var/www/html/nv
.............................[failed]
>> Failed: could not make directory . Exiting... ]

* apache error log: (see full log attached)
# cat /var/log/httpd/error_log
[client 127.0.0.1] PHP Notice: Undefined variable:
content in /var/www/html/nv.php(1) : eval()'d code on
line 54
...
...
[client 127.0.0.1] PHP Warning: mkdir(): No such file
or directory in /var/www/html/nv.php(1) : eval()'d code
on line 1103, referer: http://localhost/nv.php
[client 127.0.0.1] PHP Notice: Undefined variable:
conn_id in /var/www/html/nv.php(1) : eval()'d code on
line 1110, referer: http://localhost/nv.php

I cannot debug the script since it is deflated into
memory :( Can somebody tell what i missed?

thx,
Ben

Discussion

  • Benoît Rouits

    Benoît Rouits - 2006-05-16
     
  • Benoît Rouits

    Benoît Rouits - 2006-05-16

    Logged In: YES
    user_id=577821

    oups.. typo :
    s/deflate/inflate/g

     

Log in to post a comment.