Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to execute php scripts #6

Open
josepsanzcamp opened this issue Mar 14, 2013 · 10 comments
Open

Add support to execute php scripts #6

josepsanzcamp opened this issue Mar 14, 2013 · 10 comments

Comments

@josepsanzcamp
Copy link

Hi.

I want to use this software to package my application, but requires PHP. Some idea to do it???

Exists 2 simple options:

  • Disable the javascript http server and use the internal server provided by php (available from the php 5.4)
  • Add support to the javascript http server to execute the php-cgi

Any suggestions will be appreciated

For the curiousous: my application is SaltOS. Currently is focused to be used in a server using the traditional client-server arquitecture. My goal now is to provide a simple solution to all users that want to use my application in a local environment without the complications that has the installation on a server.

Josep.

@motin
Copy link
Member

motin commented Mar 20, 2013

Reading the technical requirements for SaltOS, it seems that you also need MariaDB/MySQL? Maybe you could look into bundling a more complete server stack with your application? Check out http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages and see if you can find a good candidate software for this task. If you use unprivileged ports you should be able to start/stop these services along with the application.

@josepsanzcamp
Copy link
Author

The idea is to use SQLite that not requires nothing more. Currently, I have preparate the win32 and mac packages of SaltOS using the webapp-xul-wrapper and php.

@josepsanzcamp
Copy link
Author

I another time.

I have preparated the php packages for windows, mac, linux 32 and 64 bits. I modified the launch scripts to execute the php as server, and to stop it when xulrunner is stops. Works as expected. In a few days, I expect to publish this new packages that include SaltOS + xulrunner + php to execute without installation the SaltOS application. Intended for end users that don't want or don't know how setup a traditional apache + php server.

Thanks by your project. I saved a lot of time!!!.

Josep.

@motin
Copy link
Member

motin commented Mar 23, 2013

Great news! Feel free to share your php packages and launch script modifications for the community to benefit from :)

@motin
Copy link
Member

motin commented May 16, 2013

Hi, would you mind sharing your modified launch scripts with the community?

@josepsanzcamp
Copy link
Author

Sorry by my absence. Tomorrow I publish my modifications in github. You can see the final product at http://download.saltos.net.

@josepsanzcamp
Copy link
Author

I another time. I have done a fork and I have applied my changes to your original code at https://github.com/josepsanzcamp/webapp-xul-wrapper.

I have pending to update the code to the 1.2.0 release.

@motin
Copy link
Member

motin commented May 27, 2013

Great, thanks! There is a problem with the mac version, where should I file an issue? sf or github (for the latter case please enable issues on github for your fork)

The 1.2.0 version is ready very soon...

@josepsanzcamp
Copy link
Author

Hi.

You can put the problem in issues at github.

Josep.

@josepsanzcamp
Copy link
Author

Hi.

I have added the reference of your project to the SaltOS project website:

Without your work, SaltOS would not have a Desktop version!!!

Josep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants