savageanne
asked on
Uploading Windows to Unix
Hi All -
I have a tiny php app that I created in windows and am now uploading to the UNIX based webserver. Every page is getting 500-Internal Server Error. So I'm figuring there's something I don't know about this migration.
Poking around I saw a number of people recommending using wordpad rather than notepad and also uploading with ASCII rather than binary. I've tried several combinations, but still no luck.
For testing I'm using a really simple test page : <? echo("hello world") ?> so I don't see how it can be anything on the page?
This is my first go round with php, so I could very well have missed something obvious.
Thanks for the help. - A
I have a tiny php app that I created in windows and am now uploading to the UNIX based webserver. Every page is getting 500-Internal Server Error. So I'm figuring there's something I don't know about this migration.
Poking around I saw a number of people recommending using wordpad rather than notepad and also uploading with ASCII rather than binary. I've tried several combinations, but still no luck.
For testing I'm using a really simple test page : <? echo("hello world") ?> so I don't see how it can be anything on the page?
This is my first go round with php, so I could very well have missed something obvious.
Thanks for the help. - A
ASKER
Hi - thanks for the rapid response. I did the phpinfo test, no change, still a 500 error. HTML pages do load fine in case that triggers anything in your mind.
The server is a hosting provider, and I don't have access to error logs.
We have submitted a ticket thinking that php might not be configured correctly, but that seems unlikely since this is a relatively big service provider and I imagine they have a number of clients running php.
- A
The server is a hosting provider, and I don't have access to error logs.
We have submitted a ticket thinking that php might not be configured correctly, but that seems unlikely since this is a relatively big service provider and I imagine they have a number of clients running php.
- A
ASKER
Just wanted to add that I did actually figure this out, hope this helps some other newbie in the future.
Turns out there were two problems.
(1) I didn't have the path to php in my files. Added this as the very first line in the file:
#!/usr/local/bin/php
(2) Change the CHMOD on the files to 755 as instructed by my hosting provider.
Turns out there were two problems.
(1) I didn't have the path to php in my files. Added this as the very first line in the file:
#!/usr/local/bin/php
(2) Change the CHMOD on the files to 755 as instructed by my hosting provider.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It does not mater if the php is code with windows or unix.
Can you get the error-log of that server to get more infromation what is causing this 500-error?
Looks like the servr you are uploading is not cofigured properly for php
Try this as a testpage. does that output anything ??
<?php
phpinfo();