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

Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Tech Easy Solutions Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.  WordPress 5.2.3 hosted on Linux server  need file permission  sudo chown -Rf www-data.www-data  /www/html/worpdressdir change in wp-config

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 

Shopify fully custom contact section block on home page

Tech Easy Solutions Shopify fully custom contact section block on home page <section class="contact-information" >       <!--<div class="left-shape">         <img src="images/left-shape.png" class="img-fluid">       </div>-->       <div class="container c-container">         <div class="row">           <div class="col-lg-6 col-md-6 col-sm-12 col-12">             <div class=" contact-us">                         {% form 'contact' %}                       {% if form.posted_successfully? %}                        <center> <p class="note form-success">                   ...