CORS (resource sharing between different sources) is browser technology that allows a web page to access resources from another domain. To enable CORS in Apache2, you must first activate the headers module, in Ubuntu Server, you can do this with the command:
.htaccess – (hypertext access) additional configuration file for the Apache web server and similar servers. In order for the file to be processed by the Apache server, the “AllowOverride All” option must be in the configuration file for the specified directory.
nginx (engine x) — it is a web server and reverse proxy server, as well as a mail proxy server. Install on Ubuntu with the command:
I will give examples of setting logging for nginx. To change the log settings, open the nginx configuration file in any text editor:
I once noticed the following notification when writing a PHP script:
I will give an example of a PHP script to which I send SMS messages through the GoIP4 gateway. First, we choose tariffs with only monthly charges (I chose everything, excluding with daily charges, since there are fewer of them):
phpMyAdmin is a web application written in PHP that allows you to administer MySQL databases through a browser. The easiest way to install phpMyAdmin is to download the archive with the latest version from the official website www.phpmyadmin.net and unpack it into the desired www directory, then you can open http://HOST/phpmyadmin/setup/ in the browser and […]
To hide the Jetpack menu for subscribers and regular users, it’s enough to add the following code to the active theme functions.php file: Also for this there are several plugins, but those that came across to me are quite old.
I noticed some error when activating Jetpack: The Jetpack server encountered the following client error: Verification secrets not found The reason was found in restricted access over IP through .htaccess to the file wp-login.php, as it turned out that access to this file can not be blocked if Jetpack is used. That’s why I found […]
Recently, on the WordPress site, I noticed the problem of sending messages via Contact Form 7 from devices with the iOS operating system. If you used Google reCAPTCHA, when you clicked on the Send button, the page was updated for a very long time and reCAPTCHA reported a wait error, if you disable reCAPTCHA, then […]