LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2014, 11:31 AM   #1
Noctis0791
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Rep: Reputation: Disabled
Question 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
 
Old 03-13-2014, 01:18 PM   #2
esso82
Member
 
Registered: Aug 2013
Location: Plymouth, UK
Distribution: SolydK
Posts: 45

Rep: Reputation: Disabled
I reckon your developer is right, did you copy contents of your .htaccess file over to your new hosting?
 
Old 03-14-2014, 12:48 PM   #3
Noctis0791
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi,

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

Thanks!

Arnel
 
Old 03-14-2014, 03:36 PM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,263

Rep: Reputation: 297Reputation: 297Reputation: 297
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
 
Old 03-14-2014, 04:23 PM   #5
Noctis0791
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-14-2014, 04:35 PM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,263

Rep: Reputation: 297Reputation: 297Reputation: 297
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
 
1 members found this post helpful.
Old 03-17-2014, 08:57 AM   #7
Noctis0791
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

Hi Guttorm,

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

Thanks again!

Arnel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant access my hosted website nickn0ck123 Linux - Server 26 12-17-2013 02:27 AM
Issue with website hosted on Virtual Redhat Server. geekgadget Linux - Virtualization and Cloud 1 12-11-2010 10:11 AM
my website hosted from home pmarian Linux - Newbie 9 11-13-2010 02:08 PM
LXer: 10 Things You Can Do To Make Your Linux Hosted Website More Secure LXer Syndicated Linux News 0 08-14-2010 09:50 AM
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 01:11 AM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration