Re: Transfering Website, PHP Configuration
- From: Curtis <dyer85@xxxxxxxxx>
- Date: Wed, 17 Sep 2008 22:48:53 GMT
Daniel Trent wrote:
On Sep 17, 11:32 am, "Richard" <root@localhost> wrote:"Jerry Stuckle" <jstuck...@xxxxxxxxxxxxx> wrote in message
news:garfl2$u6u$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Daniel Trent wrote:Did you just notice the ".htaccess" word and read no further?Hey Group,This has nothing to do with PHP - it's straight Apache
I would greatly appreciate any help with the following task I'm
about
to lay out before everyone. First I'm primarily a Designer in
Flash. I
just started meddling in PHP only due to the fact that a clients
site
is written in it. I managed to get my .swf and .flv files
integrated
properly.
My client wants to transfer their site from a Linux server to
another
Linux server. Soley because they realized that they were getting
stiffed by the guy charging them $4,000 a year for 25MB of storage
and
5MB per file upload limit. Basically just a different hosting
company.
I know there are some files that have to be configured in order for
the "index.php" to work.
My problem is that I don't know what files they are nor do I know
how
to configure them. The site currently works where it is now so
there
is nothing wrong with the coding. I'm just trying to figure out
what
files,and what configurations need to be made in order to do the
switch. There are no databases for this site or complex programming
instructions. The whole site could have been written in html, dhtml
and would have performed the same way.
Is it simply just configuring the .htaccess file and a few others?
or
is there something more that I need to know?
Let me know if I'm leaving out any crucial information.
Thanks a bunch
Daniel Trent
configuration. Your new host probably has a control panel (if they
don't, I'd suggest a different host!) to help you configure your
system. I suggest you check with them on what control panel then
google for it to find the documentation.
Sure this has to do with PHP.
If its a average host, there would be nothing to change in the
webservers config, and it shuold just work.
My advice would be to just try to copy everything over and see what
happens.
Some things might cause some trouble:
- check the PHP versions on both servers.
- check security settings on both servers and compare them.
For this, you can either ask both hosting companies, or else figure it
out yourself.
Create a single text file containing this:
<?php phpinfo(); ?>
put it in the webroot, and call it in a browser.
If you post back the results for both servers here, then I am sure
people can exactly tell you what to look out for.
Good luck,
Richard
The hosting company that I'm transferring the site to does have a
control panel with just about everything supported. The tech support
guys for the hosting company are willing to help out with my issues
but are unwilling to look inside any documents to see an possible
misconfiguration s.
One possibility I thought of. Was the fact that the folder structure
was different on the original server.
Original Server:
*bin
*ht_docs
*files
*dev
*logs
New Server:
*public_html
*bin
*logs
I checked the code and nothing appears to be calling out anything
beyond the %root. So I'm not 100% sure that its a file structure
difference. About the theory of different Security Settings. How can I
check/change those settings?
I will definitely try calling out that "phpinfo" statement and see if
that has something to do with my current issues.
Thanks for all the help Guys. Its greatly appreciated.
So, did you try uploading the PHP files yet? If there are any issues
where a script tries to retrieve something that doesn't exist, the PHP
errors will tell you which directory and/or file it couldn't open.
As Richard said, since it's a hosting company, there shouldn't be a
need to get PHP configured, that's the job of the host. You can alter
some PHP settings in .htaccess or at run time.
Some things to watch out for: magic_quotes_gpc, which escapes quotes
before you can get the user input. Register globals is a security
risk, make sure your host has this disabled, if they don't, consider
changing hosts. If your client's scripts rely on magic quotes or
register globals, you should inform him of potentially serious
security risks. You did say the site was mostly static, though, right?
If this is the case, narrowing down security issues should be easier.
--
Curtis
.
- Follow-Ups:
- Re: Transfering Website, PHP Configuration
- From: Daniel Trent
- Re: Transfering Website, PHP Configuration
- References:
- Transfering Website, PHP Configuration
- From: Daniel Trent
- Re: Transfering Website, PHP Configuration
- From: Jerry Stuckle
- Re: Transfering Website, PHP Configuration
- From: Richard
- Re: Transfering Website, PHP Configuration
- From: Daniel Trent
- Transfering Website, PHP Configuration
- Prev by Date: Re: Transfering Website, PHP Configuration
- Next by Date: Re: script to check subscription
- Previous by thread: Re: Transfering Website, PHP Configuration
- Next by thread: Re: Transfering Website, PHP Configuration
- Index(es):
Relevant Pages
|