Migration Apache PHP3 > PHP4

This is a discussion on Migration Apache PHP3 > PHP4 within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi! We have two machines. One with PHP3 and another with PHP4. Let's assume we have a Directory Structure ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2004
Peter Meiser
 
Posts: n/a
Default Migration Apache PHP3 > PHP4

Hi!

We have two machines. One with PHP3 and another with PHP4.

Let's assume we have a Directory Structure like this:

/dira
/dira/dirb

I'm redirecting dirb to the other Apache-Machine with PHP4.
Everything works fine - even localhost SQL-Access.

But now we discovered that there are old php3 files in dirb that access
the old sql installation on the machine with php3.

How can we do?

Thanks in advance.

Peter.
  #2 (permalink)  
Old 06-30-2004
Markus Gronotte
 
Posts: n/a
Default Re: Migration Apache PHP3 > PHP4


"Peter Meiser"

> But now we discovered that there are old php3 files in dirb that access
> the old sql installation on the machine with php3.


Verstehe ich das richtig? Der PC mit php4 will auf den anderen Rechner
zugreifen? Evtl. hast du irgendwo einen falschen Server eingetragen.
Bei dem was funktioniert hast du offensichtlich localhost oder 127.0.0.1
drinstehen und in den Sachen, die Nicht Funktionieren stattdessen
halt den Namen des alten PCs. Dieser war dann ja vorher localhost, wenn
ich dein Problem jetzt richtig verstanden habe.


English by Google: "Do I understand that correctly? The PC with php4 wants
to access the other computer? Possibly you registered a wrong server
somewhere. Dei which you functioned obviously local host or 127,0,0,1
and in the things the not functioning instead stop the name of the old
PC of these was before local host if I had understood your problem
correctly now."


Gruß,

Markus - http://gronoworx.dyndns.org


  #3 (permalink)  
Old 06-30-2004
Peter Meiser
 
Posts: n/a
Default Re: Migration Apache PHP3 > PHP4

Markus Gronotte schrieb:
> "Peter Meiser"
>
>
>>But now we discovered that there are old php3 files in dirb that access
>>the old sql installation on the machine with php3.

>
>
> Verstehe ich das richtig? Der PC mit php4 will auf den anderen Rechner
> zugreifen? Evtl. hast du irgendwo einen falschen Server eingetragen.
> Bei dem was funktioniert hast du offensichtlich localhost oder 127.0.0.1
> drinstehen und in den Sachen, die Nicht Funktionieren stattdessen
> halt den Namen des alten PCs. Dieser war dann ja vorher localhost, wenn
> ich dein Problem jetzt richtig verstanden habe.


Nein. Server A ist ziemlich alt und hat nur PHP3 und eine veraltete SQL
Version. Jetzt kam von Anwendern der Wunsch nach PHP4. Dazu habe ich,
weil das schneller geht, ein Debian Linux installiert, mit PHP4, SQL4
und natürlich Apache.

Der Webtree von Server A wird via NFS zum Server B exportiert. Auf
Server A ist ein Redirect in der Art: "Redirect /dira/dirb
http://www2....de/dira/dirb" eingetragen. Damit können die User
weiterhin auf Server A Ihre Files uploaden, obwohl die Bearbeitung der
PHP4 Seiten + SQL auf Server B stattfindet.

Problematisch sind hierbei halt die PHP3 Files, die im gleichen Ordner
aufgetaucht sind.

Es wird jetzt natürlich nach und nach auf PHP4 migriert, das geht aber
nicht so schnell.

Es gibt also ein Verzeichnis, indem sowohl PHP4 als auch PHP3 Dateien
liegen.

PHP3 wird gar nicht mehr weiterentwickelt, oder?

English also by Google:

No. Server A is rather old and has only PHP3 and an outdated SQL
version. Now the desire for PHP4. came to it I, because faster goes, a
Debian Linux installed, with PHP4, SQL4 and naturally Apache from users.
The Webtree of server A is exported via NFS to the server B. On
servers A is a Redirect in the kind: "Redirect/dira/dirb
http://www2....de/dira/dirb" registered. Thus those can uploaden user
further on server A your files, although the treatment of the PHP4 sides
takes place + SQL on server B. Problematic here stop is the PHP3 files,
which emerged in the same file. One migrates now naturally gradually on
PHP4, does not go however not so fast. There is thus a listing, as both
PHP4 and PHP3 files lie. PHP3 is not no more developed further, or?

Thanks,

PM
  #4 (permalink)  
Old 06-30-2004
Peter Meiser
 
Posts: n/a
Default Re: Migration Apache PHP3 > PHP4

Sorry for my horrible explanation.

We only had one Apache Server on Machine A running. Apache is quite old
and only running with PHP3 and an older MySQL Version.

Some users that had shared Websites - they have one folder where they
put their stuff in. This has been set up many years ago before my time.

Now some users claimed to have PHP4 and a today version of MySQL.

Everything had to go very fast - and all old stuff should have still worked.

So I decided to set up a Linux machine with latest Apache 1.3 Version,
PHP4, and MySQL 4.

I exported the folder the users shared via read-only NFS - so the users
didn't have to care about the new structure.

What I didn't know was that there were some PHP3 files exactly in the
folder that has been exported (NFS) and redirected to the new (www2)
webhost.

Now if someone connects to www.example.org/xy/folder a redirect to
www2.example.org occurs - where PHP4 and SQL is running - but no PHP3.

Actually I'm looking for a solution or trick how I can get these PHP3
Files in the same folder to work.

I don't know how to do this.

One solution would be to migrate the files to another folder which is
not redirected, but there's also an index file and lots of web
ressources link to exactly that folder.

The users will migrate the Files to PHP4 but a solution till this is
finished would be appreciated.

Thanks.

PM
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0