Uninstall Current Servers ( Xampp )
sudo -i cd /opt/lampp ./uninstall
sudo rm -r /opt/lampp
Uninstall Current PHP versions
sudo dpkg-reconfigure libdvd-pkgsudo apt-get purge 'php*'
sudo apt autoremove
sudo apt update
Uninstall Current Laravel and Composer
composer global remove laravel/installer
sudo rm /usr/local/bin/composer
Installing Apache Server
sudo apt install apache2
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
Installing MariaDB
sudo apt install mariadb-server mariadb-client
if had some issue please refer following page
https://downloads.mariadb.org/mariadb/repositories/#mirror=rise
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
When prompted, answer the questions below by following the guide.
- Enter current password for root (enter for none): Just press the Enter
- Set root password? [Y/n]: Y
- New password: Enter password
- Re-enter new password: Repeat password
- Remove anonymous users? [Y/n]: Y
- Disallow root login remotely? [Y/n]: Y
- Remove test database and access to it? [Y/n]: Y
- Reload privilege tables now? [Y/n]: Y
USE mysql; UPDATE user SET plugin='' WHERE user ='root';sudo mysql -u root -p
FLUSH PRIVILEGES; EXIT;
GRANT ALL PRIVILEGES ON *.* TO 'superadmin'@'localhost' IDENTIFIED BY 'very_strong_password';
Install PHP 7.4 and Related Modules
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
php -v
sudo apt update
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-gd php7.4-bcmath php7.4-xml php7.4-cli php7.4-zip
sudo gedit /etc/php/7.4/apache2/php.ini
line:837 file_uploads = On line:857 allow_url_fopen = On line:187 short_open_tag = On line:409 memory_limit = 256M line:846 upload_max_filesize = 100M line:388 max_execution_time = 360 line:405 max_input_vars = 1500 line:962 date.timezone = America/Chicago
Install phpMyAdmin
sudo apt install phpmyadmin+------------------------+ Configuring phpmyadmin +-------------------------+
| Please choose the web server that should be automatically configured to |
| run phpMyAdmin. |
| Web server to reconfigure automatically: |
| |
| [*] apache2 |
| [ ] lighttpd | |
| <ok> |
+---------------------------------------------------------------------------+
+------------------------+ Configuring phpmyadmin +-------------------------+
| |
| The phpmyadmin package must have a database installed and configured |
| before it can be used. This can be optionally handled with |
| dbconfig-common. |
| |
| If you are an advanced database administrator and know that you want to |
| perform this configuration manually, or if your database has already |
| been installed and configured, you should refuse this option. Details |
| on what needs to be done should most likely be provided in |
| /usr/share/doc/phpmyadmin. |
| |
| Otherwise, you should probably choose this option. |
| |
| Configure database for phpmyadmin with dbconfig-common? |
| |
| <Yes> <No> |
| |
+---------------------------------------------------------------------------+Installing Composer
sudo apt install php7.4-cli unzip
cd ~
curl -sS https://getcomposer.org/installer -o composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
composer
Installing Laravel
cd ~/@Projects/Laracomposer create-project laravel/laravel example-app
cd example-app/
Installing Crudbooster
composer require crocodicstudio/crudbooster=5.5.*
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
namespace Database\Seeders; // Fix: Target class [CBSeeder] does not exist.
php artisan crudbooster:install
php artisan serve



Comments
Post a Comment