I want to make my php project distributable like .exe file.
is it possible to customize wamp or xampp to inclue my project folder in that so i can ask client to install that wamp/xampp and my project will be automaticall setup on their system
Check out phar for creating a php archive.
Using uWamp server we can bundle php project with mysql and distribute it easily. Check this
Related
I have not every used, or even installed the Zend Framework.
I have inherited a website built in the ZF and only have FTP access to the deployed version that is live.
Is it possible to simply download the files that are live and run then locally within XAMPP, as i have tried this but ther server has lots of short cut director mappings and no ZEND?
I am assuming not, so can i install Zend and then download the site to my local machine for it then to work?
Any assistance on this would be helpful as have no idea about it, whether i need source files or not.
Thanks
Shaun
once you have the project downloaded in xampp. make sure you have composer installed and configured.
delete the vendor folder inside your project then run
composer install
under the root of your application.
I have created one project in Php/Mysql .Now i want to create .exe file for this project.So that if anyone runs this exe file automatically mysql/php/apache get installed in other word he don't need to install anything.Is this Possible?
Thanks
You need to learn to use the setup creators.. The WAMP does the same by installing mysql and apache on the target computer. So your installer will be similar to WAMP that will silently install the apache and mysql and copy your files to www directory and create the database using some sql script.
I have a php application, I want to install it on another PC so they can use it but i want an automatic way that will install XAMP & copy my application files to that PC without me doing all these is there any installer I can use?
I need it to install XAMP automatically
Need it to copy files from installer & paste in the xamp folder.
Create a desktop icon so they can launch & start using it.
It will open browser, will run the apache in the background. and execute the php
anything to resolve?
Popular CMSs like Wordpress do installation just by copying the files and launching the SQL scripts for the database - create database and fill test data if needed. Which is fine.
The real question is how do you install XAMPP in the first place. Because for that it's not enough just to copy files. And even if you do manage to install XAMPP, you have to automatically start the Apache and MySQL. Don't say that it's impossible, but I think you should look for an easier way and deal with that another PC owners.
If my question has already taken place in other post, please excuse me.
I am coding a PHP - MySQL website and publishing it on IIS.
The way that enables me to do this is enabling CGI extension of IIS and copying the source PHP files to a folder under the "inetpub" folder.
Here is the question. If i DON'T want to copy my PHP files (which are including my codes obviously) into "inetpub" folder, is there a way to make a package file of my PHP files? For example a Tomcat server executes ".war" package files. Is there a package file type that i can put my PHP pages in it and deploy it on IIS and publish it on IIS?
If there is no way to achieve this, what can i do to prevent copyng and pasting the PHP files into "inetpub" folders?
Thank you all.
You can take a look at Web Deploy. It doesn't package the files as compactly as WAR but it's the "official way":
http://www.iis.net/download/WebDeploy
Hi i have a small api done in php which i want hosted on windows azure, i have downloaded the php sdk, and created a project and put my php folder in it, which has the ext folder and my php-cgi.exe, and also a php.ini file. when i do phpinfo(); it shows that the php.ini file referenced is in C:/windows not in my project folder which is in E drive, also the ext folder reference is shown to be c:/php/ext, which is also wrong, how do i make it point to my ini files within the project. please help ?
Try changing the config to something like:
<application fullPath="%RoleRoot%\approot\Content\Php\php-cgi.exe" arguments="-c %RoleRoot%\approot\Content\Php\php.ini"/>
I recommend reading the articles available on the Azure PHP website. This is an official Microsoft website that is run by the Interoperability team at Microsoft. They have lots of good info around PHP on Windows Azure.
http://azurephp.interoperabilitybridges.com/articles/build-and-deploy-a-windows-azure-php-application
Also, after you have the development environment setup take a look at this tool which allows you to conveniently package any PHP application for Windows Azure:
https://github.com/blobaugh/paz