I have been engaged in web development for more than 1 years, in this period of time has been studying new technologies, from now on will be home, and many web development enthusiasts to communicate and learn. In the future, I will continue to end the New Year 1 years of learning knowledge and future contact and learning skills, share their unique view of web development, this blog has any questions, you can contact me directly or leave a message, let us together for the future mutual encouragement!
Also near the new year, today is ready to go home, but now only a desktop computer (because I do not love to use a notebook, the previous put a long time damp bad), home with inconvenient, but back when not learning is not right, engaged in web development is a process of continuous learning. So the day before yesterday whim Android system is not based on the Linux kernel, then is not the Linux system most of the small program can also be installed on the Android system, so to Baidu search for a android+php+mysql environment, Very disappointed not to want the result (not all said Niang is omnipotent?) )。
How can I not sleep at night, there is an Android emulator on Windows to run Android apps, isn't there such a feature on Android? So midnight again up search, finally found a little hope BusyBox installer , the introduction of this installer is said:BusyBox is a single executable implementation of standard Linux tools. BusyBox contains a few simple tools, such as Cat and Echo, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people refer to BusyBox as the Swiss Army knife in the Linux tool. Simply speaking, BusyBox is like a big toolbox, which integrates many of the tools and commands that are built to compress Linux. It's really tough, but it's just a little bit of hope, and then it's dashed, apache+php+mysql and a bunch of PHP extensions that really work on a tiny Android system? Obviously not. The software also describes the software or commands that simply can execute some simple Linux!
Don't be sad, after an hour of struggle in Baidu finally found the solution, that is Lighttpd+php+mysql can use the BusyBox tool to install and compile these binary packages (but I did not try, here is a reference, You can try it, but I don't think it's necessary to make a big app on Android, so it's a waste of time http://apkweb.cn/, and then I search for an LPM apk app that's just like the inheritance environment on Windows. (This software can go to Baidu to find, there is the latest version), the following I would like to say this software installation and configuration bar.
Package (there may be other versions when you see this article, you can go to the Android Market or direct Baidu, Google bar):
busybox:http://cdn.market.hiapk.com/data/upload/2013/12_12/11/stericson.busybox.donate_115251.apk
LPM Manager: http://cdn.market.hiapk.com/data/upload//2012/04_23/com.wj008.lpm_135950.apk
Terminal: http://cdn.market.hiapk.com/data/upload/2013/11_18/12/jackpal.androidterm_123723.apk
First to install the BusyBox Swiss Army Knife, download the BusyBox app, open the app after installation click the Insert button, the software is as follows:
Next install the LPM application, first go to the Android Market to download one, then install the application, after the application installation is complete, call the LPM application to install the PHP Runtime Environment ( running and installing PHP environment must be rooted ):
One, such as directly click the Install button can be installed.
Second, if the system prompts for authorization, please select Allow.
Third, a little while, the installation process may be card machine, but do not panic yo, after the installation is complete, start MySQL and lighttpd remember to pay attention to the upper left corner of the environment information prompt (the default access address is: 127.0.0.1,mysql password is 123).
Four, to view the environment Access http://127.0.0.1 and http://127.0.0.1/phpinfo.php (garbled no problem is not set up a good encoding), after the installation of the Environment directory:/data/wj008.net/, the site root directory in:/ Under the sdcard/wj008lpm/htdocs/directory
Five, look at the environment installation is not a problem after you can install the application, said to install the program uploaded to the/sdcard/wj008lpm/htdocs/directory.
1) Install the Ecshop program (this process will be error, because the time zone setting problem, with the problem), with VI open/data/wj008.net/php/php.ini file, search; Date.timezone = Replace this with date.timezone = UTC so there is no problem with installing Ecshop.
Ecshop By default does not support mobile access, you can change the browser's access header, analog computer access, you can also change the Ecshop portal file, so that it does not make the device's judgment.
2) Install Phpcms (this is a good outfit)
3) Install discuz! X3 (This has a big problem, can deal with it, in the installation environment where the lack of an important service, in fact, can not be normal operation, want to install can only modify the installation program. More complex, do not want to delve into can skip)
discuz! X3 comes with the mobile version of the page, do not like to remove DZ equipment to judge or simulate computer masthead information
4) Install phpMyAdmin, this nothing to say, but there is a key point is to use the Config record login account and password, other access login may have a problem, this is not, it is recommended to download a terminal application, I use it, you can learn some basic Linux commands and MySQL commands.
Vi. use the terminal to modify the MySQL password.
Android System build Php+mysql environment, support Sqllite, perfect run ecshop, Phpcms, discuz_x3 and other open source programs