The cves are for apache 1.X only. The mod_ssl version numbering changed and is built into apache for 2.X. As for the database, you would need to firewall it off and only allow ips that are trusted to...
Type: Posts; User: sirdopes; Keyword(s):
The cves are for apache 1.X only. The mod_ssl version numbering changed and is built into apache for 2.X. As for the database, you would need to firewall it off and only allow ips that are trusted to...
We would like the ability to add custom files be added to jailshell and not just custom mounts.
For a specific instance, lynx was failing on the following error.
user@example.com [~]$ lynx...
You can add an include for the specific vhost that points cgi-sys to the cgi-bin folder for their specific domain for pci tickets.
ScriptAlias /cgi-sys /home/usr/public_html/cgi-bin/
I tried enabling sftp logging by adding the following to the sshd_config. This works if jail shell is enabled but not if the shell is set to /usr/local/cpanel/bin/noshell.
Subsystem sftp ...
You will need to recompile cpanel's internal php with curl support. This is a different installation than the version that apache uses. You can do this in ssh by running the command...
The easiest thing is to create a forwarder to pipe the email into your script. You can create a forwarder for an existing email address and it will deliver into the inbox and pipe into your script.
The custom event handler is called during each of those i believe. The following page has some documentation and an example.
Custom Event Handlers
It is probably running but not creating the file testFile.txt in the spot that you are expecting. Does it work if you specify the full path?
The httpd.conf will get overwritten. If you are wanting to specify a different document root for a domain, it needs to be changed in the userdata file. It is located at...
I don't think I understand what you are wanting to change. When you park a domain on another domain, it should not change the document root to something else. You can use the custom event handler to...
An easy way to do this would be to use postsuspendacct to copy the current zone file to the users suspended folder or another folder, then use ZoneEdit::resetzone to set all of the records back to...
Are you using the subdomain or the domain key? It should be something like sub_maindomain.com for the subdomain and not the actual subdomain.
You need to pass the user for the domain you are doing a lookup for as well.
$cp->cpanel_api2_request('whostmgr',
{
'module' => 'DomainLookup',
'func' => 'getdocroot',
...
There is a bug report for NetAddr::IP concerning this issue.
https://rt.cpan.org/Public/Bug/Display.html?id=71925
Use the following URL and it should work correctly. It is mainly changing the dbname= to arg-0=
...
The following is an old example I wrote that does what you are asking. It would be better to change it to call the api calls directly instead of make a GET request to localhost though.
...
What version of apache are you using? It looks like it is just an issue in version less than 2.2.6.
One option is to call killacct in postwwwacct until 11.32 comes out.
The code that I posted can be used in /usr/local/cpanel/scripts/postmodifyacct. However, this is only called when an account is modified. It is not called on the change package screen. So you could...
I was looking at this a little more and it doesn't look like the postmodifyscript is called when changing the plans. One option is to use to edit the account after the package is changed. You can use...
There is a /usr/local/cpanel/scripts/postmodifyacct script that is called after an account is modified. This is probably where you would want to add the call to your script. The file can be created...
Do you see the cron running in /var/log/cron ? Also, is there a reason that you are deleting the email? I guess i am confused on why you would want an email address setup in the first place if you...
Are you wanting to change the usernames for all of the users? Do you have root access or are you wanting to do this as a reseller?
The module should go into /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
The src files in the folder /home/cpeasyapache/src/
The src folder that you specified would be:
...
Download the source and extract. Run something like the following configure line and then make and make install.
./configure --enable-bcmath --enable-calendar --enable-dbase --enable-exif...