Custom WordPress Package
This guide will help you how to modify the existing WordPress package in Softaculous and add it as a Custom Script.
For testing your Custom Script on your localhost before uploading it to your server you can download AMPPS and install it:
First you need to choose a name for your custom package and a softaculous name (a short simple name without any special chars) for your custom package.
In this guide we take the following names as an Example :
Name : My WordPress Package
Softaculous Name : mywp
NOTE : The package files should be placed the the /path/to/scripts/SOFTNAME/ directory with the same name as the Softaculous name you choose for adding the script in Softaculous. In this case /var/softaculous/mywp/*
Copy the WordPress package
First copy the original WordPress package files to your custom package directory.
mkdir /var/softaculous/mywp/ cp -r /var/softaculous/wp/* /var/softaculous/mywp/
You have now copied the package to your custom package directory.
Rename the package files
Now rename the files to make it work with your custom Softaculous name.
mv /var/softaculous/mywp/wp.zip /var/softaculous/mywp/mywp.zip mv /var/softaculous/mywp/wp.sql /var/softaculous/mywp/mywp.sql
Add your Custom Content
- Unzip the mywp.zip and add your custom content i.e. plugins or themes as you require.
- Now Zip the package and make sure the ZIP package contains the files directly and not in a sub-directory. The following should be the directory structure of your ZIP package :
wp-content wp-admin wp-includes index.php and so on
Add your content in SQL file
- Add your the custom content you need in the mywp.sql file.
- You might need to make changes in SQL to activate your themes/plugins.
- Hint : You can install the theme/plugin in a test WordPress installation and take the changes from the database of that installation.
Modify other files (if needed)
Generally it is not required to modify any files but if you need you can modify the wp-config.php or any other file to make any changes you require.
Make any other final changes you want.
Add the package to Softaculous
- Once you have the package ready add it to Softaculous. You can refer to the following guide on how to add a package to Softaculous : Adding Custom Scripts
Test the package
- That's it! You have successfully created a custom WordPress package.
- Now it's time to test your package and make sure it works fine.
If you need to make a completely fresh package from scratch you may refer to the following guide : Making Custom Package