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.
Related
I'm trying to setup the facebook marketing sdk in php but I cant seem to get past the first part since I dont know what this "terminal" is.
instructions can be found here: https://developers.facebook.com/docs/marketing-api/sdks/
I could get the composer via an alternative method. Either by getting the executable setup or by adding .php to the installer and running it via browser but the next step is
"//Then install it through composer:
php composer.phar install --no-dev"
I cant run the .phar file via accessing it in the browser. It also shows a few errors when I replace the .phar with .php and doing the same method previously by accessing it through the browser.
Basically two things I need to understand
1. Where do I input those commands on a windows 7 OS
2. Where do I place the files for the facebook marketing SDK? just under htdocs in xampp?
Where do I input those commands on a windows 7 OS
Open the command line (https://www.howtogeek.com/254401/34-useful-keyboard-shortcuts-for-the-windows-command-prompt/)
Go to your project folder and use those commands
Where do I place the files for the facebook marketing SDK?
Composer will make a directory (/vendor) within the folder that you currently are. Then composer will put the required files to the right place automatically.
I've installed Xampp, and used phpMyadmin to create a database, I want now to use that with a Page made by Joomla,so I installed it with bitnami package, but I can't activate both, Xampp servers and Joomla at the same time, so when I try to log in phpMyAdmin of Joomla it doesn't recognise my admin and pasword of xampp. Any idea of how to solve the problem?
EDIT: I'm using Linux
TIP: Don't use bitnami. Use Joomla as it is instead.
It will be much better for you on the long run.
So:
Uninstall Bitnami
Restart Apache & MySQL
Example:
Create a database in phpMYAdmin
Example:
Download Joomla
Extract Joomla's ZIP file into C:\xampp\htdocs in Windows or /Applications/XAMPP/xamppfiles/htdocs on OSX.
I would recommend creating a folder inside "htdocs" like "mysite" so you can add multiple sites in the future inside different folder's
Navigate to either http://localhost/ or http://localhost/mysite and follow the Joomla Installation Process
It is simple to solve your problem.
Uninstall the bitnami package
Start your Xampp Apache and MySQL Server
Create a Database over phpMyAdmin
Download: https://www.joomla.org/download.html
Extract the files in the ZIP to your xampp installation in the folder htdocs. When you used the standard installation it isC:\xampp\htdocs
Open your browser on http://localhost and follow the installation instructions of Joomla
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.
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
I have this problem getting my newly created php project on Netbeans work on Ubuntu.
I've tried to place the source folder of the project in the /lampp/htdocs folder or selected the copy location option on the 3rd step of creating the project, yet none of them worked.
Here the version of the softwares I'm using:
Netbeans 7.1
LAMPP (newly download)
Ubuntu 11.10 (up-to-date)
I would be thankful if steps can be provided.
Ok I'll give you everything I usually do From the moment I download a new version of Ubuntu.
After installing Ubuntu I download XAMPP for Linux and follow their installation guide. Pay extra care to the permission when extracting XAMPP. Be sure you extracted it in the correct folder /opt.
You must start XAMPP manually by using the command /opt/lampp/lampp start. You will need root access for that. If everthing was started normally you will get the following message in the terminal:
Starting XAMPP 1.7.7...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Navigate to http://localhost or http://127.0.0.1 you should see the following screen.
(source: techblissonline.com)
Select your favorite language then voila your installation is complete.
create a new Netbeans project and call it test for example inside /opt/lampp/htdocs/.
Create an index.php file inside /opt/lampp/htdocs/test/ and put echo phpinfo() inside it.
Navigate to http://localhost/test/index.php and you should get the page you just wrote.
Notes:
Make sure all php extensions that you need are already installed by checking the phpinfo() page in XAMPP.
You would probably want to start XAMPP each time you start your PC instead of doing it manually every time. There are several ways to do that if you google it.
Have you tried all these steps and still can't get your project running ?