Category Archives: webhosting
Disable xmlrpc.php in WordPress
What Is Xmlrpc.php in WordPress and Why You Should Disable It
Simply navigate to the Plugins › Add New section from within your WordPress dashboard. Search for Disable XML-RPC and install the plugin .
If you’d want to only turn certain elements of XML-RPC off, but still allow certain plugins and features to work, then use the following plugins instead:
- Stop XML-RPC Attack. This plugin will stop all XML-RPC attacks, but it’ll continue to allow plugins like Jetpack, and other automatic tools and plugins to retain access to the xmlrpc.php file.
- Control XML-RPC Publishing. This allows you to retain control and use over the remote publishing option afforded by xmlrpc.php.
New WordPress htaccess Permalink Rewrite Rules
See: Examples of original and the new .htaccess rewrite rules for permalinks here:
Managing Mailbox Size and Quota on Exchange Server 2016
Global Settings: You can configure mailbox quotas from the Exchange admin center (EAC) web interface. To do this, go to the section Servers > Databases > select the required database > Properties > Limits. Set the necessary quotas on the Limits tab.
Customize Per Mailbox: Mailbox quota settings can also be changed from EAC (Recipients > Mailboxes > Properties > Mailbox usage > More Options > Customize the quota settings for this mailbox).
Example: Change to “unlimited” instead of 2GB default maximum.
Issue a warning at (GB) 9.9
Prohibit Send at (GB) “unlimited”
Prohibit send and receive at (GB) “unlimited”
Install Apache, PHP and MySQL on Windows Server 2008 R2 SP1
Apache doesn’t provide binaries for Windows, however Apache provides links to several third-party sites that do provide binaries, for example, Apache Lounge. From the Apache Lounge website, and depending on your Windows Server version (32bir-x86 or 64bit-x64 ) we can download either the 32-Bit version (win32) or the 64-Bit one (Win64)
Download the Prerequisites – Example: 64bit versions:
Go to Apache Lounge: Apache2.4.25-win64-VC14
The File Download: (httpd-2.4.25-win64-VC14.zip)
Go to windows.php.net/download: PHP-7.1-VC14-x64-Thread-Safe
The File Download: (php-7.1.5-Win32-VC14-x64.zip)
Find this at Microsoft:
Installation Instructions for Apache:
First Install the C++ Redistributable Visual Studio 2015. It will show up in your Programs and Features in the Control Panel. Using the PHP-7.15 VC14 x64 thread safe and the Apache2.4.25-Win64=VC14, you should also use the C++ VS2015 x64 redistributable (rather than VS2017 version). Make everything match or you will have errors when you try to start Apache after you
Unzip the Apache2.4.25 VC14 and then copy the extracted contents to a new folder c:/Apache24 (that is the ServerRoot in the config).
Default folder for your your web pages is DocumentRoot “c:/Apache24/htdocs”
Note: If you unzip to a location other than C:\Apache24, you will need to change ServerRoot in the httpd.conf, and also change in httpd.conf the Documenroot, Directories, ScriptAlias, also when you use the extra folder config file(s) change to your location there.
We may need to set up a fully qualified domain name at this point.
Starting Apache in a DOS box as Administrator. In other words, ppen a command prompt “As Administrator.”
Change the directory as follow:
At this point, It may appear to you that the system is hanging, but it is NOT hanging. In fact, it means there are no errors, at least those that are reported at the moment, and that Apache is probably started and running. Test Apache by opening a web browser and typing localhost in the address bar. Hit enter. “IT WORKS!”
To “Break” from the “Hang” in the DOS command prompt:
After you install PHP7, then come back here and
Install Apache as a service:
C:\apache24\bin> httpd.exe -k install
Installation Instructions for Installing PHP7.1.5:
Using Windows Explorer (file explorer), create a new folder named php at the Windows C: drive root:
Now, extract all the folders and files from php-7.1.5-Win32-VC14-x64.zip.
Then copy those extracted folders and file contents to the new folder:
Now, go get and install Notepad++ if you have not already installed it. This text editor (or one like it) is a must to open and edit various text configuration files for php and apache, etc.
Here is the download page for Notepad++: https://notepad-plus-plus.org/download/v7.4.1.html Get the 64-bit or 32-bit version of Notepad++ that your system requires:
But, here is the installer file for the 64-bit version of Notepad++
Within the php root c:\php, open the php.ini.production file and save it as a file named php.ini in the root folder c:\php
Using Windows Explorer (file explorer) find the file called php.ini.production. Open it using Notepad++ editor. Now, on the Notpad++ menu, click File, select SAVE AS and change the name of the file to php.ini before saving it.
APPEND the following items to the existing items within the “PATH” System Environment Variable. Note a Semicolon ; must separate each path item. If you don’t know how to do this, you must learn.
Go to a Dos command prompt and type in:
path (press enter)
You will see a display of what is in the current path. At this point, the above-appended path items are not yet included in the current path.
Log Off Windows, then Ctrl-Alt-Del and log into Windows again.
Now, open a command prompt and type:
path (press enter)
You will see the existing path containing the above-appended path items.
Integrate / Connect Apache2 to your PHP7:
Using Windows Explorer, go to c:\apache24\conf
Open with Notepad++ the file called httpd.conf
Scroll down within the httpd.conf file and just below all the “LoadModule” lines, insert the following new lines:
LoadModule php7_module C:/PHP/php7apache2_4.dll
DirectoryIndex index.html index.php
AddHandler application/x-httpd-php .php
Save the changes to httpd.conf file and then close Notepad++
Log off Windows, and log into Windows again.
Test Apache now having php referenced from the httpd.conf of Apache. How, just like we did above.
Start Apache in a DOS box as Administrator. In other words, open a command prompt “As Administrator.”
Change the directory as follow:
and type httpd.exe at the prompt (and press enter).
If it “hangs” without errors, you are good! Open a browser and input localhost in the address bar. IT WORK!
In the command prompt window, enter Ctrl+C in order to break to the C:\> prompt.
In Windows, click Start, point at Administrative Tools, and select Services. Then, in the Services list, find the Apache service near the beginning of the list, right-click the Apache service and left click /or select Properties. Find the correct TAB to STOP the Apache service.
Remember that I said above, after you install PHP7, then come back here and
Install Apache as a service:
C:\apache24\bin> httpd.exe -k install
Test localhost in your Web Browser. IT WORKS!
Displaying PHP INFO:
Open Notepad++ text editor and create a new file (on the menu, click file, new). Now, save the new with a filename of phpinfo.php
While you still have the new “phpinfo.php” file displayed within Notepad++, now insert the following contents on line 1 of the new file.
<?php phpinfo() ; ?>
Save the file named phpinfo.php with only this one line of content. Copy or save this file to the root folder of the Apache http docs. In other words, save or copy the new phpinfo.php file into the following target sub-folder.
Open a web browser, type into the address bar:
Open TCP Port 80 In Windows Firewall
Open TCP Port 443 in Windows Firewall the same way.
Configure httdd.conf using Notepad++
Find httpd.conf in C:\apache24\conf\
#Insert next line & change svr (host header domain com or net)
Restart Apache service in the Services Module
Start, Administrative Tools, Services.
Set Up a DNS Entry — “A” (Address) record, pointing to your server’s fully qualified domain name and the IP address
You should now be able to connect from a remote
= = = = = = To be continued = = = =
Double click ApacheMonitor.exe, or put it in your Startup folder.
Prerequisites For Installing CMS Made Simple Version 2.1.6
Readme File for CMS Made Simple (PDF)
- The installation assistant requires a PHP environment with a minimum version of PHP 5.4.0.
- For new installations of CMS Made Simple you should create a new mysql database and database user. The database user
- must have ALL PRIVILEGES to all tables within the new database.
- CMS Made Simple itself requires at least PHP 5.4.11 with numerous libraries enabled (the install assistant will
check for these) including json, tokenizer, xml, and gd.
- Your PHP environment must include the PHAR extension (yes, even for the expanded installer). This is for expanding the archive(s) included within the installation assistant.
Generating an SSL CSR Using OpenSSL on Apache Webserver
Generate an SSL Certificate Signing Request (CSR) on IIS7
What is a CSR? A Certificate Signing Request or CSR is a specially formatted encrypted message sent from a Secure Sockets Layer (SSL) digital certificate applicant to a certificate authority (CA). The CSR validates the information the CA requires to issue a certificate. A CSR must be created before ordering and purchasing an SSL certificate (or activating an SSL certificate already purchased through your domain registrar). How a CSR is generated depends on the web server software used. Once the CSR is generated, it can be submitted to the CA. If the request is successfully validated, the CA will issue the SSL certificate.
Here are the steps to generate a CSR in IIS7 on Windows Server 2008 R2. Why might this be necessary? Well, you may want to install Microsoft Exchange and connect to it via Outlook or Outlook Web Access (OWA) which would require Secure Socket Layer (SSL).
- Click Start
- Select Administrative Tools
- Start Internet Information Services (IIS) Manager
- Click the Server Name
- Double click on the “Server Certificates” button in the “IIS” section, located int he center menu
- Choose the “Actions” menu (on the right)
- Click on “Create Certificate Request (Note: Even if you are renewing an SSL certificate that may be about to expire, use the CREATE Certificate Request and do NOT select renew).
- The Request Certificate wizard will be opened. From here, you will need to enter the information required for the CSR code (details and example listed below):
Common Name: e.g. yourdomain.com or, if you are creating a CSR for your mail server’s subdomain, then enter something like this containing your server’s host header: mx.yourdomain.com or mail.yourdomain.com
Organization: MyCompany Ltd
Organization Unit (eg, section): Communications, IT, Support, Sales etc.
City/ Locality Name: Los Angeles
State or Province Name (full name): California
Country Name (2 letter code): US
- Specify a filename and location to save your CSR code (e.g. c:\certificate\certreq.txt)
- Click Finish
You may view the CSR file using a text editor such as Notepad++ and the certificate request should appear like this:
Image Omitted for security reasons.
Note: When Installing the newly issued (renewal) certificate issued to you by your CA, you must first REMOVE the existing certificate from IIS7 because there will be an installation conflict (between the new certificate and the existing certificate that is still installed on the server. In other words, an error will occur during installation of the new certificate if the existing certificate is not first removed.
This article is based substantially upon Namecheap.com support knowledge base article:
After your new or renewal SSL certificate is issued to you and arrives via email, you may follow these instructions to install it on IIS7, but watch out for the known bug in IIS7.
When you click “Complete Certificate Request” in IIS7 management console, and then browse to find your newly issued *.cer file, when you click Open, you may receive an error message about a “Conflict” explaining that the CSR may not have been issued by the server where you are installing the *.cer file, which is nonsense.
Just continue hitting Retry or OK button a couple times, then hit the cancel button. Refresh the screen in IIS7 Management Console and see if your new certificate is listed there without a Friendly Name associated with it. That is GOOD. Do not remove the installed certificate. Now go to do the Bindings on the IIS7 Default Web Site. See the Second Link (last article) listed two paragraphs above.
Once the bindings are established to https on port 443, then you must restart the default website from within the management console.
Go test that your website can be viewed via https://
The last few lines of the tutorial say:
Click ‘OK’ on the ‘Web Site Bindings’ Window to complete the install.
Important: You must now restart IIS / the website to complete the install of the certificate.
Generate a CSR in Apache with OpenSSL (Certificate Signing Request)
Installing an SSL Certificate to Apache on Windows
This is for a Symantec certificate but should work the same with other certificates like Positive SSL issued by Comodo. Pay attention to the paths for certificate and CA chain files.
In Zpanel, instead of looking here c:/Program Files/apache/etc for help, maybe explore these paths:
A good question at this point is how to first prepare an SSL Certificate Request to be sent to the certificate authority (CA) so that a certificate can be issued to you by the CA.