Hebergement change of php5 php4


#1

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


#2
  • 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!

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

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


#4

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

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


#6

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

[color=#0000CC]Users > Manage Users[/color]

  • Click Edit next to the user’s name.

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

  • Click the [color=#0000CC]Save Changes[/color] button.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#7

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 ?


#8

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#9

Hello,

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


#10

Edit install.sh :

Change line:
[color=#CC0000]PHP=“php-4.4.7”[/color]

To this:
[color=#0000CC]PHP=“php-4.4.9”[/color]

Change line:
[color=#CC0000]wget -c http://sunsite.bilkent.edu.tr/infosystems/phpweb/distributions/${PHP}.tar.gz[/color]

To this:
[color=#0000CC]wget -c http://us3.php.net/get/${PHP}.tar.gz/from/us2.php.net/mirror[/color]

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#11

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


#12

You’re welcome Richard :slight_smile:

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#13

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


#14

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#15

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.php


#16

It might be faster if I take a look.

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost