HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


FTP Directory problem.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#37301 (In Topic #8415)

Non-joined user

Nothing seems to work at this particular part.

I haven't received my email yet for the activation so I figured I might as well use  the guest function :$

My problem is that nothing seems to work when I need to enter my FTP Directory for the OcPortal settings.
I've send some emails to my web hosting provider and they told me what I filled in was correct and so here I am...

At first I tried the fast installation but after being unable to get passed the FTP Directory part I figured I might as well go for the manual one but sadly I soon figured out that needed the ftp directory settings as well during the Setup Wizard when the installation was complete.

My current hosting provider is: Servage
My domain is: www.theicecave.net
OcPortal is in: www.theicecave.net/hq/
Ftp directory is: /www/hq/

Now I've tried everything I could possibly think of.
The combinations I've tried are:

/www/hq/
/theicecave.net/www/hq/
/hq/
/
ftp.servage.net/theicecave.net/www/hq/
ftp.servage.net/www/hq/
And some other combinations but the first or 2nd should have worked.

My web host tells me that /www/hq/ should be the right one but that doesn't seem the work.
If I go in the FTP directory settings (step 10) and disable Need to connect through FTP.
Then I get this error: Cannot write to /mounted-storage/home81c/sub009/sc45353-SCTC/www/hq/themes/The_website_of_defaultness/. File permissions for it have not been set correctly.
So I figured it might be /mounted-storage/home81c/sub009/sc45353-SCTC/www/hq/ or /mounted-storage/home81c/sub009/sc45353-SCTC/theicecave.net/www/hq/ however that didn't seem to work either.

I've used OcPortal for some time now on my previous Web Host which was rather slow but worked fine, I've got a lot of forum posts etc on it which I'd rather not lose by switching to something else then OcPortal (which has always been great for me so far)
Some help would be extremely appreciated as I've currently got my balls to the walls.

Greetings,

NedStar
Back to the top
 
Posted
Rating:
#37302
Avatar

Hi,

Thanks for giving us all this detail. Could you also let us know the error message you get when you put in the first path you have?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37304

Non-joined user

Sure, the error message is:

The FTP directory that was given is not valid; you likely entered the wrong FTP path. The FTP directory must be the same as that in which the installer is located. You may be able to find the path by looking at the path displayed in your FTP software (or the path component of the FTP URL if you uploaded using a web browser).


Furthermore I'm using version 3.2.7
Back to the top
 
Posted
Rating:
#37305
Avatar

Ok.

So first let's just check the message isn't true. Please try using this tool:
ocPortal - where Content Management meets Web 2.0
It'll show your FTP path structure.
If the paths match up to what you're using, we know something else is wrong.

So assuming something else is wrong, please edit install.php by changing all instances of '@chdir' to 'chdir'. This will cause PHP to put out it's full messages, just in case there is something unusual going on that ocPortal hasn't detected directly.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37306

Non-joined user

I assume you mean use the Copy installer to web-hosting option ?

The tool does indeed show my path structure /www/hq/
The FTP manager on my web host and my own FTP program verifies this same structure.

I've let it upload the ocPortal installation again and gave it a try with the edited install.php.
However there was only one instance of '@chdir' on line 6138.
I'm not sure if I was suppose to see anything else besides the same error I've gotten before.



Thanks for the help so far.

Greetings NedStar ( still haven't received that activation email  :$ )
Back to the top
 
Posted
Rating:
#37310
Avatar

Sometimes the mails get lost, for whatever reasons, so I've manually activated your account :).

I can now say what's happening (that '(2)' bit on the message in that screenshot actually gives a clue)…

Your PHP version on your server has a buggy FTP file listing command. The installer checks the directory is where the installer is, by checking the file listing, but it fails to find it in there because the listing is wrongly interpreting as corrupt.
A quick fix is to change the two lines that start:

Code

if (!in_array('install.php',$files))
to start:

Code

//if (!in_array('install.php',$files))

(this disables the directory check)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37312
Avatar

Fan in training

   First of all thanks for activating my account :)
I've tried it with the edited install.php and now a lot of errors pop up.

I've made screen shots of it cause there's a text limit on the forums and would result in a hell lot of posts :lol:

I've made about 6 screen shots and then I've cutted it of all the down as its pretty much the same error but for a different file.
If you do need anymore information besides these screen shots please let me know.

The shots itself are pretty big for a jpg (1.12 mb) I didn't resize them to keep proper readability.

Pictures: With 1 being the first and 7 the last, its cut of from 6 to 7 to go all the way to the bottom.
http://www.theicecave.net/windowerror2.jpg
Picture 1
Picture 2
Picture 3
Picture 4
Picture 5
Picture 6
Picture 7


What puzzles me most is that it points to this directory /mounted-storage/home81c/sub009/sc45353-SCTC/www/portal/inst
all.php I also tried this path before but that doesn't work at all and gives me:



Thanks in advance.






Last edit: by NedStar

Back to the top
 
Posted
Rating:
#37313
Avatar

Hi,

I'm afraid we've reached a dead end as for working around this problem with changes to ocPortal. This is a further problem with the server's PHP FTP support not working properly.
Basically you see the PHP ftp_mkdir function returning a message "Opening ASCII mode data connection for file list". What is actually happening there is that PHP is interpreting a status message sent by the FTP server as an error message, relaying it out as one, and then failing to proceed further.

The only resolution here is to get PHP upgraded on the server. I'd be interested to know what version it is actually running, but this is a bug in PHP, rather than specifically a compatibility issue.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37320
Avatar

Fan in training

PHP Version 5.2.3 and Version 4.4.2
I'll see if this might be of some use for my web host to fix this problem in the future.

Thanks for the great support, I really appreciate it.

Back to the top
 
Posted
Rating:
#37353
Avatar

Hi,

I should have mentioned it is possible to get ocPortal to work without FTP support on some servers. You'd need to give 777 permissions on the theme folder, and on the main folder ocPortal is installed to. When an abstract file manager screen comes up, you need to say you don't need FTP. This only works on server's without 'PHP safe mode'.

I am worried that you received an FTP problem on a pretty new version of PHP. If you would like me to try and see if I can find a workaround on your server, please open up a support ticket with FTP details (it's a bit of a long shot, but worth a try in my view).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: