473,244 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,244 software developers and data experts.

Transferring web hosts - php/mysql application

I have an application that is written in php/mysql on a Linux platform and
need to transfer hosts. This is a session based application and I don't
know a lot about php/Linux/mysql, but can get by. I know windows/asp, etc.
much more extensively. So, can I just move the whole thing over to a
Windows server, upload the mysql backup database and change the settings for
the db connection and have it work? Is there anything that would prevent
this from transitioning smoothly? If so, if I stayed with a Linux platform,
would the transition be this easy or would I have coding changes with this
as well.

I need to tell the new host which platform today and I would rather use
windows, but if there are going to be too many coding changes on Windows,
then I'll leave it on Linux, but if there is just as much work on Linux,
then I prefer to stick with Windows.

Thanks!
Jul 17 '05 #1
3 1893
Abby,
I have an application that is written in php/mysql on a Linux platform and
need to transfer hosts. This is a session based application and I don't
know a lot about php/Linux/mysql, but can get by. I know windows/asp, etc.
much more extensively. So, can I just move the whole thing over to a
Windows server, upload the mysql backup database and change the settings for
the db connection and have it work? Is there anything that would prevent
this from transitioning smoothly? If so, if I stayed with a Linux platform,
would the transition be this easy or would I have coding changes with this
as well.

I need to tell the new host which platform today and I would rather use
windows, but if there are going to be too many coding changes on Windows,
then I'll leave it on Linux, but if there is just as much work on Linux,
then I prefer to stick with Windows.


First I would like to say that most of the time PHP applications will
move over pretty quickly. Sometimes when switching platforms, you may
experience problems because sometimes there are specific items that use
linux commands via exec.

Also you may want to note what extensions you are currently using and
what you need to make sure that the windows server has it. On another
note PHP sometimes does not work very well on windows (it can be a pain
to setup and stabilize). If the host is doing that for you then you
need not to worry about that.

I would say to stick with a LAMP box instead of a WIMP or WAMP box. But
that is preference.

Mike
Jul 17 '05 #2
Thanks, I tried to run it on my local maching which i've tried WIMP and
WAMP...both are looking for the variables to be defined and the sessions
don't work. I didn't write this application obviously and am cleaning up
someone else's mess. So - do you know if this session and variable problem
will carry over to Linux? Is this something that is possible configured at
the server level?

"Mike Willbanks" <pe****@gmail.com> wrote in message
news:wI*******************@fe04.lga...
Abby,
I have an application that is written in php/mysql on a Linux platform
and
need to transfer hosts. This is a session based application and I don't
know a lot about php/Linux/mysql, but can get by. I know windows/asp,
etc.
much more extensively. So, can I just move the whole thing over to a
Windows server, upload the mysql backup database and change the settings
for
the db connection and have it work? Is there anything that would prevent
this from transitioning smoothly? If so, if I stayed with a Linux
platform,
would the transition be this easy or would I have coding changes with
this
as well.

I need to tell the new host which platform today and I would rather use
windows, but if there are going to be too many coding changes on Windows,
then I'll leave it on Linux, but if there is just as much work on Linux,
then I prefer to stick with Windows.


First I would like to say that most of the time PHP applications will move
over pretty quickly. Sometimes when switching platforms, you may
experience problems because sometimes there are specific items that use
linux commands via exec.

Also you may want to note what extensions you are currently using and what
you need to make sure that the windows server has it. On another note PHP
sometimes does not work very well on windows (it can be a pain to setup
and stabilize). If the host is doing that for you then you need not to
worry about that.

I would say to stick with a LAMP box instead of a WIMP or WAMP box. But
that is preference.

Mike

Jul 17 '05 #3
Abby,
Thanks, I tried to run it on my local maching which i've tried WIMP and
WAMP...both are looking for the variables to be defined and the sessions
don't work. I didn't write this application obviously and am cleaning up
someone else's mess. So - do you know if this session and variable problem
will carry over to Linux? Is this something that is possible configured at
the server level?


Most likely if you are having a session problem with transferring over
the session storage area is not defined correctly in the php.ini.

For linux it is normally /tmp, so for windows you will probably need to
switch that to something like C:\WINNT\Temp or something that you feel
comfortable with the webserver writing tmp files to.

Also for your variables it might be using register_globals, you should
only turn those on with a .htaccess file for that specific application
as most php programmers introduce security issues by using them.

Mike
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: aa | last post by:
If I have an MySQL database on my local w2k, how do I transfer it onto my ISP server? The ISP gave me the name of an empty MySQL database they set up for me, the username and the password with no...
0
by: asif mahmood | last post by:
hi, this is my first question on list, well i m using MySQL 4.1 and i m new user of MySQL.i want to tranfer my database from one computer to other. i want to shift the whole database to other...
0
by: ampeloso | last post by:
Hello, Can someone answer a few questions: Some background: Host table has 0 entries User table has: +-----------+------+ | Host | User | +-----------+------+
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
7
by: Bob | last post by:
I'm using PHP 5.1.1 with Apache 2.0.54 and several virtual hosts. PHP is installed as a module. I've created a very simple test page containing <?php phpinfo(); ?> and placed it at the doc root...
6
by: Martin Neumann | last post by:
Hi there - I'm a fairly newbie in regards with MySQL but I have encountered a problem and I'm not sure where to go with it. I'm transferring my WP blogs over to a new host and I've so far...
2
by: garther | last post by:
Hi I'm trying to get something like this to work: Application calculates data and stores them in local SQL server. Once a week this data needs to copied to DVD. Then I need second application...
4
by: DanWeaver | last post by:
I am dumbfounded at the apparent lack of an obvious mechanism that prevents finding a shared host being the absolute nightmare it is: due to the nature of the business (ie techies who know about...
3
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.