Tag: Web Server

Configuring Apache Web Server to Run Perl Programs on Windows

Perl scripts can be run in the Apache environment in the same way as PHP scripts. To do this, you need to make a small setting. I installed the web server according to this instruction, if you installed according to a different instruction, then edit the paths to suit your values. 1. Installing Perl on Windows Download Perl for Windows...

How to fix “Configuration File (php.ini) Path” no value (SOLVED)

The phpinfo function shows complete information about the PHP environment, including which modules are enabled, where the configuration files are located, with which options the PHP binaries were compiled, and much more. To use this function in the web server folder create a file and copy to it: <?php phpinfo (); Save the file and open it in a web...

How to install a web server (Apache, PHP, MySQL, phpMyAdmin) on Linux Mint, Ubuntu and Debian

If you are a webmaster, or a PHP programmer, or you just need to run a website on your computer, then you can do it using a web server. On Linux, the web server (Apache) and related components (PHP, MySQL, phpMyAdmin) are installed in just a few commands. This tutorial will show you how to set up a web server...

What is open_basedir for and how to use open_basedir

The open_basedir directive is specified in the PHP configuration file (php.ini) and sets the directories that PHP can access. Access refers to any actions with files: opening (for example, fopen() or gzopen()), writing and executing. If the open_basedir directive is set and an attempt is made to run a file that is outside the listed directories, the script will not...

How to change default export settings in phpMyAdmin

phpMyAdmin has handy tools for exporting databases or individual tables. All this can be done in the web interface without using the command line. To export a table, click on its name on the left side of the phpMyAdmin window, and then go to the “Export” tab. A window with two export methods will be shown: Quick - display only...

Password and unix_socket authentication in MySQL and MariaDB. Error “#1698 - Access denied for user ‘root’@’localhost’” (SOLVED)

How to fix #1698 - Access denied for user ‘root’@’localhost’ In the latest versions of MariaDB (possibly MySQL), unix_socket authentication is used by default. If you are not familiar with it, then you might have encountered the error “#1698 - Access denied for user ‘root’@’localhost’”. Let's take a look at what unix_socket authentication is in MySQL and MariaDB, and how...

Error “Unable to load dynamic library ‘xmlrpc.so’” (SOLVED)

When running a web server or running PHP scripts on the command line, you may encounter an error: PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc.so' (tried: /usr/lib/php/modules/xmlrpc.so (/usr/lib/php/modules/xmlrpc.so: cannot open shared object file: No such file or directory), /usr/lib/php/modules/xmlrpc.so.so (/usr/lib/php/modules/xmlrpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 In fact,...

How to install Apache web server with PHP, MySQL and phpMyAdmin on Windows

Table of contents 1. Windows web server 2. How to install Apache on Windows 3. How to install PHP on Windows 4. PHP 8 setup 5. How to install MySQL on Windows 6. How to install phpMyAdmin on Windows Conclusion Windows web server A web server is a program that is designed to process requests for websites and send website pages to users. The most...

How to set up Varnish, rule examples

Table of contents 1. How to change Varnish options 2. How to change cache retention time in Varnish 3. How to prevent Varnish from creating new cache for different browsers 4. A 403 page got into the Varnish cache and now it is shown to all users 5. How to make Apache logs show real IP address instead of 127.0.0.1 when used with Varnish 6. How...

Error “Cannot load modules/libphp7.so” (SOLVED)

Some Linux distributions have already started migrating to PHP 8. In some distributions the new version of PHP removes the old one, as a result of which the web server may stop working due to the fact that the files specified in the web server configuration are missing or renamed. Examples of errors you may encounter: httpd: Syntax error on...
Loading...
X