![]() To fix phpmyadmin error write below: sudo apt-get install libapache2-mod-php7.0 Now tell Apache to use PHP 7 instead of PHP5.5.9 and shoe reflection on phpinfo.php file do this below: sudo a2dismod php5īut now phpmyadmin error occur. If any error or forget to select Apache when prompt at phpmyadmin installation time then for go back and restart setup again write below: sudo dpkg-reconfigure phpmyadmin Now to check go browser and write: sudo service apache2 restart Now last install phpmyadmin, to install write: sudo apt-get update Here test1234 is my given password for mysql when install prompt.įirst write : sudo apt-get install php7.0 Then : sudo apt-get remove mysql-server mysql-common libmysqlclient18 sudo apt-get install software-properties-common sudo apt-key adv -recv-keys -keyserver hkp://:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb trusty main' sudo apt-get install mariadb-server libmariadbclient18 sudo service mysql start We first upgrade Mysql by this steps of commands:įor uninstall mysql: sudo service mysql stop Write : sudo apt-add-repository ppa:ondrej/php If this command ( sudo apt-get dist-upgrade) not upgrade all the package then do the below. Now it is time to upgrade PHP, Apache, Mysql. Now check your PHP, Apache, Mysql version by this way:įor check version write on terminal for php write php -v, for apache write apache2 -v and for mysql write mysql -V. Update, as mentioned above, will get available list of software and update the local lists while upgrade will install all new available versions of software in your computer. What actually this do: update is different from upgrade. You can add Ondrej’s PPA, to get to the most stable version. ![]() If it not upgrade Apache write below: add-apt-repository ppa:ondrej/apache2 ![]() Ok what next: write this sudo apt-get dist-upgrade Where get user name? see your terminal when open, it will show your user name like this: here first prefix is my user name. Here imran is my pc user name, write your user name. create a php file named phpinfo.php by gedit default ubuntu editor in location /var/To give permission to the /html folder write following: sudo chown -R imran /var/www/html Then go to browser and write you will see apache home page. Now you have installed PHP 5.5.9, Apache 2.4.7, mysql 5.4. Then write below sudo tasksel install lamp-server If any error write this below: sudo apt-get install tasksel -fix-missing know moreĪfter that write the following: sudo apt-get install tasksel apt-get update downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies. You need to run apt-get update once before installing new packages as this updates the local repository information from all remote repositories and PPA’s. Open terminal and write the following: sudo apt-get update Sudo apt-get purge –auto-remove mosquitto-clients Sudo apt-get purge –auto-remove mosquitto type d -exec chmod 755 \ # Change file permissions rw-r–r– “$NVM_DIR/bash_completion” # This loads nvm bash_completionįOLDER & FILE PERMISSION CHANGE BEFORE UPLOAD LIVE: Npm install npm install –unsafe-perm node-sass We just change the Listen port here like below:Īnd now we restart Apache like below command:Īlso you can check the port is working by command below on terminal: # vim: syntax=apache ts=4 sw=4 sts=4 sr noet # have to change the VirtualHost statement in # If you just change the port or add more ports here, you will likely also It will open like below on terminal window: To configure Apache port we write on Ubuntu terminal like below: Note: Apache2 must install after LEMP stack full setup/configuration done. $ sudo apt-get install php libapache2-mod-php php-cli php-mysql To install Apache2: $ sudo apt-get install apache2 Now I want to access Apache root by hit or To do this first install Apache2 and then I have to modify Apache port configuration file. I got Nginx root on browser by hit the URL or or. Now I want to run also Apache beside Nginx. My Nginx run on port 80, I do not disturb it. ![]() Or you can install a package like below use for check system resources sudo apt-get update Then to see system info write the below command in terminal Install software to see linux system information Give read/write permission to some folderĬheck system version like check Ubuntu version installed on the PC Install some package/extension like install zip extension for PHP7.3
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |