Page 1 of 1

can't access my own app

Posted: Mon Feb 20, 2012 5:22 pm
by chuvk
I have been using Amahi since fedora 12 and amahi 5 and have always been able to figure out most problems using the wiki and forums, but now I am stumpted.

A little background; I have Fedora 14 and amahi 6 installed. I believe all amahi updates are automatic as it runs 24/7.

I have several amahi apps installed for example; ajaxexplorer, phpmyadmin, lininfo and webcalendar. They all work without problem. I have also installed several other apps per the wiki and they work without problem, for example simple invoices.

The problem; I have been running a local website on ubuntu 10.04 LTS for sometime. Last week I decided to move it to Amahi and cease the use of Ubuntu. Following the wiki and using the web-apps link in the hda, I created the website folder. I used phpmyadmin to create the mysql database and then import the back up from Ubuntu. I then copied the website files to the html dir in the application folder (/var/hda/web-apps/english/html ).

When I attempt to access the site by browser all I get is a blank page. I have tried using; http//english,
xxxp://english/index.php, xxxp://english.home.com, xxxp:192.168.0.202/english, xxxp://hda/english and xxxp://english.hda.

No success, all I get is a blank page in FF and when I view sources it is also blank. Please help

Note I tried to wrap the http links in code tags, but could not so I replaced htt with xxx.

chuvk

Re: can't access my own app

Posted: Mon Feb 20, 2012 8:14 pm
by bigfoot65
Two things to check. First, make sure all files in the english/html directory are owned by apache:users. Second, have you tried any other browsers?

Re: can't access my own app

Posted: Mon Feb 20, 2012 11:33 pm
by chuvk
Thanks for your response.

I have checked IE and Google Chrome. IE shows 500 server error and google chrome can't find.

All files and folders are owner apache-APACHE, group users, file and folder permissions are 775.

It's just a basic website that dynamically imputs info in a mysql database.

Thanks for your help.
Chuvk

Re: can't access my own app

Posted: Tue Feb 21, 2012 5:48 am
by bigfoot65
Is the main index file .php or .html? I would suggest you check english/logs folder for clues. There are two log files there, one for access and one for errors. There might be something there that will help.

Re: can't access my own app

Posted: Tue Feb 21, 2012 6:29 am
by chuvk
My main page is index.php, there are no html pages in the site. I have attached both log files as txt files.

Thank you

Chuvk

Re: can't access my own app

Posted: Tue Feb 21, 2012 8:33 am
by bigfoot65
Ok, looks like your issue is in the index.php file. Your connection the the MySQL database is in error.
[Tue Feb 21 21:38:58 2012] [error] [client 192.168.0.51] PHP Warning: mysql_pconnect(): Access denied for user 'admin'@'localhost' (using password: YES) in /var/hda/web-apps/english/html/Connections/eng_database.php on line 9
Once you can get that sorted out, it should work.

Re: can't access my own app

Posted: Tue Feb 21, 2012 5:36 pm
by chuvk
Thank you so much, something so simple and I missed it.

Set admin permissions to localhost from % and it was good.

Chuvk

Re: can't access my own app

Posted: Tue Feb 21, 2012 6:07 pm
by bigfoot65
Awesome. Glad I could help.