Steps to build a local PHP server environment on the ALMP Android system _win Server

Source: Internet
Author: User
Tags bz2 php server phpmyadmin

On the internet to find the PHP+MYSQL environment of the Android system, very much like, take to modify, try some. has been implemented on the Android phone to build a Web server, and support WordPress, Discuz, phpMyAdmin operation. Currently considering the use of mobile phones can build WiFi hotspot this feature, anytime and anywhere to promote the site: for example, in airports, libraries, teaching buildings, railway stations and other densely populated places, the establishment of a password-free WiFi hotspots and ALMP, and then wait for the fish to bite.

Let's take a look at my toss-and-go results:

1. First come to a PHP probe: Basic mobile phone information, here to remind, if the mobile phone running less than 512MB of memory, running this thing is still very laborious

2.PHPMyAdmin, the original ALMP does not contain phpMyAdmin, and the original MySQL default password is empty, phpmyadmin default does not support a blank password login. It's been a while. Finally, the phpmyadmin that supports the null password login has been integrated in.

3. WordPress: Put WP into the server directory, the browser input mobile phone IP, instantly open the installation page

4. Direct Import blog data, let the blog run directly on the mobile phone: Import the database, replace the web site files; In the computer input mobile phone IP, successful

Installation method:

1. Move the lmp.tar.bz2 to the SD card root directory (/mnt/sdcard/)

2. Copy busybox file to/system/bin/directory, permission 0755

3. Install an Android terminal simulator, open and run the following command:

$ su
# CD/
# Mount-o Remount,rw/system
# tar xf/mnt/sdcard/lmp.tar.bz2
# Mount-o Remount,ro/system
# exit
$ exit

Well, if we get here, the installation works.

To start and stop a server:

Start the server to execute the following command

$ su
# almp-start.sh
# exit
$ exit

Stop the server from executing the following command

$ su
# almp-stop.sh
# exit
$ exit

Default settings for MySQL:

User name: ROOT, blank password

Address: 127.0.0.1:3306 or localhost:3306

Related Resources Download:

Busybox: Click here to download

ALMP: Click here to download (installation package has been modified by me, joined the support of the empty password phpMyAdmin; The original should be aite.me, but after the visit automatically to a Sina Weibo, regardless of, in this callout)

Android Terminal (Terminal): Click here to download

At last:

1. About the performance of the Android phone: With a probe, the dual-core A9 Architecture 1.0GHz processor is still a little bit different from the x86 processor, but you can see that the gap is not that big. In the core number of small, low frequency of the case, and x86 still have a spell. On the test of floating-point operations, neon is not the so-called and x86, this test is too hurt, when I did not see ...

2. Mobile phone must be root before you can use ALMP

3. Mobile phone running memory to reach at least 512MB:256MB model test, very card very card, basically can't open complex page

4. Most important: After the mobile phone to establish a WiFi hotspot, how to force users to visit all the pages have to jump to the local server, the last few days to find a way to solve this problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.