How to locate the php.ini file UBUNTU

How to locate the php.ini file (xampp) Ubuntu

If you have multiple php-versions (xampp etc) running, I find the easiest is to use:



php --ini


Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File:         /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

How to completely remove PHP on ubuntu ?

 How to completely remove PHP?

This should completely remove any package with a name that starts with php and anything related to it.

sudo apt-get purge 'php*'

 

source https://askubuntu.com/questions/59886/how-to-completely-remove-php

Laravel error migrate: could not find driver (SQL: select * from

On Ubuntu you should be able to install the necessary PDO parts from apt using

Installing PHP mysql and PDO driver on MySQL Linux server

sudo apt-get install php-mysql

sudo apt-get install pdo-mysql

 

LARAVEL on ubuntu PDOException SQLSTATE[HY000] [2002] No such file or directory

It will ask you for the related password. Then once you get the mysql promt type the next command:

mysql> show variables like '%sock%'

and this script in file .env

DB_SOCKET=/opt/lampp/var/mysql/mysql.sock

source : https://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory

Install Xampp/Lampp on Ubuntu 18.04

Install Xampp/Lampp on Ubuntu 18.04

1.

sudo chmod +x namafilexampp.run
2.
sudo apt install curl php-cli php-mbstring git unzip'
sudo apt-get install composer

3.
composer --version 


Install Laravel

1.

cd /opt/lampp/htdocs

2.
composer create-project --prefer-dist laravel/laravel test

3.
apt install php-xml

4.
php artisan serve

Go to
http://127.0.0.1:8000/


done

source : https://medium.com/@diszaid/instalasi-laravel-versi-5-7-pada-ubuntu-18-04-lts-78061b1f4a4f

SAMBA MINT20 global setup between WINX and UBUNTU

 <SOLVED> Samba file sharing using the file manager works between three local network Linux machines running Mint 20, Mint 19.2, and Ubuntu 18.04 with these conditions:

1. The [global] section of the/etc/samba/smb.conf file on each machine must be configured as shown below:
2. Connections originating from the Mint 20 file manager must use the file manager command line with the command "smb://<ip address>/share-name".
3. The /etc/hosts file on each machine must include the host name/ip address of the other two machines.
4. You must create a samba user/password on each machine using the command "sudo smbpasswd -a username".

Mint 20:

Code: Select all

   workgroup = WORKGROUP
   name resolve order = bcast host lmhosts wins
   usershare owner only = false
   client min protocol = NT1
   server min protocol = NT1


Mint 19.2

Code: Select all

   workgroup = WORKGROUP
   name resolve order = bcast host lmhosts wins
   usershare owner only = false
   client max protocol = NT1


Ubuntu 18.04 LTS

Code: Select all

   workgroup = WORKGROUP
   name resolve order = bcast host lmhosts wins
   usershare owner only = false
   client max protocol = NT1

That worked for me!!
Last edited by woverst53 on Thu Jul 16, 2020 5:00 pm, edited 1 time in total.
Top

 

source: https://forums.linuxmint.com/viewtopic.php?f=47&t=324431