You should be able to see the following information:Ĭongratulations. Save and close the file, then open your favorite web browser and access the file by using your server IP address in the URL followed by the name of the file. To create the file, run the following command: nano /var/www/html/info.php To check if the PHP files are being executed on the server, you can create a sample info.php file and access it from your web browser. Verify if the PHP files are being executed on the server If you are using Nginx and PHP-FPM, you should restart the PHP-FPM service. If you are using Apache as a web server, you need to restart it for the new configuration to be loaded and for the changes to take effect. Once you change the settings, save and close the file. Loaded Configuration File: /etc/php/7.3/cli/php.iniĮdit the file using a text editor of your choice. # php -ini | grep "Loaded Configuration File" It will return the path to the php.ini file which is currently loaded. ![]() ![]() To find the path to this file, you can use the command below: php -ini | grep "Loaded Configuration File" You can do this by editing the php.ini file. Next thing you may want to do is to customize the PHP 7.3 settings according to your requirements. Editing the PHP 7.3 settings on a Ubuntu 18.04 VPS To verify the installation is completed, run the following command: php -v MAC UPDATE PHP TO 7.3 INSTALLTo install PHP 7.3, together with some of the most commonly used extensions, run the following command: apt install php7.3 php7.3-cli php7.3-common php7.3-opcache php7.3-curl php7.3-mbstring php7.3-mysql php7.3-zip php7.3-xml Php7.3-xmlrpc - XMLRPC-EPI module for PHP Php7.3-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP Php7.3-readline - readline module for PHP Php7.3-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary) ![]() Php7.3-opcache - Zend OpCache module for PHP Php7.3-mbstring - MBSTRING module for PHP Php7.3-intl - Internationalisation module for PHP Php7.3-interbase - Interbase module for PHP Php7.3-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary) Php7.3-dev - Files for PHP7.3 module development Php7.3-common - documentation, examples and common module for PHP Php7.3-cli - command-line interpreter for the PHP scripting language Php7.3-cgi - server-side, HTML-embedded scripting language (CGI binary) Libphp7.3-embed - HTML-embedded scripting language (Embedded SAPI library) Libapache2-mod-php7.3 - server-side, HTML-embedded scripting language (Apache 2 module) Output: php7.3 - server-side, HTML-embedded scripting language (metapackage) To view the list all of all available PHP 7.3 packages, you can execute the following command: apt-cache search php7.3 We can now install PHP 7.3 on your Ubuntu 18.04 VPS. Add Ondřej Surý’s PPA repositoryįirst, let’s install the following required packages: apt install software-properties-common python-software-propertiesĪfter the installation is complete, add the Ondřej PPA: add-apt-repository ppa:ondrej/php Once your system is fully up to date, we can now proceed with the PHP 7.3 installation. MAC UPDATE PHP TO 7.3 SOFTWAREThis will update the package index and will update the software currently installed on the server to the latest version. Once logged in, let’s make sure that your Ubuntu 18.04 server is up-to-date by running the following commands: apt update Getting Startedįirst, you will need to login to your server via SSH as the root user: ssh -p PORT_NUMBERĪnd replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number. Verify if the PHP files are being executed on the serverįor the purposes of this tutorial, we will use an Ubuntu 18.04 VPS.įull SSH root access or a user with sudo privileges is also required.
0 Comments
Leave a Reply. |
AuthorJuan ArchivesCategories |