cpanel

Creating Emails via PHP with WHM/Cpanel

我只是一个虾纸丫 提交于 2019-12-22 08:35:04
问题 I am using WHM/Cpanel to manage my sites. I am on a VPS server on Hostgator. I want to create email accounts dynamically via PHP. Does anyone know what I might need in order to do this ? Any good resources ?? Books or code they can share for me to go about doing this ? I am only dealing with one cpanel account, not multiple accounts, so I figured i would just need the cpanels API. 回答1: The following posts contain some detailed explanation of this: http://forums.cpanel.net/f42/create-email

robots.txt allow all except few sub-directories

我与影子孤独终老i 提交于 2019-12-22 05:53:45
问题 I want my site to be indexed in search engines except few sub-directories. Following are my robots.txt settings: robots.txt in the root directory User-agent: * Allow: / Separate robots.txt in the sub-directory (to be excluded) User-agent: * Disallow: / Is it the correct way or the root directory rule will override the sub-directory rule? 回答1: No, this is wrong. You can’t have a robots.txt in a sub-directory. Your robots.txt must be placed in the document root of your host. If you want to

SMTP ERROR: Failed to connect to server: Connection refused (111) ERROR MESSAGE

旧巷老猫 提交于 2019-12-22 05:29:08
问题 I'm new to PHPMailer , and I just downloaded it with Composer and coded this as index.php : <?php require_once 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; $m = new PHPMailer; $m->isSMTP(); $m->SMTPAuth = true; $m->SMTPDebug = 2; $m->Host = 'smtp.mail.yahoo.com'; $m->Username = 'vagefipooya@yahoo.com'; $m->Password = 'MY PASSWORD'; $m->SMTPSecure = 'ssl'; $m->Port = 465; $m->IsHTML(true); $m->SetFrom('pouyavey@gmail.com'); $m->FromName = 'Pouya Vaghefi'; $m->addReplyTo('pouyavey

SSL Error on Port 443, Page is not showing and resulting in error 404

别来无恙 提交于 2019-12-22 04:46:20
问题 I just recently had to find a way to get a SSL certificate for my domain as facebook required this by the 1st of October as you may aware. Therefore I signed and installed my startssl certificate on my server. Now my problem is, when I try to go to one of my https sites it always asks me to make an exception for my certificate (which is okay at the moment) but after creating this exception my Server, which is as I know a linux server with an cPanel backend, fires a 404 page not found

How to handle POST request to PERL from html

孤街醉人 提交于 2019-12-22 01:23:47
问题 I am writing a small cPanel plugin which basically submit an html form to a perl file over ajax request to the perl file. The type of the request is POST as I need to send some data to the script. My Question is how can I handle the POST data in perl? Now, I have found few implementations with the CGI library, however I do not have that available as default cPanel perl module. Furthermore I have found few examples with the LWP library, however I am failing to understand those. Can someone

Whitelist IP addresses ranges using cPanel

*爱你&永不变心* 提交于 2019-12-22 01:18:45
问题 I am trying to connect a Google Docs extension to a MySQL database via JDBC Service. For that, I have to whitelist the IP addresses as per https://developers.google.com/apps-script/guides/jdbc#setup_for_other_databases How can I do this quickly using CPanel, since there are a few hundreds of them? One by one seems like an awful work to do...... 回答1: This was a HUGE issue for me. This was my solution. 64.18.0-15.% 64.233.160-191.% 64.102.0-15.% 66.249.80-95.% 72.14.192-255.% 74.125.% 173.194.%

CakePHP 1.3: High CPU Usage

杀马特。学长 韩版系。学妹 提交于 2019-12-22 01:06:38
问题 I have a CakePHP application that is running on a shared hosting account, which the provider has been bugging me a lot (A2HOSTING) that my account is excessively using CPU resources, sometimes 100%. Just on the last few hours alone, CPanel is reporting high CPU Usage. I have spoken with them and they said that everything is pointing to the 'webroot' directory. There I only have index.php and css.php . Any ideas, what can be causing this issue, and what can I do to fix it, as they are

Pointing my domain to my node.js instance

与世无争的帅哥 提交于 2019-12-22 00:52:37
问题 I own a server running whm / cpanel, and I have recently been experimenting with node.js. I have a little node test server running and i would like to point a domain at it. Up till now, I have been using whm to create accounts and deal with domains, but this is a different scenario, and I have little knowledge about how to make a domain point to something on my server when there are multiple other domains pointing to other different things on my server at the same time. Thanks 回答1: Ok, I have

Find original main domain name based on add-on domain name

馋奶兔 提交于 2019-12-21 23:11:03
问题 This may not even be possible but I'm trying to figure out the URL of the main domain for an add-on domain. Lets say for example the site is at mymaindomain.com. If I go to http://mymaindomain.com/cpanel (or :2082 or :2083) I get nothing. That is because mymaindomain.com is an add on domain for the hosting account. Lets say the primary domain on the account is myprimarydomain.com and this was the domain originally set up with the hosting account. However, this domain is no longer valid and

How to deploy Laravel 5.5 app to Godaddy cPanel shared hosting

大憨熊 提交于 2019-12-21 02:47:35
问题 I'm relatively new to Laravel. I'm confused on what is the proper way to deploy a Laravel 5.5 app to a Godaddy cPanel shared hosting. I've read multiple posts on the subject and they give conflicting advice. Part of what I'm not clear on is do I copy all my files to the server and then run the following composer commands?: composer install --optimize-autoloader and php artisan config:cache I get the part where I should create a folder on the server outside of the public_html folder, placing