Posted By: m.hamdy87 on March 5, 2023, 7:27 pm |
Hello,
I used some kind of Softacolous filters to run a function like this one http://www.softaculous.com/docs/developers/making-custom-package/#3-install-php:~:text=swget(%24parameter1%2C%20%24parameter2,save%20it%20here But not get an effect on the package files. Is there something wrong and/or where to run this function in the code? Thanks |
Posted By: Brijesh on March 6, 2023, 9:58 am | Post: 1 |
Hi,
The swget function is used when you want to make a curl call to a URL. If you want to create/edit a file please use fopen/fwrite etc functions. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on March 6, 2023, 11:03 am | Post: 3 |
Hi,
Softaculous process runs as a cpanel user process and the user does not have write access to /var/softaculous folder hence the write fails. Please try to write in a folder that is writable by the user. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on March 8, 2023, 7:56 am | Post: 5 |
Hi,
It is not possible to edit root owned files as a user process. Can you please share what data you want to change in the SQL file ? Maybe you can try executing SQL query in your custom script installer. You will get the database credentials in the following variables : $__settings['softdbhost'] - Database Host $__settings['softdbuser'] - Database User $__settings['softdbpass'] - Database Password $__settings['softdb'] - Database Name ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: m.hamdy87 on March 11, 2023, 7:53 pm | Post: 6 |
Hi,
it will be a completely new file, there's a big idea behind that. Is that possible to make a call please? Thanks |
Posted By: Brijesh on March 20, 2023, 12:39 pm | Post: 7 |
Hi,
Sorry for the delay in response. You can open a support ticket with us : https://softaculous.deskuss.com/open.php ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |