Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Uploading Windows to Unix

Posted on 2004-10-28
Medium Priority
Last Modified: 2006-11-17
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

Question by:savageanne
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 48

Expert Comment

ID: 12438617
hm php typical does not serv a internal 500 error. Typical it shows the php-source-code or a white page but not a 500 error.
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 ??

Author Comment

ID: 12438659
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

Author Comment

ID: 12644145
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:

(2) Change the CHMOD on the files to 755 as instructed by my hosting provider.

Accepted Solution

modulo earned 0 total points
ID: 12679502
PAQed with points refunded (250)

Community Support Moderator

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question