Skip to main content

Ubuntu system PHP setup

Tech Easy Solutions


1 php -v

2 apche2

3 mysql

4 sudo apt update

5 sudo apt install apache2

6 sudo apt install mysql-server

7 sudo mysql_secure_installation

8 sudo mysql

9 sudo apt install php libapache2-mod-php php-mysql

sudo apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc

10 sudo nano /etc/apache2/mods-enabled/dir.conf


/etc/apache2/mods-enabled/dir.conf

<IfModule mod_dir.c>

DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

</IfModule>



11 sudo systemctl restart apache2

12 sudo systemctl status apache2

13 apt search php- | less

14 apt show php-cli

15 php -v

16 sudo apt install php-cli

17 sudo apache2ctl configtest

18 sudo systemctl restart apache2

19 sudo nano /var/www/info.php

20 sudo nano /var/www/html/info.php

21 sudo apt update

22 sudo apt install php phpmyadmin php-mbstring php-gettext

23 sudo phpenmod mbstring

24 sudo systemctl restart apache2

25 sudo mysql

26 mysql -u root -p

## update root user password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'ss008';


## change php max value


27 sudo nano /etc/php/7.2/apache2/php.ini

28 sudo systemctl restart apache2



Comments

Popular posts from this blog

How to delete Torrent power account

Sanjay Tech solutions 3 easy tips to delete torrent power account  Step 1 : login in to your account Step 2 : click on more profile settings Step 3 : you see red button with deactivate account click then enter your password Your account deactivate 

Anaconda update error PermissionError(13, 'Permission denied')

sanjay@luck:~$ conda update -n base conda Solving environment: done ## Package Plan ##   environment location: /home/sanjay/anaconda3   added / updated specs:     - conda The following packages will be UPDATED:     conda: 4.4.10-py36_0 --> 4.5.4-py36_0 Proceed ([y]/n)? y Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR conda.core.link:_execute(481): An error occurred while uninstalling package 'defaults::conda-4.4.10-py36_0'. PermissionError(13, 'Permission denied') Attempting to roll back. Rolling back transaction: done PermissionError(13, 'Permission denied') =========== you need to give a writable directory permission. on anaconda install directory. --> $ sudo chmod -R 755 anaconda3 sanjay@luck:~$ sudo chmod -R 777 anaconda3/  ============== sanjay@luck:~$ conda update anaconda-navigator Solving environment: done ## Package Plan ##   environment location: /home/sanjay/anaconda3   added / u