![]() You should see a page containing a table with all php settings displayed. Now, point your browser to ' localhost/index.php'. To verify that php is properly working, create a `index.php` file into the `/srv/www/htdocs/` folder with the following content: Systemctl restart apache2 Testing the installation Now that you have installed php, you have to restart the apache2 webserver: To begin with, you need a cloud server to run the LAMP stack software. Note you need to choose if to install php7 or php5. Zypper in php5 php5-mysql apache2-mod_php5 a2enmod php5īy need in `/etc/apache2/mod_nf` add a lineĪddType application/x-httpd-php. ![]() If instead you want to install PHP5, the steps are the same as above with 'php5' instead of 'php7': Which makes apache treating files with ending `.php` with the correct mime-type, In addition, ensure that in `/etc/apache2/mod_nf` Zypper in php7 php7-cli php7-mysql apache2-mod_php7ĭon't forget to enable mod-php by executing: Make sure you have root access - see above. Also, check the status of Apache with the following command. Once the installation completes successfully, run the following command to check the version of Apache.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |