Hebergement change of php5 php4

Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-13 10:05:00

Hello,

First of all please excuse my bad English, I use a translator.

My problem is the following one. I put by mistake my hebergement in mode(fashion) php5 and I would at the moment like to put back(to hand) him(it) in mode(fashion) PHP4.

The help(assistant) of Dreamhost gave me the following page:

http://wiki.dreamhost.com/Installing_PHP4

I do not know what to make ... where is my problem ?

1 °/I use FileZilla on the place(square) of SSH, is it indeed ?
2 °/I make a file " installscript / "
3 °/In this file I put a file .htaccess with the script or I replaced ***YOUR DOMAIN NAME *** by http: // www.ac2n.be

And after do I have to make? Or where is my error ?

Thank you in advance for your helps

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-13 10:17:00

- The user needs Shell Access (set it in Panel)

- Paste the script into Notepad and replace
***YOUR DOMAIN NAME*** with www.ac2n.be

- Save the file as install.txt and upload it to your server.

- Login to Shell and type:

mv install.txt install.sh

chmod +x install.sh

./install.sh


Good luck!




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-14 04:23:00

Hello and thank you for your assistant so fast.

I tried to follow your indication literally, but I have for a small problem...

I created well the file which I placed on my server :

http://www.ac2n.be/install.txt

If I understood well, it is necessary to replace " install.txt " by " install.sh "?

Then to put the chmod in 777 ?

And finally, I have to go on this page with my sailor(browser)...

Now, me cross that I missed something that ? I do not know.

Saddened for my ignorance and my English

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-14 13:18:00

Correct, except you must login to shell to run the script (./install.sh)

I use PuTTy to login to shell at Dreamhost. You can get it here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-15 09:30:00

Hello,

I have another problem.

When I bring in my data of access to the server, he says to me:

" Connection closed by remote host

And

This account allows only ftp connections "

http://www.ac2n.be/problem/index.php

What do I have to make?

Still thank you for your patience

Edited by AC2N on 01/15/09 09:39 AM (server time).

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-15 11:38:00

You need to make sure the user has Shell Access. You can set that in Panel.


Users > Manage Users

- Click Edit next to the user's name.

- User Account Type: Shell account - allows SFTP/FTP plus ssh access.

- Click the Save Changes button.




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-16 10:30:00

Hello,

Here we are, I made as you said to me and apparement it is good.

But, I have for the impression(printing) that that did not work. Look :

http://www.ac2n.be/problem/index.php#hummer

When think you ?

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-16 11:55:00

Edit your script to wget php from this link:

http://us3.php.net/get/php-4.4.9.tar.gz/from/us2.php.net/mirror




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-16 13:03:00

Hello,

I have just downloaded it... that have to I make with?

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-16 15:03:00

Edit install.sh :


Change line:
PHP="php-4.4.7"

To this:
PHP="php-4.4.9"


Change line:
wget -c http://sunsite.bilkent.edu.tr/infosystems/phpweb/distributions/${PHP}.tar.gz

To this:
wget -c http://us3.php.net/get/${PHP}.tar.gz/from/us2.php.net/mirror




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-16 19:02:00

Hello,

Apparement that walked(worked), but nothing indicates it to me in my manager of dreamhost. It must be normal???

Without your assistant, I would have arrived there never

I thank you for your help and your patience a lot.

Friendly yours

Richard

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-18 00:28:00

You're welcome Richard smile




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-20 03:02:00

Hello,

Still I:-(

Made, I claimed too fast victory the hebergement is always in PHP5

I tried to boost(relaunch) PUTTY but he(it) ecrit me " denied Permission "

I do not know even any more what to make

Help me please

P.S. : In php info he says: PHP version 5.2.6 for ac2n.be Edited by AC2N on 01/20/09 03:13 AM (server time).

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-20 03:52:00

Use FTP, make .htaccess file in ac2n.net folder:

AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

^ This will be in ac2n.net/.htaccess




How To Install PHP.INI / ionCube on DreamHost

Re: Hebergement change of php5 php4

Posted by: AC2N
Posted on: 2009-01-20 04:10:00

I have now the page 404

Message : The requested URL /cgi-bin/phpcgi/index.php was not found on this server

I put back(handed) htaccess as he(it) was.

Have to I put back it ?

Look:

Http://www.ac2n.be/homa/phpinfo.phpEdited by AC2N on 01/20/09 04:37 AM (server time).

Re: Hebergement change of php5 php4

Posted by: sXi
Posted on: 2009-01-20 04:38:00

It might be faster if I take a look.

I will send you a PM (private message) on this board.




How To Install PHP.INI / ionCube on DreamHost

Tags: htaccessmistakedomain name