How can I package php programs together with apache, mysql, and php into exe installation programs? may I ask you: how can I package php programs together with apache, mysql, and php into exe installation programs, you can use NSIS, innosetup, and other packaging tools to generate the installation package. you need to write a certain installation script on your own. you already have it online. you can simply decompress the package and run the php program together with apache, pack mysql and php together and make it into an exe installer
Excuse me:
How to package php programs together with apache, mysql, and php into exe installation programs
------ Solution --------------------
You can use NSIS, innosetup, and other packaging tools to generate the installation package. you need to write a certain installation script on your own.
------ Solution --------------------
I already have it on the internet. I just need to extract a bat package, just like the exe.
------ Solution --------------------
Pack PHP into EXE [post]
Principle. On the Internet, I found a package program make_exe(?phpnow=which can pack the file interface information after .7z + into an EXE running package and automatically run the batch files in the 7z compressed package after self-decompression. Make_exe.zip contains three files: Make_exe.cmd, PHPServer. sfx, and PHPServer. sfx. cf. You should have thought about this. First, compress PHPServer into the PHPServer.7z file and configure it. Modify the PHPServer. sfx. cf file and run Make_exe.cmd.
First: Make_exe.cmd code
Copy content to clipboard
Code:
Set v= 1.2
Copy/B/y PHPServer. sfx + PHPServer. sfx. cf + *. * phpserver?v=.exe | pause
Very clear! "Set v = 1.2" is the version, and then three files are required for packaging.
PHPServer. sfx. cf code. open the method and drag it directly to the TXT file.
Copy content to clipboard
Code:
;! @ Install @! UTF-8!
Title = "real estate information management system V1.2"
BeginPrompt = "# Real Estate Information Management System V1.2 installation package # \ n * confirm that you have not run other services that Occupy port 80, such as IIS. \ N * if you have other similar packages installed, stop or uninstall them first. \ N * Do not move the installation directory after installation. \ N author: Yuno QQ: 110026985 home http://www.xilo.cn. "
ExtractDialogText = "please wait and unzip the file ..."
ExtractTitle = "extracting ..."
ExtractPathText = "select the extract path (only English characters ):"
ExtractCancelText = "cancel"
CancelPrompt = "are you sure you want to exit? "
GUIFlags = "4 + 8 + 32 + 64 + 256 + 2048"
InstallPath = "D: \ PHPServer"
RunProgram = "cmd/c setup. cmd"
;! @ InstallEnd @!
I believe I will not explain this, but I will change it if I want to display it. Note that InstallPath = "D: \ PHPServer" is the installation directory, and RunProgram = "cmd/c setup is also run after decompression. cmd "this BAT, that is, the command to start apache and mysql services. The following is the setup. cmd command of PHPServer. Because there are too many simple comments!
Setup. cmd code:
Code:
@ Echo off
Rem -- http://www.xilo.cn
Rem -- By Yuno (QQ: 110026985)
Setlocal enableextensions
Call Pn \ config. cmd
Prompt-$ g
Title initialize PHPserver % pnver %-Apache + PHP + MySQL
Echo ____________________________________________________________
Echo ^ |
Echo ^ | ###### installing Haobo real estate information management system environment suite #######^ |
Echo ^ | ____________________________________________________________________ ^ |
Echo.
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.