Install the following packages if necessary: $ sudo apt-get update If this module is not in your stack, you can install it manually following the steps below. It is only capable of looking up the IP address of a client that connects to the web server, as opposed to looking up arbitrary addresses. The mod_geoip2 module embeds GeoIP database lookups into the Apache web server. Run the test script with the following command: $ php connect.php $ $result = $conn->query('SELECT TOP 10 * FROM. $ sudo ACCEPT_EULA=Y apt-get install -y msodbcsql mssql-tools unixodbc-devĬreate a file called “connect.php”: $ nano connect.phpĪdd the following PHP script, replacing the IP_ADDRESS, PORT and PASSWORD placeholders with their respective values: $ setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ) $ sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools unixodbc-devĮdit the /opt/bitnami/php/etc/php.ini file and add the lines below to it: $ extension=sqlsrv.so Install the tool with apt-get and pecl: $ sudo apt-get update DebianĪdd the microsoft packages to apt-get: $ sudo su The process is different for Debian and Ubuntu. You need to install the PHP Linux Drivers for SQL Server. To obtain the PHP version, use the command php -v at your console prompt. Choose the appropriate section below depending on the PHP version bundled with your stack and the platform. The steps to install the module differ for PHP5 and PHP7, and Ubuntu and Debian. Microsoft SQL Server is a relational database management system developed by Microsoft. To enable the module, add the following line to the php.ini file. $ sudo apt-get install build-essential libtool autoconf unzip wgetĭownload the latest source package from the web page, uncompress it and compile the module. Install the following packages: $ sudo apt-get update If that is not the case, install it manually following the steps below: It is already included in recent Bitnami Stacks by default. $ sudo /opt/bitnami/ctlscript.sh restart php-fpmĪPCu is the APC User Cache module. If it exists, simply enable it in the PHP configuration file.Īfter modifying the PHP configuration file, restart both Apache and PHP-FPM for the changes to take effect: $ sudo /opt/bitnami/ctlscript.sh restart apache Before installing a new module, check that it is not already included. NOTE: Bitnami stacks already include a number of PHP modules, which are installed but not active. Find instructions for installing specific PHP modules. To install a PHP module, the typical process is to install the module (either via the package manager or through a manual build/install process) and then activate it in the above configuration file. Refer to the FAQ for more information on these changes. The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. To identify your Bitnami installation type and what approach to follow, run the command below: $ test ! -f "/opt/bitnami/common/bin/openssl" & echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation." On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). Of course, it is not that bad, but I would like to have it as it should be, not with such a result.NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. This is usually due to inconsistent file permissions. The update cannot be installed because we were unable to copy some files. It tells me the install/update was unsuccesful even though it did it! It takes longer, roughly twice as much time than some days ago (before it broke). Now I CAN update and install plugins but: Sudo chown -R daemon:daemon ~/apps/wordpress/htdocs/wp-content/uploads Sudo chown -R bitnami:bitnami ~/apps/wordpress/htdocs/wp-content/upgrade Sudo chown -R bitnami:daemon ~/apps/wordpress/htdocs/wp-content/plugins Sudo chown -R bitnami:daemon ~/apps/wordpress/htdocs I followed and applied the following permissions: sudo find ~/apps/wordpress/htdocs/ -type f -exec chmod 644 \ Not sure what I changed in my Wordpress some days ago but today I was not able to update/install any plugin.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |