LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue with PHP website hosted in Linux instance? (https://www.linuxquestions.org/questions/linux-newbie-8/issue-with-php-website-hosted-in-linux-instance-4175498064/)

Noctis0791 03-13-2014 10:31 AM

Issue with PHP website hosted in Linux instance?
 
Hi Guys,

We are starting to host our PHP website application in Amazon Web Services. The PHP website was originally hosted in IIS7 on our own server but we moved it now on an Amazon Linux instance. Okay, so the website is hosted now and its database is already linked to it. However, we are having this error when logging in to the website (see image). But when we are using this http://54.193.xxx.xxx/tile/index.php...martin we are able to get in but most of the images don't load properly. Any idea?

I was able to speak with our developer and according to him we are using URL Rewrite rules in IIS before we move this site over to AWS. Do you think it has something to do with this? Please advise.

Thank You!

Arnel

esso82 03-13-2014 12:18 PM

I reckon your developer is right, did you copy contents of your .htaccess file over to your new hosting?

Noctis0791 03-14-2014 11:48 AM

Hi,

Yes, I copied all the files over to the hosting server.

Thanks!

Arnel

Guttorm 03-14-2014 02:36 PM

Hi

IIS7 doesn't use .htaccess files. You will have to translate the rewrite rules from web.config to Apache's format. It's not easy. If you can find the web.config file on the IIS7 server, you could post it here. Maybe in the server section in this forum?

Here is one with the same problem:

http://stackoverflow.com/questions/2...ig-to-htaccess

Noctis0791 03-14-2014 03:23 PM

Hi Guttorm,

I'm not so sure but I saw we have several .htaccess files in the website's folder (6 in total). Okay thanks, I will post it in the server section.

Thanks,

Arnel

Guttorm 03-14-2014 03:35 PM

Ok. If you have the .htaccess files, the developer probably made the rules in both. So you don't need to translate them.

It could simply be it's configured to not read them. Here's some info on how to configure Apache:

http://stackoverflow.com/questions/1...working-apache

Noctis0791 03-17-2014 07:57 AM

Hi Guttorm,

You are right. It looks to be the .htaccess file that was being ignored. You are awesome! :)

Thanks again!

Arnel


All times are GMT -5. The time now is 11:40 PM.