Just a quick one about installing a PHP website, are there any tools out there that would allow me to create an install package to fully install this website on a Windows platform? If possible maybe even take details like company name and database connections which then maybe updates the necessary PHP files?
If the later cannot be done its fine, but a free tool for installation would be great!
Thank you!
Ash.
It's possible with a tool like innosetup.
It let you build setup , in which you can put what ever you want (webpage , other setup ...).
If you want to do something a little bit advanced (installing apache , configuring file ...) you will need to do some code (delphi) , but the documentation is pretty clear about all the possibility.
Don't be fooled by the simplicity of the tool , it's very powerfull. For example you can check if a specific service is running to lauch (or not) a specific part of your setup. (if httpd is running just copy the webpage a skip the apache installation for example).
You can combine innosetup with server2go
Download the package you want as a .ZIP file, extract it, put your website in "htdocs" folder and then create an installer with innosetup.
Edit: You can edit pms_config.ini too with your needs.
Related
I have created an administrative system for libraries which basically lets you register books, users, borrowings and all kind of stuff that happens in a library. To code and test it, I used XAMPP, in my own PC, using Apache PHP and MySQL to structure and develop the application.
It works, and has a very complete and efficient set of functions and utilities, that is why I plan to implement it in my school's library, that for years has been using Microsoft Excel as a tool to organize all the books and students.
The thing is: I don't understand how to setup this app as a local web application. The idea is to install the folders and files in the library computer so it can control the system locally and through a browser (using localhost to access the PHP application).
I know it is possible to simply install XAMPP manually and copy the folder to htdocs and then use it normally, but I want to eliminate the manual part, and have some sort of setup that lets any person install the app without having to understand how Apache or MySQL works.
Does anybody know what could I do? I have though of creating a series of batch files (the library PC uses Windows) and move folders, create shortcuts, etc. using normal cmd commands. It would be a better alternative, but still the user would need to go through XAMPP (or some other service) setup prompts.
Thanks very much
you can create a bash file to automate this process.
Apologies in advance if this is off-topic, or something that has been asked before, but is there a way to maintain a stable Drupal 8 website WITHOUT using Composer?
Why I ask is because I am just unable to use Composer on my shared GoDaddy hosting. While it is powerful enough to run multiple drupal 7 and 8 installations, it seems to come to its knees as soon as I run a composer command using ssh (via terminal). Things freeze for a while and then I get a "Killed" message. If I check server processor, I/O or RAM statistics during this time, they are all in the red.
I have read somewhere else on this site that it is not advisable to run composer on a live site. The recommended approach is to run composer on a local (localhost) copy of the website, and upload updated files, but it seems impractical, because sometimes all I need to do is install a small module, or something else that involves only a few files.
Any insight is very welcome. If I am doing something wrong, please suggest the right path. Things have reached a head now.
Thanks in advance.
In a basic , composer downloads libs and creates autoloader.
So if you have the same/similar(php version !!) enviroment on localhost and on server you can simply upload vendor dir to server ( and that's all) .
It'll be working till you add some new lib ( then you need to upload vendor dir again)
So anwsering - you don't need ssh and composer on server.
There's no need to use composer at all, it's just a lot easier.
You can just manually add / remove (uninstall first) modules with FTP ... I don't recommend this though!
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.
Well I have two php files
db_config.php
index.php
with certain code.
To do
I want to make an installer file, which should zip these two php files in an exe or msi file.
and whenever user execute my installer file, it should extract my files to the specified folder on the pc.
also it should look like user is installing an software solution, i.e it should have some instruction, next button, back button, cancel button and a browse button to specify the installation location. (as you have experienced during a normal software installation )
Regards
Qadir Hussain
NSIS is a great Open Source tool for installing software. From the website:
NSIS (Nullsoft Scriptable Install System) is a professional open
source system to create Windows installers. It is designed to be as
small and flexible as possible and is therefore very suitable for
internet distribution.
...
NSIS is script-based and allows you to create the logic to handle even
the most complex installation tasks. Many plug-ins and scripts are
already available: you can create web installers, communicate with
Windows and other software components, install or update shared
components and more.
I am developing a Facebook app using heroku. My app needs the ability to upload files (pictures) to a folder on a remote server, and I assume ftp is the best option. Unfortunately the ftp extension is not enabled out of the box. I spoke with support and they suggested the following:
"We unfortunately don't support FTP, or any PHP extension at this moment.
But the good news is that we just open sourced our PHP build pack, so you could try to vendor it yourself:
https://github.com/heroku/heroku-buildpack-php"
So I am assuming I can follow the readme instructions in the link above, and simply include the --enable-ftp option?
This is a bit beyond my current knowledge. I really appreciate the help, and look forward to learning something new.
I had to do something similar. Here's what I did:
1.You need to use a custom buildpack which installs the pear packages Net_FTP. I suggest that you fork the one I've been using (https://github.com/antonyevans/heroku-buildpack-php/)
Then you need to change bin/compile. Key changes are the removal of the lines (around 163):
php/bin/pear install mail
php/bin/pear install Net_SMTP
And the addition of Net_FTP extension:
php/bin/pear install Net_FTP
2.Then you need to tell your application to load the package:
require_once 'Net_FTP.php';
Your biggest problem is that the Heroku file system is emphemeral. I would suggest going back and looking at your architecture again.