yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] etch04:
Wow...didn't expect the reply to be this long..thanks for taking time to reply.

You always work on advance stuff that some can't even imagine or understand.it's hard to believe that now we can have AndroidAMP server.all thanks to you and no thanks to us.looking forward to try it out.

Edit:

Do you think our device powerful enough to run a single WordPress site.I would like try that out.
[Sony Xperia P, U, Sola, Go] munjeni:
Yes, for example I had compiled complete web server for Dreambox DM600PVR, without problem I had installed SMF forum and it worked solid, see specification for DM600 -> http://www.dream-multimedia-tv.de/en/dm-600-pvr ...have 96mb ram, procesor 256mhz... so I think web server must be working without problem on Xperia !?
[Sony Xperia P, U, Sola, Go] etch04:
Hmmm....interesting.we'll I guess there only one way to find out...try it out on our device but I doubt we can run heavy site as our device have so little memory.
[Sony Xperia P, U, Sola, Go] akkufix:
Yes, this works on Dreambox. I have Samsung SMT with slackware, nearly same ram, but 750MHz single cpu, which runs my home satelite video server and harddisk recording. So, Sony should be work, but android system needs more memory by itself than slackware.

So, if you will go for HTC you will leave Sony section? :crying:

---------- Post added at 09:21 PM ---------- Previous post was at 09:19 PM ----------

He will use it on HTC mini
[Sony Xperia P, U, Sola, Go] munjeni:
Download link - Alpha 2:

- http://d-h.st/LAa

Changelog is: compiled Perl, new libxml and mod_php5.

Since I am unable to compile mod_php5.so (don't understand how to do it - how to compile shared lib???) I have mod_php5.a (static library). Are we able to load static library in Apache???
[Sony Xperia P, U, Sola, Go] akkufix:
Normally yes.

As the difference between shared and static is definied as follow:

And if no other program will need same library it must work. Otherwise you have to take this library also to folder with other program.

So, shared lib is able to be used "global" and work for itself (elf).

Maybe this could help you?

http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html
[Sony Xperia P, U, Sola, Go] munjeni:
Tried to load static lib in httpd.conf but apache is unable to load static lib, I have no idea how to build shared libphp5, but enabled option --enable-shared --disable-static in configure. Ideas? Why libphp5 is static than?
[Sony Xperia P, U, Sola, Go] akkufix:
Have you installed "php-apache"?

Also, try making "updatedb".
[Sony Xperia P, U, Sola, Go] munjeni:
Hi, I can not install these things like installing on Ubuntu, I compiling web things completelly. Installing these things is not possible on Android, these things can be installed only after compiling for ARM (Android). I trying to compile shared libs but seems found what caused problems :)

Problem seems was http://stackoverflow.com/questions/...ort-shared-libraries-during-cross-compilation

Will try to recompile everything because for php getting now right configuration:

Its working now with "disabled static" (--enable-shared --disable static)
[Sony Xperia P, U, Sola, Go] munjeni:
And, and? And and and... FINALY ITS WORKING!!! \o/ \o/

Test to my phone web server http://77.105.23.133/phpinfo.php

Its working like a charm :) Need to configure mysql and try to run an forum site...
[Sony Xperia P, U, Sola, Go] etch04:
Great!...I can acess your phpinfo.so is this web server running on go or HTC one mini?
[Sony Xperia P, U, Sola, Go] lalit387:
You are an angel well I don't know what it is but could not stop my self SPAMING
[Sony Xperia P, U, Sola, Go] munjeni:
On Xperia Go :D

With some fine tuning enabling/disabling apache modules server seems will be perfect. Problem maybe will be mysql but hope everything get corected. First of all need to fine tune apache and php and make startup scripts...etc.
[Sony Xperia P, U, Sola, Go] munjeni:
Thats something like web hosting service, so I can host an forum like XDA on my phone and you can access forum which is runung on my phone... etc

One more thing, you are not wrong for solding Sola! NovaThor is not good for me, I will sold my Go in one month!
[Sony Xperia P, U, Sola, Go] itachilinux:
so, you will not developing for sola or go again?

Sent from risahikari
[Sony Xperia P, U, Sola, Go] munjeni:
Nope :(
[Sony Xperia P, U, Sola, Go] akkufix:
Hehe, if you are making a forum on your phone, you could take us all in your pocket. :D

Well, i like my sola but hate this novathor, too. That's my problem, because screen is very sharp and the size of the phone is absolut well done.

But...you know which device i want to get... ;)

---------- Post added at 09:33 PM ---------- Previous post was at 09:26 PM ----------

Changing the section not means leaving xda at all.
[Sony Xperia P, U, Sola, Go] itachilinux:
if you don't developing for sola or go again, what should i do for sola?

Sent from risahikari
[Sony Xperia P, U, Sola, Go] akkufix:
Maybe watch out for a Mi-One. ;)

Ok, just joking a bit. I will keep sola as long as it is possible (and don't angers me) or someone will give me a good price.
[Sony Xperia P, U, Sola, Go] sijav:
I can't trust my eyes :eek: it's working :eek: really great job!!! How did you made it working?! Honestly I never expect it to work sooner but you've done a great job :D thanks thanks thanks \o/ \0/ \o/ \c/
[Sony Xperia P, U, Sola, Go] munjeni:
Mysql is working too :)
[Sony Xperia P, U, Sola, Go] akkufix:
You made a total new dimension to use a phone.

You may call it pocket-server. ;)

How did this idea grown up in your head? :D
[Sony Xperia P, U, Sola, Go] munjeni:
Finally everything is working, here is installed forum for test hehe http://77.105.23.133/forum
[Sony Xperia P, U, Sola, Go] akkufix:
Registered and posted. :D
[Sony Xperia P, U, Sola, Go] munjeni:
Sorry deleted, thats an preview forum only, but since today created BETA version new link is http://77.105.23.133/forum

! Will publish beta 1 soon !

Progress:

- enabled everything needed - mean gd, jpeg, libpng, freetype, fontconfig, tiff, gettext, gnu mp... new 80mb of the archive and everthing working perfectly :) There is a lot of new binaries in bin folder like new small linux system :)

See php info for more info -> http://77.105.23.133/phpinfo.php
[Sony Xperia P, U, Sola, Go] akkufix:
No problem. I just tested this forum, if things are working fine.

Small Linux system? This means you can run simultaneously two systems - android and linux? Or is it more like a VM?

I'm thinking about to run my e-mail-server (roundcube) on this apache, which works with php and sql.

Well, maybe its possible to get zoneminder work with internal cam, too?

Your work offers 1000 opportunities. :good:
[Sony Xperia P, U, Sola, Go] lalit387:
Hi saviour which android device you are thinking to buy I just bought HTC Amaze it has good hardware but very few development here :(

I love to have a device with Munjeni developed OS something bright as MIUI.

Please give a hint which device to go with (you) PM
[Sony Xperia P, U, Sola, Go] akkufix:
I think you are not wrong with your "ruby" device, because the platform (qualcomm + andreno) is "native" aosp compatible. So, you will get a good support for it and you could easily port other roms to it. As i wrote it some time before, that sony also went back to qualcomm. I will only look for qualcomm for next phone. Most other chips have problems with power-management, ram problems and other issues, because of buggy drivers and bad open-source support by now.

Sure, best may be a mi-device :D, but they only sell it in china at the moment.

Sorry, for OT...but hope i could helped a mate. :angel:
[Sony Xperia P, U, Sola, Go] lalit387:
Yeah its the time to move in China:D

Well good to hear from you man;)

Where you lost in secret mi-ssion?

Just joking :D

Master forgive us for OT:rolleyes:
[Sony Xperia P, U, Sola, Go] munjeni:
Progress:

After trying Roundcube got many things non working related to Roundcube reguirements (good thing is, thats good test for php functionalitty :)), but after 5 days playing with things got php propertly configured and compiled. Some problems allso related to the php was not able compiling with Google NDK so I installed Crystax NDK which have some needed things so compiled php with Crystax, but Crystax allso have some things uninplemented... so found some c code aroung google search and compiled them into new library caled libglob and implemented them in php, got php full working. Allso problem was compiling libncurses but got it allso compiled. After playing with Roundcube I can see I need to recompile php with IMAP support, so I need to compile c-client and recompile/configure php for IMAP support... than I will post final version of the our Web Server + full instructions for running/configuring them on Android ! Hope soon!
[Sony Xperia P, U, Sola, Go] akkufix:
Just... Great! :good:

Yes, RC is a nice test for PHP things. ;)

But, if it runs, you have a pretty good e-mailserver.
[Sony Xperia P, U, Sola, Go] sijav:
Wowwww!! Great! I can't thank you enough : crying: you've done a great job :) but a quick question can't we use init.d code to run this? Also if it's not possible a recovery script tool for unpacking and repacking kernel and ramdisk will be much great :D

I'm gonna test this after I got my Internet from isp and then I'm gonna working on recovery or some terminal tool to do that :D

Thanks again foe this it is the best news for me this week :D

Sent from my Xperia P
[Sony Xperia P, U, Sola, Go] munjeni:
I think it will not work corectly because you can not export ld library path and path !? Seems every script will reguire modifications. Beter idea is makng permanet changes in ramdisk if you like this or you going to use them daily!
[Sony Xperia P, U, Sola, Go] munjeni:
Done IMAP support into php, now web server is full complete. But, have some problems, problems is this -> http://serverfault.com/questions/12...nger-resolves-names-to-ips-when-run-in-apache need help! Functions gethostbyname, file_get_contest...etc is not working web side, but working while using php cli so I think its not php related thing, seems something related to the relover? How to solve resolver problem? Maybe need to do something with apache configuration? Or maybe to recompile apache with something?
[Sony Xperia P, U, Sola, Go] itachilinux:
try to recompile apache with some options

well... i forgot the options.

Sent from risahikari
[Sony Xperia P, U, Sola, Go] akkufix:
I would open "php.ini" and check if "allow_url_fopen" is set off.
[Sony Xperia P, U, Sola, Go] munjeni:
Strange thing is, the same php script executed trought php cli binary working perfectly, but script acessed trought a web cause gethostby name error 13 or error 0 . I have no idea ow to solve these things, thats only remaining isue. :(

Maybe there is problem with permissins because php runed trought shell is runed with root user, but since apache can not run as a root user these problems is caused by these thing?

Is there a way testing apache for dns resolutions??? Npw I have no idea what part of web server cause these fails!

Edit:

Tried various things like Enable Lokoops(off/on), Alow url fopen (off/on)... got it not working! Allso disabled ipv6 in php and allso not working :(
[Sony Xperia P, U, Sola, Go] munjeni:
Found something. Is android support ipv6?? Seems no?

Curent httpd things:

Found no suexec binary in androidserver/bin so I enabled now --with-suexec and another thing found: apr was compiled with ipv6, I disabled them now in apr so maybe we will get some progress... will try :)
[Sony Xperia P, U, Sola, Go] munjeni:
no luck :(

Error log:

Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed. errno=0 in /data/androidserver/htdocs/host.php on line 3

Warning: file_get_contents(http://www.google.com): failed to open stream: php_network_getaddresses: gethostbyname failed. errno=0 in /data/androidserver/htdocs/host.php on line 3

The same script executed trought shell is ok!

Php script:

<?php

echo file_get_contents('http://www.google.com');

echo gethostbyname('www.google.com');

?>
[Sony Xperia P, U, Sola, Go] akkufix:
Hmm, sounds like DNS problem or permission?

You run shell as root, aren't you?

Found this from another forum...
[Sony Xperia P, U, Sola, Go] munjeni:
Recompiled apache with BIG_SECURITY_HOLE flag to get option for runing apache as a root user, yes got it runing as a root user but problem still exist :(

So definitelly there is no problem permissions. Got another idea. See what is in "grep" :

Seems something is missing for gethostbyname, maybe in apr but also maybe in apache, hmmm :(

Will try with Light HTTPD instad of using Apache
[Sony Xperia P, U, Sola, Go] akkufix:
Could be come from "util.c" in apache.

Maybe this is interessting for you?

http://fossies.org/linux/www/httpd-2.4.6.tar.gz/
[Sony Xperia P, U, Sola, Go] munjeni:
Interesting. I was used latest source code 2.4.4 before holiday but new version is out 2.4.6 :) will try for sure. Doind some linkings in apr with libbind, seems apr using toolchains specific function for gethostbyname and gethostbyadr when not setting LDFLAGS parameter...
[Sony Xperia P, U, Sola, Go] munjeni:
No lucky.

Found something. When no /etc/resolv.conf php cli not working too! Getting the same error message! But creating resolv.conf with nameserver my_router_ip (nameserver 10.0.0.2) php cli working ok but getting the same error while using web! So there is something related to the nameserver resolver! I have no idea why there is diferencie between libphp (web module) and php cli (binary) ??? Why libphp unable to resolve gethostbyaddr or gethostbyname but php cli can resolve ???
[Sony Xperia P, U, Sola, Go] munjeni:
Hey hey hey, found whar cause the problem!!!

example using as not root:

but while login as a root user:

PHP is working only if:

- resolve.conf exist in /system/etc (nameserver must be proper! Without these file php cli or web php is not working!)

- user root (without root nothing is working related to dns resolver)

So definitelly web php thing need root access! How we can get it working???

Another question is: how we can add new user with root privilegies and make apache runing as a these user??? Or how we can give permissions for php to read dns related things (I have no idea how its working under android, or I have no idea how/where to grant php access to the these things)????
[Sony Xperia P, U, Sola, Go] munjeni:
Have good news, solved!!! Recompiled everything from begining, apache compiled with flag BIG_SECURITY_HOLE for making apache availibility runing as a root user, tested and everything is ok! We need to find a way hot to make something which will check nameserver real ip and add them to the resolv.conf which will be used for runing web server for example while using mobile net..etc :good:

I got inadyn compiled so maybe inadyn will be on any help for dynamic ip addresses
[Sony Xperia P, U, Sola, Go] munjeni:
Roundcube and IMAP working too!!! :laugh:

Final version download link is now on a first page and allso will write full tutorial there! Enjoy!
[Sony Xperia P, U, Sola, Go] akkufix:
:good: Finally

I knew it, that you could beat the Apache. ;)

Edit:

Will patiently wait with DL, when tutorial is ready.

Because this may differ a lot from "normal Linux" installation.
[Sony Xperia P, U, Sola, Go] munjeni:
If some one no want to modify ramdisk here is init script, save it as a 80androidserver and put it to the /system/etc/init.d/ folder with permission 755

Because ramdisk is not modifyed but you want to play with /androidserver/bin folder , you need to export PATH every time when you acess terminal:

export PATH=$PATH:/androidserver/bin

How to install (asuming you have uploaded androidserver.tar.gz to the external sdcard):

- establish adb shell connection or do it trought terminal emulator

- cd /data

- tar xzvf /storage/sdcard/androidserver.tar.gz

- reboot

Few commands to get LAMP configured:

- mysql_install_db

- mysqld_safe -uroot &

- mysqladmin -u root password your_new_password_here

Starting LAMP (mysqld is started allready by mysqld_safe !!):

- apachectl start

Stopping LAMP:

- killall -9 mysqld_safe

- killall -9 mysqld

- killall -9 httpd

- rm /androidserver/logs/*

Web root is in /androidserver/htdocs

Enjoy!
[Sony Xperia P, U, Sola, Go] akkufix:
Many thanks for this.

Well, i think its "script-time"... i'm too lazy for typing on our small keyboard with big fingers. :D
[Sony Xperia P, U, Sola, Go] munjeni:
Need help! Need output of the command:

hexdump -C /dev/block/mmcblk0boot0
[Sony Xperia P, U, Sola, Go] etch04:
u0_a120@android:/ $ su

lock/mmcblk0boot0 <

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

*

00200000

root@android:/ #
[Sony Xperia P, U, Sola, Go] munjeni:
I have the same. Just wanted to find how its look out of my device because I thinked that I deleted partition :)

What is use of these partition, I tried to write to them, created swap partition inside these partition and got swap working hehe... what we can do with these partition? Maybe we can create small recovery or at least place an ramdisk image inside? For example maybe we create an ext* partition and create chroot envinroment for example runing recovery from these parition?

Trying to find tool for multibooting, compiled kexec but seems not working :( Here is output:
[Sony Xperia P, U, Sola, Go] etch04:
Can i ask what more benefits we get from runing recovery from different partition.?
[Sony Xperia P, U, Sola, Go] akkufix:
For example - you may call it from a running system to make some changes on it without rebooting. Or we could have some more space for rom.
[Sony Xperia P, U, Sola, Go] munjeni:
Kexec is mechanism for booting kernel without restarting machine, it loads new kernel and ramdisk without needs for flashing them. If we get it working we can create multiboot mechanish for booting diferent androids without needs for flashing them, for example we can boot them from sdcard... :)

Progress:

Got it to load new kernel and ramdisk, rebooted ok, but new kernel can not boot, seems missing something :)
[Sony Xperia P, U, Sola, Go] akkufix:
wrong partition?

I don't see any partition you want to boot, only adresses. :confused:
[Sony Xperia P, U, Sola, Go] munjeni:
Suprise to all you, got kexec working via hardboot!!!!!!!!!!! :D

Soon multiboot!
[Sony Xperia P, U, Sola, Go] akkufix:
As we know you - i did not have expected otherwise. :D

Great, so it will possible to make multiboot kernels and/or using a real Linux from sd?
[Sony Xperia P, U, Sola, Go] munjeni:
Yes we can boot any kernel and ramdisk without needs for flashing them! For example load kernel and ramdisk from sdcard into memory and boot them. Ramdisk need modifications to get mount sdcard partitions instead of the one from emmc, so we can create few partitions on sdcard and boot diferent androids from them :) I will play with these things. Will push complete kernel changes to the git after some tests
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] jackryan57:
I'm wondering why I can't find a sticky on how to unroot? I would think lots of us restore to factory again, unroot and start over, I'm surprised there's no guide stickied.

That being said - does anyone have a link or guide to returning to stock - or better yet returning to stock/rooted?

My phone really need a reformat...

Thanks!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mkfryan:
There is a sticky in the general thread with exactly what you are looking for. Has root roms and other links in it.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] hednik:
Gpogle: no tripping flash counter galaxy s3 at&t. Flash that, then use triangle away and then flash stock firmware in Odin that you find on sammobile.com
[Galaxy S III Q&A, Help & Troubleshooting] Koostis:
Hi guys,

I've just bought myself a new SGSIII, and as a huge android development fan I instantly started to think of rooting it. I've moved from a 'grandpa' i9000, which was slow and laggy, so rooting and installing custom ROMs was my only hope. But on the i9300 there is no lagg at all, the phone is flying. So the question is - is S3 worth rooting? What advantages and how much of them could you exclude? (I don't count JB 4.2 as an advantage as I've been using it on my old phone for quite a long time and even got bored by it..)

Thanks! :)
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
[READ THlS FlRST] POST QUESTIONS IN THE Q&A SECTION AND NOT HERE!!!

http://xdaforums.com/showthread.php?t=2362743
[Galaxy S III Q&A, Help & Troubleshooting] Koostis:
Ah right, I forgot about the Q&A section. Sorry about that.
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
|do read the second link too.
[Galaxy S III Q&A, Help & Troubleshooting] Koostis:
I did, but I didn't find anything new in there, just the basic info. I know what rooting is and what does it do, I just wanted to know how much does it affect particularly i9300. :)
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
Same as any other phone. The advantages don't differ.
[Galaxy S III Q&A, Help & Troubleshooting] Koostis:
It's still not what I asked :). Of course rooting does the same thing, but what I'm interested in is the opinion of S3's users about it - how much of a boost was it, are custom ROMs more handy than stock and so on. These things differ. :)
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
It is what you asked. rooting opens the same doorways to new features and a higher level of control on any phone to the same degree. IMHO every phone should be rooted for these reasons.
[Galaxy S III Q&A, Help & Troubleshooting] Koostis:
And I want to know what these doorways lead to. Maybe OCing or installing/uinstalling any particular app/kernel/ROM gives a performance boost. I'm not interested in the fact that I am able to browse or make changes in more directories than normally. I want to know if it's possible to make a difference in S3's performance and how big the difference would be. :)
[Galaxy S III Q&A, Help & Troubleshooting] Mr Woolf:
Work it out yourself man.
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
I have updated the link JJE posted. Have a look towards the end "the advantages of root".

Yes you can alter performance and those alterations can be construed as perceivable.
[Sony Xperia T, TL, TX, V] kinsorted:
Hi,

I am trying to unlock my Xperia T so I can run cyanogenmod, but cant unlock the bootloader menu to run fastboot. I read that if the screen below says "no" then it cannot be done.

Is this true? Is there any way around it?

Any help will be appreciated
[Sony Xperia T, TL, TX, V] gregbradley:
ARGGGGHHHHH!!!!!

The answer is NO!

I may request this to be a sticky thread as I am answering this same question on average once a day now.....
[Sony Xperia T, TL, TX, V] dully79:
I feel your pain brother.

You should add it to your all in one thread in big, bold, red letters.:D

I took the liberty of performing a search for you as you are obviously unable to do so:

http://xdaforums.com/search.php?searchid=200246106
[Sony Xperia T, TL, TX, V] gregbradley:
Its already in there in the FAQ but I took your advice

http://xdaforums.com/showpost.php?p=31923568&postcount=1
[Sony Xperia T, TL, TX, V] dully79:
Haha, nice.

But i get you a pound to a pound of **** it still gets asked!
[Sony Xperia T, TL, TX, V] gregbradley:
I bet it does, I just looked through post 2 of that thread, and it is written at least 3 times in there.....

Maybe if I can get it down to just every other day I have to answer this it will help.

Or, I could be mischievous and just start saying yes, of course it can be unlocked, but I am not going to tell you how!
[Sony Xperia T, TL, TX, V] dully79:
To unlock the bootloader you need a magic key that ony Thor possesses:
[Sony Xperia T, TL, TX, V] gregbradley:
I must add this to the OP of this thread,

Please do not be afraid to ask question in these forums again, but please PLEASE use the search function first. I (and others) are very keen to help, that's why we are here, to help each other as we were all nobs as well at some point. But the first and best lesson I learned was to Search and read and try for yourself before asking questions.