I need a php installation script for a Joomla (or whatever) site, like fantastico or softaculous.
The problem is, I don't need a standard installation. I want to add some extensions and add some settings to the installation.
Where can I find a good base for this?
Thanks
I think softaculous itself has custom scripts support :
http://demo.softaculous.com/index.php?act=customscripts
http://www.softaculous.com/docs/api
Softaculous also supports custom scripts support, you can try that.
Otherwise, just create a simple PHP script which just copies your Joomla script into a directory with preconfigured configuration files (Like wordpress has wp-config.php). and write a script to import database which joomla provides. This is what every Script installer does.
Let me know if you need further info.
Related
Is their a way to integrate Drupal-8 and React js.
I mean frontend be React js and backed be of Drupal-8.
I have gone through:
http://www.anexusit.com/blog/how-to-add-reactjs-drupal-8-composer
I have followed all the steps and done but dont know how can I use it.
Can any one please suggest some clear steps to me ..
also followed:
https://www.reddit.com/r/reactjs/comments/564gdy/react_frontend_for_your_drupal_8_backend/
In need of some clear suggestions.
Thanks in advance.
Found this article, but didn't get time to try it as I am a bit busy on another thing. Hope this will help you.
https://medium.com/#Userium/headless-drupal-build-a-drupal-8-api-with-a-reactjs-front-end-e43bf0fb94db#.2qn0u2im4
I'm currently building a module for Drupal 8 using ReactJS. I recommend you to see this: https://github.com/blackwood/drupal-react_blocks that's for Drupal 7 and then to Drupal 8 try to understand this portuguese steps: http://www.drupalbrasil.com.br/drupal-8-e-reactjs
Before starting just install libraries module to Drupal 8 and then install rest web services so after that you can copy and paste code from above to start learning how the integration works.
Using drush to install libraries and rest web services module:
drush dl libraries
drush en -y libraries
drush dl rest
drush en -y rest
I recommend you to use PHP 7 because I'm currently having troubles installing rest module for PHP 5.6.
I highly recommend you try this module (found in this repository: https://github.com/dtraft/react_quickstart ). Its built with react and can run in Drupal 8.
Add this folder in sites/all/modules/ or you can also create a subdirectory for modules you make in sites/all/modules/custom/ .
And then follow the instructions found below the repository's link or the read.md file.
Clear your site's cache in your site's Admin/Configuration/Performance/ then click Clear all cache. Save the configuration.
Then go to, Extend menu of your site search for "Decoupled Drupal with React Quickstart". Install it.
Lastly, go to Structure/Block Layout menu and add a block any part of you site and then you can choose from all existing blocks. Choose Clock Face Block.
Refresh your sites home page and there you have it!
If you want to integrate react and use inside, you can simply create a react app anywhere and when you finished just do a
npm run build
once you finished just copy the js and css file generated inside build/static folder :(js/main.something.js and css/main.something.css) to your drupal module or theme and then just reference theme in module_or_theme.libraries.yml
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.
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.
I like to have need to have my IDE (PHPStorm) include the WordPress codebase as an external library by default.
Using the project files stored on a remote server option, I have to choose the WordPress root as the directory and download all the core files if I want to get the full benefit from the IDE.
Is there a way to include the WordPress code base as an external library that loads by default in all projects? The feature is available for javascript libraries but I have gone through all the settings and can't find any way to add WordPress in less it's in the root of my project.
Edit:
Is this the wrong approach? Does it make more sense to specify my local mirror as a subdirectory of an existing project that includes WordPress core? All projects need to remain separate.
You can try to put the wordpress codebase in phpstorm's settings "include path" :
But you need to do this for every project (this is how phpstorm works, but this enable you to have different php versions for your projects).
Go in File > Settings > Project Settings > PHP
You must then locate your PHP version, then you will be able to add manually include paths, and use php.ini's include path.
Is there any way i can install joomla extensions by just uploading files and manually insert things in database using xml file.
i mean what joomla does in backend , i want to do that using shell script
Properly coded extensions will have an SQL file that can be run through your DB manager. The rest of the files need to be uploaded to the proper location. It's pretty simple really.