Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've developed an open source application in php and mysql. I'd like to give it to the end user to install on their computer and use from their browser without me having to host it for them. But the end users are non-developers so they're unlikely to have what it takes to run the application (php-apache local environment like a developer would) and I don't have the time right now to invest in learning the Windows or Mac SDKs to make a real windows or Mac application. Also most of those interested in it are friends or their friends.
The solution I'm considering is to package apache/mysql/php with the php app itself, and have the installer install them so the app could run from inside the www/htdocs folder. It's like an app that comes with its own server to run it.
Has anyone done this sort of thing before?
Do I need to build apache/php/mysql from source on windows to do this, or can I somehow use existing windows binaries and have my installer just install them and position my app in the right location?
I'm guessing that launching or closing the application could be done through starting/stopping apache, so how would I implement a start/stop to tie into the apache start/stop.
Any help or ideas on this would be appreciated.
Have a look at BitNami Stacks, should definately have want you need in terms of a WAMP setup
I'd like to give it to the end user to install on their computer and use from their browser without me having to host it for them. But the end users are non-developers so they're unlikely to have what it takes to run the application
Why not provide a hosted solution? Host it on your server and allow your friends to create instances in your server. Is there any reason you can't do that?
you should include the zip of xampp with the files you need for the app preloaded in the htdocs folder. you can have the users extract it to their c drive root and include some sort of README or instructions on how to start up apache and mysql. xampp includes a convenient little control panel for this purpose.
edit:
I personally use xampp all the time when I am traveling and can't be connected to my server for active development. it works wonderfully and is contained all in one folder. It also doesn't require any installation, you just unzip the package. one caveat: installing to anywhere but C:\xampp is annoying.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I just started learning PHP through online videos, I have also installed notepad ++ but I am not able to installed XAMPP due to security concern as I am using the company-provided laptop,
is there any way to do practice and run my PHP program without install XAMPP
First of all, PHP is a standalone program:
PS C:\> php -r 'echo PHP_VERSION;'
7.4.5
XAMPP is just a third-party package that bundles together several famous programs written by other people. You can always get any of those programs (PHP included) from each of the official web sites.
If you mean you want to use PHP to build web applications but you aren't allowed to install a web server, you may have a couple of options:
Use PHP builtin server
Find out if your Windows edition includes IIS
If you mean that you aren't allowed to run any kind of third-party software, you're out of luck: PHP itself is software and it's third-party.
In any case: if your company is asking your to learn PHP, they should provide you with the necessary tools. If you're doing it on your own, know you're probably violating company rules anyway.
You need to have a local installed webserver. With XAMPP on your device you just have a nice tool for learning. Running a productive Application with critical data on it, would be not smart.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have at home a personal web server running apache where I have a /var/www/{project_folder} to serve my websites, where I access them by the other machines by the IP/{project_folder}, nothing new for now. :)
I have some new projects done with laravel, but I only run them at my local machine to use the cli command to serve where it always runs at localhost:{door}
I would like to put that projects at my web server but I'm facing some difficulties because I only have some basic knowledge about apache and I'm having trouble to figure out the configuration.
I believe someone have already done that :)
Thanks in advance.
Assuming that you already have PHP working with Apache, so your httpd.conf file is fully configured so that if you have a file ending with .php will be handled properly.
All you have to do now is place your project in the htdocs folder where you have all normal project in. That's it.
You could install composer and install Laravel with it. For example via
"composer create-project laravel/laravel --prefer-dist".
See here
Now the tricky part:
If you want to access the site via http://localhost/your-project and not via http://localhost/your-project/public, then do this (depending on you OS):
Activate Mod_Alias
Goto '<IfModule alias_module>'
Then add this line inside:
Alias /your-project/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/your-project/public/"
In this case you don't need virtual hosts.
Let me know if you have further questions.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is it possible to setup central git repository for all projects under webroot with WAMP installed?
In other words, each project under webroot should be git-managed at a central pc where other developers can access the same and commit to that local centeral repository instead of some online location ?
I don't know much about network stuff or how other users will be able to access it.
This would create a nice work-flow for the developers ofcourse.
What I have done so far:
Created a folder somewhere on my hard drive named repo
Shared above folder with all permissions with everyone
git initialized it or other projects inside it
Added above folder to apache vhosts file with alias
Now I can access above folder with http://repo.com/
Made apace listen to my network IP instead of localhost from httpd.conf eg Listen 192.168.1.4:80
But other users can't access it when they go to http://repo.com/.
Does anyone know how to setup it so that other users can also access this from my pc and use git as well?
You need a tool to manage hosted git. For example, in the past I used gitosis, but there is other alternatives like gitolite:
https://wiki.archlinux.org/index.php/Gitosis
https://github.com/sitaramc/gitolite
I think you can't install gitosis on Windows, so you need a Linux machine (I have experience running gitosis with Ubuntu with no problems). If you google you can find several tutorials explaining how to run gitosis under Ubuntu, for example:
https://help.ubuntu.com/community/Git
http://www.serverubuntu.it/git-gitosis-ubuntu
I remember it was very easy, but you need some Linux experience. Good luck!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want to start automating more of my web development process so I'm looking for a build system. I write mostly PHP apps on Mac OS X and deploy Linux servers over FTP. A lot of my clients have basic hosting providers so shell access to their servers is typically not available, however remote MySQL access is usually present. Here is what I want to do with a build system:
When Building:
Lint JavaScript Files
Validate CSS Files
Validate HTML Files
Minify and concatenate JS and CSS files
Verify PHP Syntax
Set Debug/Production flags
When Deploying
Checkout latest version from SVN
Run build process
Upload files to server via FTP
Run SQL scripts on remote DB
I realize this is a lot of work to automate but I think it would be worth it. So what is the best way to start down this path? Is there a system that can handle builds and deploys, or should I search for separate solutions? What systems would you recommend?
All you ask for can be done with Phing
Phing is a deployment framework written in PHP and modeled after Apache Ant. It comes with a large set of ready-to-use deployment tasks, including database deployment, remote file transfers and VCS connectivity. If you are missing functionality, you can extend Phing with standard PHP.
Phing provides the following features:
Simple XML buildfiles
Rich set of provided tasks
Easily extendable via PHP classes
Platform-independent: works on UNIX, Windows, MacOSX
No required external dependencies
Built & optimized for ZendEngine2/PHP5
You might also want to have a look to Hudson, an extensible continuous integration server.
The supported features are available here.
Among the other languages, it supported PHP. This article presents some nice plugins for PHP. The article is also suggesting Phing for the build. See Gordon's answer for details.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking to setup a lightweight, developer only web stack on Windows (and possible OSX). Ideally, I'd be working with Zend framework, MySQL. But I'm open to other APIs to facilitate creating RESTFul (or pseudo-Restful) web services.
I've seen some tools, like QuickPHP, but it might have been too lightweight as I couldn't get everything working that I wanted.
I'm not opposed to installing Apache and all that, but was just curious if there's some other tools I'm not seeing to get up to speed quickly.
Keep in mind that this is for local development only.
Thank you.
The thing is, you want your development environment to behave the same way as your production environment, so I would suggest installing whatever you are going to deploy to. I run a LAMP stack on my server, so I run WAMP on Windows for development. It is very easy to install and I don't notice it slowing down my laptop. You can also look at XAMPP, but after trying both, I prefer WAMP.
For my local OSX development I've used MAMP. I highly recommend it.
For Windows I'm sure you already know about a WAMP and I haven't used anything else.
I would look into XAMPP. But I prefer to install and configure Apache and PHP myself, and not use a pre-rolled solution.
If you want to go really lightweight, make sure that when you install WAMP or XAMPP, don't set the services to start automatically with Windows.
It is fairly easy to fire them up using the WAMP/XAMPP console when you want to develop your application, but it saves you from running them all the time and slowing down your boot time.
I used WAMP and XAMPP, but now I install separately on my VISTA machine Apache 2.2, PHP 5.3, MySQL 5.1.4 (and for writing code Notepad++; for handling photos GIMP for Windows).
It is not that difficult to install. Just read attentively on PHP download page, which version of the PHP Windows installer goes for Apache 2.2 (there is one for the IIS too).
All this soft is highly customizable. It makes sense to spend some time and get it right.