Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 02/21/08 - 01:54 AM:
#1
Hello,
I am having trouble turning on the cache system. I receive this message when I turn on guest caching:
Warning: ftp_login() expects parameter 1 to be resource, boolean given in /includes/filefunctions.php on line 107
Warning: ftp_chdir() expects parameter 1 to be resource, boolean given in /includes/filefunctions.php on line 108
Warning: ftp_site() expects parameter 1 to be resource, boolean given in /includes/filefunctions.php on line 158
So this looks like a FTP issue I think. I double-checked my ftp login info. Cache folder is set to 777. I am on a shared host running PHP 5 with FTP support enabled. Is there anything else I should be checking?
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 02/23/08 - 05:26 AM:
#3
The host misunderstands, it's a script-specific cache and not a PHP cache. It's not a hosting issue, except to find out whether you need 777 or 755 permissions.
If the cache directory is already 777/755 (whichever is needed on the host) then FTP shouldn't be getting involved. The FTP warnings suggest that the connection is somehow being lost or not created. To know why I'd have to be able to trace it step by step, but I can't reproduce on my servers or desktop, would have to access yours or that of someone else who can recreate the message.
At any rate, one thing you can ask your host to do is use suExec so that FTP is unnecessary.
Usergroup: Customer
Joined: Feb 18, 2008
Total Topics: 7
Total Posts: 29
Posted 02/27/08 - 01:08 PM:
#4
Thanks for your help so far Paul.
I removed the server FTP login information from the System Configuration panel, and that supressed the error message I was receiving. My server permissions appear not to allow the script to chmod any files/directories, so I also had to manually chmod 666 the cache-generated files. The cache seems to be working fine now, thanks.