{"id":28390276,"url":"https://github.com/y-nabeelxd/termux-phpmyadmin-installer","last_synced_at":"2025-06-28T03:31:11.883Z","repository":{"id":275381678,"uuid":"925813194","full_name":"y-nabeelxd/Termux-phpmyadmin-installer","owner":"y-nabeelxd","description":"This Script Easily Install phpMyadmin on Termux","archived":false,"fork":false,"pushed_at":"2025-03-11T02:33:21.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T13:30:11.204Z","etag":null,"topics":["phpmyadmin","phpmyadmin-database","termux","termux-tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y-nabeelxd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T20:06:07.000Z","updated_at":"2025-04-01T07:46:29.000Z","dependencies_parsed_at":"2025-02-02T05:34:23.625Z","dependency_job_id":null,"html_url":"https://github.com/y-nabeelxd/Termux-phpmyadmin-installer","commit_stats":null,"previous_names":["y-nabeelxd/termux-phpmyadmin-installer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/y-nabeelxd/Termux-phpmyadmin-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-nabeelxd%2FTermux-phpmyadmin-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-nabeelxd%2FTermux-phpmyadmin-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-nabeelxd%2FTermux-phpmyadmin-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-nabeelxd%2FTermux-phpmyadmin-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y-nabeelxd","download_url":"https://codeload.github.com/y-nabeelxd/Termux-phpmyadmin-installer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y-nabeelxd%2FTermux-phpmyadmin-installer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262371165,"owners_count":23300556,"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":["phpmyadmin","phpmyadmin-database","termux","termux-tool"],"created_at":"2025-05-31T03:41:04.089Z","updated_at":"2025-06-28T03:31:11.876Z","avatar_url":"https://github.com/y-nabeelxd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Termux-phpmyadmin-installer\n\nThis script simplifies the installation and management of phpMyAdmin on Termux for Android. It automates the process of configuring phpMyAdmin and sets up convenient `pma start` and `pma stop` commands. It also checks for a pre-existing MariaDB installation.\n\n## Features\n\n* Installs phpMyAdmin.\n* Installs PHP, required for phpMyAdmin.\n* Configures phpMyAdmin (using cookie authentication by default - **INSECURE FOR PRODUCTION**).\n* Creates `pma start` and `pma stop` aliases for easy server management.\n* Checks for existing MariaDB installation before proceeding.\n\n## Installation\n\nUpdate \u0026 Upgrade Packages\n```\napt update \u0026\u0026 apt upgrade -y\n```\n\nInstall Required Packages\n```\napt install git -y \u0026\u0026 apt install bash -y\n```\n\nInstallation\n```\ncd $Home \u0026\u0026 git clone https://github.com/y-nabeelxd/Termux-phpmyadmin-installer \u0026\u0026 clear \u0026\u0026 cd Termux-phpmyadmin-installer \u0026\u0026 chmod +x install.sh \u0026\u0026 bash install.sh \u0026\u0026 cd $Home \u0026\u0026 rm -rf Termux-phpmyadmin-installer\n```\n\n\n\n**Usage**\n\nStarting phpMyAdmin\n```\npma start\n```\nThis command starts the PHP development server with phpMyAdmin on port 8081 in the background. You can then access phpMyAdmin in your browser (within Termux or using a localhost port forwarding solution if accessing from another device on your network) at `http://localhost:8081`.\n\nStopping phpMyAdmin\n```\npma stop\n```\nThis command stops the phpMyAdmin server.\n\n\n### Important Security Considerations\n* **The default cookie authentication is highly insecure and is only recommended for development or testing purposes in Termux.** For any production or publicly accessible environment, you must configure proper authentication. See the instructions below on how to do this.\n* **Do not expose phpMyAdmin directly to the internet.** phpMyAdmin is a powerful tool but can be a security risk if not properly secured. If you need to access it remotely, use a secure method such as SSH tunneling or a VPN.\n\n\n### How to change to config authentication (Recommended for production)\nEdit phpMyAdmin's config file:\n```\nnano $PREFIX/share/phpmyadmin/config.inc.php\n```\n\nModify the authentication settings (replace with your chosen credentials):\nChange this:\n```\n$cfg['Servers'][$i]['auth_type'] = 'cookie';\n$cfg['Servers'][$i]['AllowNoPassword'] = true; // REMOVE THIS LINE - IT IS VERY INSECURE\n```\n\nTo this:\n```\n$cfg['Servers'][$i]['auth_type'] = 'config';\n$cfg['Servers'][$i]['user'] = 'your_mariadb_user';      // Replace with your MariaDB user\n$cfg['Servers'][$i]['password'] = 'your_mariadb_password';  // Replace with your MariaDB password\n```\nMake sure to replace `your_mariadb_user` and `your_mariadb_password` with the actual credentials of a MariaDB user that has the necessary privileges.  **Do not use the root user.**  Create a separate user for phpMyAdmin.\n\nSave the config file.\n\n\n### How to create a MariaDB user (if you don't have one)\nConnect to MariaDB:\n```\nmysql -u root -p\n```\n\nCreate a new user (replace `pma_user` and `pma_password` with your chosen credentials):\n```\nCREATE USER 'pma_user'@'localhost' IDENTIFIED BY 'pma_password';\n```\n\nGrant privileges to the new user (adjust privileges as needed):\n```\nGRANT ALL PRIVILEGES ON *.* TO 'pma_user'@'localhost' WITH GRANT OPTION;  -- For full access.  Restrict privileges as needed for your setup.\nFLUSH PRIVILEGES;\n```\n\nExit the MariaDB shell:\n```\nexit\n```\n\n\n### Troubleshooting\n`Sorry, MariaDB is not installed.`: This means the script couldn't find a MariaDB installation. Visit Here. [MySQL-MariaDB-Termux-Installer](https://github.com/y-nabeelxd/MySQL-MariaDB-Termux-Installer)\n\n**Connection issues**: Double-check that the MariaDB server is running (`mysqld_safe \u0026`) and that the password and username you're using in `config.inc.php` are correct\n\n\n### Disclaimer\nThis script is provided for educational purposes and for simplifying local development in Termux.  Using cookie authentication or the root user for phpMyAdmin is a significant security risk and is not recommended for production environments.  Please follow the security best practices outlined above to protect your data.  The author is not responsible for any data loss or security breaches that may occur as a result of using this script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy-nabeelxd%2Ftermux-phpmyadmin-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy-nabeelxd%2Ftermux-phpmyadmin-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy-nabeelxd%2Ftermux-phpmyadmin-installer/lists"}