{"id":19829164,"url":"https://github.com/maytermux/lamptermux","last_synced_at":"2025-10-28T08:13:04.557Z","repository":{"id":37869800,"uuid":"344514939","full_name":"mayTermux/lampTermux","owner":"mayTermux","description":"LAMP on Android","archived":false,"fork":false,"pushed_at":"2023-03-12T11:46:18.000Z","size":1807,"stargazers_count":116,"open_issues_count":10,"forks_count":41,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-30T19:24:18.507Z","etag":null,"topics":["android","apache","lamp","linux","mariadb","mysql","php","phpmyadmin","termux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mayTermux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-04T15:10:02.000Z","updated_at":"2024-07-29T14:22:37.000Z","dependencies_parsed_at":"2022-07-24T21:46:22.358Z","dependency_job_id":null,"html_url":"https://github.com/mayTermux/lampTermux","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayTermux%2FlampTermux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayTermux%2FlampTermux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayTermux%2FlampTermux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayTermux%2FlampTermux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayTermux","download_url":"https://codeload.github.com/mayTermux/lampTermux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224261963,"owners_count":17282273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apache","lamp","linux","mariadb","mysql","php","phpmyadmin","termux"],"created_at":"2024-11-12T11:17:58.151Z","updated_at":"2025-10-28T08:12:59.504Z","avatar_url":"https://github.com/mayTermux.png","language":"Shell","readme":"\u003cp align=\"center\"\u003e\n  \u003ca name=\"top\" href=\"#\"\u003e\n     \u003cimg alt=\"xshin404/lampTermux\" height=\"60%\" width=\"100%\" src=\"https://user-images.githubusercontent.com/64394320/189678375-06f48ebe-aa01-4f36-aafb-4530cb572adb.png\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n- Download or clone the latest release.\n\n```bash\ngit clone https://github.com/mayTermux/lampTermux\n```\n\n- Move to directory\n\n```bash\ncd lampTermux\n```\n\n- Run installer script\n\n```bash\n./install.sh\n```\n\n### Information\n\n- **URL Apache** `http://localhost:8080`\n- **Default Port Apache** `8080`\n- **Default MariaDB User** `mysql -u $(whoami)`\n- **htdocs PATH** `$HOME/htdocs`\n\n### Overview\n\n  \u003cdetails open\u003e\n\n| PHP Info                                                                                                          | phpmyadmin Login                                                                                                           | phpmyadmin                                                                                                           |\n| ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |\n| ![phpinfo](https://user-images.githubusercontent.com/64394320/189680781-aadcc7a2-f711-43d9-aa12-18fd52b4fc87.png) | ![phpmyadmin-login](https://user-images.githubusercontent.com/64394320/189680994-f903d183-b16c-4af9-93ef-c9cae5b5c557.png) | ![phpmyadmin](https://user-images.githubusercontent.com/64394320/189681142-37ec39dd-6f38-4890-8934-d05b3711ba79.png) |\n\n\u003c!-- - PHP Information\n\n![phpinfo](https://user-images.githubusercontent.com/64394320/189680781-aadcc7a2-f711-43d9-aa12-18fd52b4fc87.png)\n\n- phpmyadmin Login\n\n![phpmyadmin-login](https://user-images.githubusercontent.com/64394320/189680994-f903d183-b16c-4af9-93ef-c9cae5b5c557.png)\n\n- phpmyadmin\n\n![phpmyadmin](https://user-images.githubusercontent.com/64394320/189681142-37ec39dd-6f38-4890-8934-d05b3711ba79.png) --\u003e\n\n  \u003c/details\u003e\n\n### User Configuration\n\n  \u003cdetails open\u003e\n  \u003csummary\u003e\u003cstrong\u003eApache\u003c/strong\u003e\u003c/summary\u003e\n\n- htdocs\n\n| Custom PATH 'htdocs'                                                                                            |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189682430-0eb8b308-6d8d-41b2-ba8d-61e094e8c292.png) |\n\nDefault PATH htdocs on\n\n```bash\n246 ...\n247 ...\n248 ...\n249 DocumentRoot \"/data/data/com.termux/files/home/htdocs\"\n250 \u003cDirectory \"/data/data/com.termux/files/home/htdocs\"\u003e\n251 ...\n252 ...\n253 ...\n```\n\n- Custom extension file that will be at loaded first\n\n| Custom extension file                                                                                           |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189683156-ebc48379-568f-45c8-bbf2-ca60e25337c8.png) |\n\nDefault extension file is\n\n```bash\n279 ...\n280 ...\n281 ...\n282 \u003cIfModule dir_module\u003e\n283     DirectoryIndex index.php\n284 \u003c/IfModule\u003e\n285 ...\n286 ...\n287 ...\n```\n\nIf you want custom htdocs or extension file that will be at loaded first, change the configuration on file `/data/data/com.termux/files/usr/etc/apache2/httpd.conf`\n\n  \u003c/details\u003e\n\n### Troubleshooting\n\n  \u003cdetails open\u003e\n  \u003csummary\u003eApache \u0026 PHP\u003c/summary\u003e\n\n- PHP isn't loaded, just showing the code\n\n| Like This                                                                                                            |\n| -------------------------------------------------------------------------------------------------------------------- |\n| ![phpnotload](https://user-images.githubusercontent.com/64394320/189684471-88add997-c944-4be1-b750-1de23232a25a.png) |\n\nOpen apache configuration on PATH `/data/data/com.termux/files/usr/etc/apache2/httpd.conf`\n\nGive comment (#) this text\n\n| Comment Text                                                                                                                             |\n| ---------------------------------------------------------------------------------------------------------------------------------------- |\n| ![Screenshot_2022-09-12_21-49-06](https://user-images.githubusercontent.com/64394320/189685096-fc06698f-d685-4f32-ada0-08da528737a8.png) |\n\n```bash\n64 ...\n65 ...\n66 ...\n67 LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so\n68 ...\n69 ...\n70 ...\n```\n\nUncomment this text\n\n| Uncomment Text                                                                                                  |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189685398-b301d3d9-39e5-4640-a6f5-41ac20622015.png) |\n\n```bash\n63 ...\n64 ...\n65 ...\n66 #LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so\n67 ...\n68 ...\n69 ...\n```\n\nAdd module on last configuration\n\n| Add Module                                                                                                      |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189686772-dce1af9d-3c82-4a9b-a5d5-ec8223ea2d83.png) |\n\n```bash\n536 ...\n537 Include etc/apache2/conf.d/*.conf\n538 ...\n539 # Add module for PHP 8\n540 LoadModule php_module libexec/apache2/libphp.so\n541 AddHandler php-script .php\n```\n\nThis module for \u003cstrong\u003ePHP Version 8\u003c/strong\u003e\n\nNow restart apache with `killall httpd`\n\n| PHP success loaded                                                                                                |\n| ----------------------------------------------------------------------------------------------------------------- |\n| ![phpload](https://user-images.githubusercontent.com/64394320/189687316-552a4aa9-4653-4d4f-8a81-7d211932afcc.png) |\n\n  \u003c/details\u003e\n\n  \u003cdetails open\u003e\n  \u003csummary\u003eMySQL\u003c/summary\u003e\n\n- Can't login root user because the password didn't know\n\nto fix this, Enable MySQL service\n\n| Enable MySQL Service                                                                                                  |\n| --------------------------------------------------------------------------------------------------------------------- |\n| ![mysql-start](https://user-images.githubusercontent.com/64394320/189687778-3fc46931-85e4-4bd1-a32d-46f3ddeabc8a.png) |\n\nAfter enable MySQL Service, now login mysql with root user.\n\n```bash\n$ mysql -u $(whoami)\n```\n\nAfter login, type this on MySQL (To use database mysql)\n\n```bash\nMariaDB [(none)]\u003e use mysql;\n```\n\nDatabase changed\n\n```bash\nMariaDB [(none)]\u003e\n```\n\nTo\n\n```bash\nMariaDB [(mysql)]\u003e\n```\n\nNow setting your root password MySQL you want, with\n\n```bash\nMariaDB [(mysql)]\u003e set password for 'root'@'localhost' = password('your_password_here');\n```\n\nAfter setting password for root login, type\n\n```bash\nMariaDB [(mysql)]\u003e flush privileges;\n```\n\nExit MySQL, type\n\n```bash\nMariaDB [(mysql)]\u003e exit; # or quit;\n```\n\nNow your root password has been changed, to login type\n\n```bash\n$ mysql -u root -p\n```\n\nThe password column filled with the newest password\n\n| Picture                                                                                                               |\n| --------------------------------------------------------------------------------------------------------------------- |\n| ![setpassword](https://user-images.githubusercontent.com/64394320/189687944-ddb1909b-8586-47e2-b20a-f6ef239952c7.png) |\n\n  \u003c/details\u003e\n\n  \u003cdetails open\u003e\n  \u003csummary\u003ephpMyAdmin\u003c/summary\u003e\n\n- mysqli::real_connect(): (HY000/2002): No such file or directory\n\n| Can't Login                                                                                                                |\n| -------------------------------------------------------------------------------------------------------------------------- |\n| ![phpmyadmin-error](https://user-images.githubusercontent.com/64394320/189691727-b1095c8b-c927-4e27-9f28-7e0ff0eff6a4.png) |\n\nIf you get this error, the solution is change value on file `/data/data/com.termux/files/usr/etc/phpmyadmin/config.inc.php`:\n\n```php\n$cfg['Servers'][$i]['host'] = 'localhost';\n```\n\nto\n\n```php\n$cfg['Servers'][$i]['host'] = '127.0.0.1';\n```\n\n- Access Denied 403 Forbidden\n\n| 403 Forbidden                                                                                                                  | lamp check phpmyadmin                                                                                                      |\n| ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |\n| ![phpmyadmin-forbidden](https://user-images.githubusercontent.com/64394320/189688664-2e5f4097-c527-45d5-a998-49dbabad00b5.png) | ![phpmyadmin-check](https://user-images.githubusercontent.com/64394320/189688675-09880c5a-99e6-443a-abee-5774312a2299.png) |\n\nIf you get this error, change this text on apache configuration `/data/data/com.termux/files/usr/etc/apache2/httpd.conf`\n\n| Require all denied                                                                                              |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189689231-1169246d-4349-4d2d-b612-619d9a6e836d.png) |\n\n```bash\n225 ...\n226 ...\n227 ...\n228 \u003cDirectory /\u003e\n229       AllowOverride none\n230       Require all denied\n231 \u003c/Directory\u003e\n232 ...\n233 ...\n234 ...\n```\n\nTo\n\n| Require all granted                                                                                             |\n| --------------------------------------------------------------------------------------------------------------- |\n| ![image](https://user-images.githubusercontent.com/64394320/189689357-ecb8e216-24bb-400b-b708-811d7455464d.png) |\n\n```bash\n225 ...\n226 ...\n227 ...\n228 \u003cDirectory /\u003e\n229       AllowOverride none\n230       Require all granted\n231 \u003c/Directory\u003e\n232 ...\n233 ...\n234 ...\n```\n\nChange Require all `denied` to Require all `granted`\n\n\u003cstrong\u003eDon't forget to restart apache with\u003c/strong\u003e `killall httpd`\n\n  \u003c/details\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaytermux%2Flamptermux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaytermux%2Flamptermux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaytermux%2Flamptermux/lists"}