Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Xampp server properly in ubuntu 12.10. also changed permissions of htdocs folder where my php files are stored, but when I run my project these files are not accessed.

I am using xampp for running my android application.

I am connecting xampp to my android application. php files contains database queries. url of these files are stated in my code as 10.0.2.2/file_name. but when i run my code these files are not accessed. same code is running easily in windows but i think may file permission is creating problem in ubuntu. I followed instructions provided by link forums.bizhat.com/linux-freebsd-opensource/… but still querries in php files doesn't run. can anyone please help.

Sample project link is http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/

when I run this project I get "Json parser error". it is because my code is not able to reach database querries which are written in php files (saved in htdocs of xampp).

same code is running properly in windows but i want it to run in ubuntu. so is there any way to do so ???

How can i make my php files get accessed ??

thanks in advance..

share|improve this question
1  
Please describe what is happening in detail. "Are not accessed" can mean a lot. What do you do, what do you see after you do this, what did you expect to see, did you test plain text/html files, what happened, etc etc. I'm not sure how you expect to get help with limited information like this. Please do some debugging first ;) –  Nanne Mar 20 '13 at 10:55
    
@nanne I am connecting xampp to my android application. php files contains database queries. url of these files are stated in my code as 10.0.2.2/file_name. but when i run my code these files are not accessed. same code is running easily in windows but i think may file permission is creating problem in ubuntu. I followed instructions provided by link forums.bizhat.com/linux-freebsd-opensource/… but still querries in php files doesn't run. –  ahuja007 Mar 20 '13 at 11:34
    
Please add updates to your question to the question body. Also, explain what you mean by "not accessed". what is accessed, does a plain html work, etc etc. –  Nanne Mar 20 '13 at 12:22
    
@nanne not accessed means they doesn't run. i am asking is this because of file permission or something ?? –  ahuja007 Mar 20 '13 at 12:36
    
Please dd more information to the question (not as a comment!). Please explain what does happen (404? a different page?). please explain what happens with non-php files. This is not a forum, this is a Q&A site, so the idea is a complete description in the Q, where A's can be posted. –  Nanne Mar 20 '13 at 12:42

1 Answer 1

I suggest you follow the instruction in this link here

Don't install using the LAMP stack method, instead follow the instruction below it where you have to install Apache, PHP and Mysql one by one.

With this, you will pretty much get the general idea how the directories, Mysql services and all other stuff works. Good luck!

Btw, don't forget to remove your XAMP first.

share|improve this answer
    
@AFwcxx- can't you just help me with xampp only ?? –  ahuja007 Mar 20 '13 at 12:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.