Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/17/08 - 08:32 AM:
#1
I did a manual upgrade to this version from (I think) 4.1.23 to 4.1.25 - Go to do an auto upgrade to 4.1.26 but get error messages. This is a sample:
Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/homeandg/public_html/includes/filefunctions.php on line 106
Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/homeandg/public_html/includes/filefunctions.php on line 107
Warning: ftp_chdir() expects parameter 1 to be resource, boolean given in /home/homeandg/public_html/includes/filefunctions.php on line 108
All errors (more of similar) in attached file.
As far as I can see all the directories and files are correctly chmod, but would be grateful if you could confirm which directories should be 777 for this version, and which files 666.
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 12:09 AM:
#8
Paul wrote: Save this as test.php:
<?php $server = "ftp.yourdomain.com"; $c = ftp_connect ($server) or die("Cannot connect to $server"); ?>
Changing yourdomain.com to your domain name. Visit test.php. Does it still show the warning? If so, show it to liquidweb.
Yes, it did still show the warning: Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/homeandg/public_html/test.php on line 3 Cannot connect to ftp.homeandgardenworld.co.uk
They have now installed suPHP for me, so now I follow your instructions and run those commands under ssh, which will be interesting as I have never used ssh before <G>
[EDIT] Just on the very first line command I get Operation not permitted !
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 11:55 PM:
#12
OK, I found the problem and have to admit it was me! When moving the sites over for some reason I didn't do the dns correctly on this domain. After doing about 40 sites I suppose I was punch drunk!
Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/20/08 - 08:26 PM:
#13
40 sites? I find it hard enough to keep track of a half dozen.
Operation not permitted means you're not logged in as root. Only root can change the ownership of others' files. Check if things are working first though, they may have done this for you.
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/20/08 - 09:43 PM:
#14
Paul wrote: 40 sites? I find it hard enough to keep track of a half dozen.
Operation not permitted means you're not logged in as root. Only root can change the ownership of others' files. Check if things are working first though, they may have done this for you.
Actually I have 47 accounts on my server at the moment <G> Moving them all over to LW was a nightmare, especially as there were problems because they hadn't set things up correctly and then I had hackers trying to get in and cause probs! But all is great now.
I changed the nameservers on homeandgarden and once propagated it worked ok and upgraded. They have put suPHP on my server now and I shall go over to that way of upgrading (will try it out when I get a minute!) as I use ftp for my templates and language. Plus I have to admit I have not liked having my domain password etc in the admin.