Note that there are some explanatory texts on larger screens.

plurals
  1. POConnecting app with SQL server on Ubuntu server
    primarykey
    data
    text
    <p>Maybe I should ask this question in the Ubuntu section instead, but don't really know where the problem is so I'm trying here first.</p> <p>I'm trying to learn how to use SQL database through a webserver, and I've used this tutorial: <a href="http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/" rel="nofollow">Link</a></p> <p>I've done everything like in the tutorial, but I'm using Ubuntu server, not windows.</p> <p>The problem is that the app is not able to display or create any entries from/in the database. I use PHPMyAdmin to manage the SQL database.</p> <p><strong>1. So my main question: Is there any difference between WAMP/LAMP? Or can I use the same approach?</strong></p> <p>If the answer is YES, then I have some more questions:</p> <ol> <li>I'm using the default location for my server /var/www/ and have put all the .php files there? Correct?</li> <li>When he makes the db_config.php he uses "localhost" but I want to use my ip instead, do I just have to change "localhost" to "81.xxx.xxx.xxx" or do I need to add something more?</li> </ol> <p>As you can see I'm not really sure where the problem is, if it's the compability between the tutorial and the LAMP server instead of WAMP, or if it's the config of the connection, something in the php codes, the placement of the php files or whatever?</p> <p>It's so frustrating because I don't know where to start.</p> <p>Thank you in advance!</p> <p><strong>EDIT:</strong> I can access the php files on the server so no problem there. This is from my access.log file when trying to list all items: <code>[09/Oct/2013:16:56:07 +0200] "GET /var/www/get_all_products.php? HTTP/1.1" 404 450 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)"</code> This is when I try to create a new product: <code>[09/Oct/2013:19:26:14 +0200] "POST /var/www/create_product.php HTTP/1.1" 404 448 "-" "Apache-HttpClient/UNAVAILABLE (java 1.4)"</code></p> <p>And this if from the error.log file when trying to list all items: <code>[Wed Oct 09 17:01:51 2013] [error] [client 81.225.106.145] File does not exist: /var/www/var</code> I get the same error when trying to create a new product.</p> <p>Can you guys make anything out of this??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload