I'm stuck doing some work on an Arvixe Server, Gawd do I hate this. But I have to do it, as that's where the site is.
The site is not in the public_html/ directory. In fact, the server has no public_html/ directory. Instead it's in the httpdocs/dating/ directory. Okay, should be simple enough. Getting hit with this error though when I attempt to do the upload:
Warning: ftp_login() [function.ftp-login]: Login authentication failed in /home/xxxxxxx/public_html/dating/inc/classes/BxDolFtp.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/adultnet/public_html/dating/inc/classes/BxDolFtp.php:37) in /home/xxxxxxx/public_html/dating/inc/admin_design.inc.php on line 56
I'm ignoring the 2nd warning, as I see it having no basis for this really and concentrating on the first one. It says home/xxxxxx/public_html/dating/inc/classes/BxDolFtp.php on line 37. Wait! This directory path has no public_html/ directory yet it's saying that it's at the public_html/inc/classes/whatever is the path to the files. What in the world is going on here?
I've tried setting the upload path to:
/httpdocs/dating
/home/public_html/dating/
/home/public_html/httpdocs/dating
All give the same exact result.
inc/classes/BxDolFtp.php Lines 29-38 are as follows:
function BxDolFtp($sHost, $sLogin, $sPassword, $sPath = '/') { $this->_sHost = $sHost; $this->_sLogin = $sLogin; $this->_sPassword = $sPassword; $this->_sPath = $sPath; } function connect() { $this->_rStream = ftp_connect($this->_sHost); return ftp_login($this->_rStream, $this->_sLogin, $this->_sPassword); }
Love some suggestions for this.
|
I wish I could be of more help here, but the only thing that pops into my head is to advise your client to move to hosting that doesn't suck. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
easy way around is upload the module to folder /modules/ (via ftp) don't use the uploader in administration
|
I tried that one Prolaznik, it made absolutely no difference. Still couldn't find the item to do the install in the Admin Panel once I tried it. I know, sounds nuts, but it's a fact. |
That's weird . The servers at Arvixe must have a variety of builds. My server at Arvixe does have a public_html directory. |
Does sound nuts. Tried using the file manager in cpanel? Will it show up in the install panel after that? |
When I have dealt with Arvixe in the past, all of the accounts had a public_html directory.
That's weird . The servers at Arvixe must have a variety of builds. My server at Arvixe does have a public_html directory.
|
Have you tried going into the Cpanel file manager to see what the structure is like to help you detemine the correct path to upload? |
|
Yes Cbass, we've tried that. Not using cPanel's file manager, but coming in via FTP.
|
I only mention that as I did a google for the keywords ftp_login() [function.ftp-login] and some pages in I found some one who was having problems with a misconfigured ftp and using Cpanel file manager worked around the issue. As I recall they were able to upload but not access anything there after. I cannot find the link now.
It does seem a little odd the you have no public_html directory on the Arvixe account. As I said earlier, in my experience, all Arvixe accounts have a public_html directory as standard. Unless you or your client have managed to get Arvixe to implement an alternative config.
Yes Cbass, we've tried that. Not using cPanel's file manager, but coming in via FTP.
|
Ah my fault. You obviously have implemented it differently under "httpdocs".
I only mention that as I did a google for the keywords ftp_login() [function.ftp-login] and some pages in I found some one who was having problems with a misconfigured ftp and using Cpanel file manager worked around the issue. As I recall they were able to upload but not access anything there after. I cannot find the link now.
It does seem a little odd the you have no public_html directory on the Arvixe account. As I said earlier, in my experience, all Arvixe accounts have a public_html directory as standard. Unless you or your client have managed to get Arvixe to implement an alternative config.
Yes Cbass, we've tried that. Not using cPanel's file manager, but coming in via FTP.
|
I went through a similar nightmare once on someone elses server. I wish i could remember where it was hosted.
Standard FTP gave me nothing but permission errors.
I ending up using SSH after waiting for them to add my IP to the SSH access list.
I think i was dealing with a VPS. But i really don't remember. But i do remember FTP just did not work for me at all.
https://www.deanbassett.com |
hmmmmm try grepping for that public_html text in case it is defined some where. Log in via ssh and: > cd /home/xxxxxx/httpdocs/dating > grep -r public_html * That will do a recursive pattern search for the text public_html in all the files below the dating directory. Not sure how helpful I am really being as I am just really stabbing at ideas here. |
MD, try going into the cPanel>FTP Accounts and create a who new login with full permissions. See if you can upload using those credentials instead. I have been on a few Arvixe servers myself and always seen a public_html folder as well. Is this a dedicated server or VPS? If you can upload via standalone FTP client, maybe its a format issue as to why you cannot see the module in the module install area in the Admin Panel. For instance, I have noticed that my "add on" modules all have a request.php file in the root directory of the module. Maybe something is missing. Here is an example of the directory structure of one of my add on modules:
/public_html/modules/FolderName/ModuleName/
Inside ModuleName there is the classes, install, js, templates, and updates directory with a single request.php file. Could have something to do with it.
In the Admin Panel, if everything exists, you would see in Tools>Modules, something like this:
ModuleName 1.0.0 by FolderName
Chris
Nothing to see here |
Problem solved guys. Your not going to believe this and I feel incredibly stupid. To bad this topics to long to just delete and hide my face.
It seems the site owner gave the URL he wanted work on and the IP w/login credentials for another server that is NOT an Arvixe server. So, I was using the login credentials for one server on a completely different server, thus it would not connect. The funny part is he had the same exact sub-directory names on both servers so when I popped inot Firebug it was coming up as the correct directory path I was seeing when logged in via the FTP.
Finally frustrated with the issue of the errors and failure to connect, I went to look at the inc/header.inc.php to get the correct file path it was calling for the site. Uh-oh. No inc/header.inc.php WTH? How can that be? The server I was on had dolphin files that were NOT installed on it, thus I realized I was on the wrong server.
Contacted the site owner and he admitted the IP I was connecting to the server with and login credentials were 1/2 right. Correct password, wrong username and wrong IP. AAAAAAUUUUUUGGGGGGHHHHHH!!!!! He gives me an IP, I run it one my servers Network Tools to verify it's the correct one for the domain and suddenly we're in business.
I created the proper directory in the modules/directory per the module instructions, hopped into the Admin -> Tools -> Modules and did the upload. It uploaded but the module wouldn't show up. I went ahead and cleared the cache, suddenly the module showed up "uninstalled". Did the install selection and it was done.
Now this is a very easy way to upgrade the sites. Upload the package and then click to install it. Yes, we still had a little source code to alter (1 string) and it was done.
Sorry for thinking this was an Arvixe server issue. It turns out, the Arvixe server did take the module perfectly fine once we had the correct credentials for it, and yes it has a public_html/ directory as it should. Thanks all for all the help and go ahead, bring on the jokes now. LOL
**Note: The warning it throws and I posted on the top of this thread are for incorrect login credentials it appears. Wasn't that a fun way to find that out.
|
OMG, we can bring on the Jokes.. Hmmm....Where do I start??
There was a blonde lady driving down a country road when she came up on this pasture. Out in the pasture she noticed another blonde headed lady in the middle of the pasture, in a row boat, just rowing like no tomorrow.
She stopped the car and got out and walked to the fence and screamed "Hey".. The lady didn't respond, so again she screamed "Hey you, its people like you that give blondes a bad name... And If I could swim, I would come out there and beat your a$$!"
Lord I apologize...
Nothing to see here |
OMG, we can bring on the Jokes.. Hmmm....Where do I start??
There was a blonde lady driving down a country road when she came up on this pasture. Out in the pasture she noticed another blonde headed lady in the middle of the pasture, in a row boat, just rowing like no tomorrow.
She stopped the car and got out and walked to the fence and screamed "Hey".. The lady didn't respond, so again she screamed "Hey you, its people like you that give blondes a bad name... And If I could swim, I would come out there and beat your a$$!"
Lord I apologize...
I enjoyed it.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
ROFLMAO! That is exactly how I feel right now HL. |
ROFLMAO! That is exactly how I feel right now HL.
Yea, damn copy machines.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |