- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PHP error for file functions ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 02:44 AM
09-04-2003 02:44 AM
PHP error for file functions ?
On a HP box (11i 64bits) I installed Apache&PHP from June CD's
Versions:
PHP 4.2.3
Apache 2
There's also a MySQL installation
I'm trying to install a PostNuke portal on that box. (Really nice).
Problem:
During install there's a PHP function called
file_exists (and furtheron is_writable)
which ALWAYS returns false. This is highly annoying, because install keeps looping.
Anybody know if there's a problem with PHP or is there maybe a setting within PHP.INI or HTTPD.CONF to overcome this ?
Thanks in advance !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 02:48 AM
09-04-2003 02:48 AM
Re: PHP error for file functions ?
Perhaps you should do the install with the httpd server down(unless otherwise indicated).
Is this swinstall or a custom install script?
More information=more help.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2003 04:59 AM
09-04-2003 04:59 AM
Re: PHP error for file functions ?
When installing, the install procedure checks whether a file (config.php) has the corrects rights (666). If not a screen appears to change those files and press the recheck button. Because the funtion "is_writable" always returns FALSE we have a loop.
The coding:
if (is_writable($file)) {
echo "
" . _CHMOD_CHECK_3 . "";
$chmod = 0;
} else {
echo "
align='absmiddle'>" . _CHMOD_CHECK_4 . "";
$chmod = 1;
}
I inserted a print statement to check where the if statement is.
This cannot be done without webserver and is done with a custom installation procedure.
All webdriven.
So what I'm after is if anybody did experience the same failing file functions using PHP 4.2.3
and/or if anybody knows how to correct this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 02:05 AM
09-05-2003 02:05 AM
Re: PHP error for file functions ?
I didn't check if the is_writable return always false or not, if it's the case, may be a submit of this bug on php.net could be helpfull (check also if it's a known pb on HPUX).
Did you check that your http user can write to this file ? If it's not the case, then this could be a solution
Anyway, if is_writable is really a bug and you want to install your product, you can change the script with the is_writable and palce in the test the TRUE keyword to by-pass the test.
Sure it's not "clean" but should work.
But I think that there's an authorization failure somewhere !
hope that help
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 02:45 AM
09-05-2003 02:45 AM
Re: PHP error for file functions ?
http://nl2.php.net/function.file-exists
I guess, HP has to compile a more newer version and include that one with the new OS CD's.
Havenot been able to find a newer version on the HP website.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 03:32 AM
09-05-2003 03:32 AM
Re: PHP error for file functions ?
you can search in the forum on the way to compile php+apache...
hth
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 01:46 AM
11-05-2003 01:46 AM
Re: PHP error for file functions ?
This is a serious problem so if you have installed HP Web Server Suite and are using PHP scripts better watch out.
Would be nice if HP would post a warning at their download site.
Still having a problem trying to get Apache 2, PHP and MySQL running together due to problems with missing shared libraries, see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=145650