Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I can create installer for website. PHP mysql [closed]

I have a website which made.

I need to know how i can create a installer for this site. Meaning when user upload the site on to they host first time they get option to inset they database details.

User insert they database details which then they change in config.php file.

also i have tables.sql which i like to run query

I try using

$text = file_get_contents();

but my querys fails as i do have around 32 tables i need to inset into database and all the necessary setting.

like image 582
SameasBefore Avatar asked Dec 08 '10 14:12

SameasBefore


People also ask

Which of the tool can be used for installation of PHP MySQL and web server all in one?

PhpMyAdmin (http://www.phpmyadmin.net) is a popular open-source PHP webapp tool for administrating and manipulating MySQL/MariaDB database system.

Do I need to install PHP?

No, if you installed a web server (e.g. Apache) on your computer it will not include PHP. You need to install it if you need it. There are apps such as WAMP and XAMPP that will install Apache, MySQL and PHP on your computer without any hassle.


1 Answers

There is a number of tools that aim to achieve this, with different feature sets:

  • http://www.apphp.com/php-easyinstaller/
  • http://www.phpclasses.org/browse/package/3072.html
  • http://www.phpclasses.org/browse/package/2543.html
  • http://www.vadimg.com/2009/06/24/application-installer-wizard-class/
  • http://github.com/SunboX/Php-Web-Application-Installer
  • http://sourceforge.net/projects/upcase-project/
  • http://sourceforge.net/projects/zzossinstaller/
  • http://sourceforge.net/projects/phpappinstaller/
  • http://sourceforge.net/projects/piap/

These are collected from a blogpost by cweiske

  • http://cweiske.de/tagebuch/Generic%20PHP%20application%20installers.htm
  • http://kore-nordmann.de/blog/0097_php_web_installer.html

If you dont need a generic tool, the easiest would be to write a simple install script and ask users to run it. This can be as easy as a single file that prints a form and asks for the required details. When submitted, do the necessary install routines.

like image 56
Gordon Avatar answered Oct 13 '22 15:10

Gordon