LAMP is a powerful bash script for the installation of Apache + PHP + MySQL/MariaDB/Percona Server and so on. You can install Apache + PHP + MySQL/MariaDB/Percona Server in an very easy way, just need to choose what you want to install before installation. And all things will be done in few minutes.
cd~/lamp
git reset --hard // Resets the index and working tree
git pull // Get latest version first
chmod 755 *.sh
./upgrade.sh // Select one to upgrade
./upgrade.sh apache // Upgrade Apache
./upgrade.sh db // Upgrade MySQL/MariaDB/Percona
./upgrade.sh php // Upgrade PHP
./upgrade.sh phpmyadmin // Upgrade phpMyAdmin
./upgrade.sh adminer // Upgrade Adminer
Backup
You must modify the config before run it
Backup MySQL/MariaDB/Percona datebases, files and directories
Backup file is encrypted with AES256-cbc with SHA1 message-digest (Depends on openssl command) (option)
Auto transfer backup file to Google Drive (Depends on rclone command) (option)
Auto transfer backup file to FTP server (Depends on ftp command) (option)
Auto delete remote file from Google Drive or FTP server (option)
Hello, i'm trying to install with this script this combination Apache 2.4.27 + PHP 5.3.29 + MySQL 5.7 and gave me this error, last lines:
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
configure: error: libXpm.(a|so) not found.
I can't install your LAMP, i have tried 4 times always this error:
CPU model : Intel(R) Xeon(R) CPU E5-1630 v4 @ 3.70GHz
Number of cores : 8
CPU frequency : 3699.997 MHz
Total amount of ram : 29995 MB
Total amount of swap : 1639 MB
System uptime : 0days, 0:0:43
Load average : 0,63, 0,17, 0,06
OS : CentOS 7.6.1810
Arch : x86_64 (64 Bit)
/usr/include/freetype2/freetype/freetype.h:801:37: error: ‘FT_ENCODING_PRC’ undeclared (first use in this function)
#define ft_encoding_gb2312 FT_ENCODING_PRC
^
magick/annotate.c:1232:23: note: in expansion of macro ‘ft_encoding_gb2312’
encoding_type=ft_encoding_gb2312;
^
/usr/include/freetype2/freetype/freetype.h:801:37: note: each undeclared identifier is reported only once for each function it appears in
#define ft_encoding_gb2312 FT_ENCODING_PRC
^
magick/annotate.c:1232:23: note: in expansion of macro ‘ft_encoding_gb2312’
encoding_type=ft_encoding_gb2312;
^
make[1]: *** [magick/magick_libGraphicsMagick_la-annotate.lo] Errore 1
make[1]: Leaving directory `/root/lamp/software/GraphicsMagick-1.3.30'
make: *** [all] Errore 2
Press any key to start...or Press Ctrl+C to cancel
[Info] Starting to sync time...
[Error] ntpdate is not installed, please install it and try again.
[email protected]:# aptitude install ntpdate
Couldn't find any package whose name or description matched "ntpdate"
Unable to apply some actions, aborting
[email protected]:#
I worked two years with your amazing script but is failling I use it May 11-12, 2022, using simple X-Large AWS EC2 that I use alot, but about 6 minutes fail.
Thank you I wish you luck in all your projects, ✌🏼
In file included from /home/ubuntu/lamp/software/php-7.4.29/main/php.h:441,
from /home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c:28:
/home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c: In function ‘zm_startup_openssl’:
/home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c:1520:58: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function); did you mean ‘RSA_PKCS1_PADDING’?
1520 | REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~
/home/ubuntu/lamp/software/php-7.4.29/Zend/zend_constants.h:53:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c:1520:58: note: each undeclared identifier is reported only once for each function it appears in
1520 | REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~
/home/ubuntu/lamp/software/php-7.4.29/Zend/zend_constants.h:53:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c: In function ‘php_openssl_generate_private_key’:
/home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c:4021:49: warning: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
4021 | rsaparam = RSA_new();
| ^~~~~~~~
In file included from /home/ubuntu/lamp/software/php-7.4.29/ext/openssl/openssl.c:46:
/usr/include/openssl/rsa.h:201:28: note: declared here
201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
+------------------+
| ERROR DETECTED |
+------------------+
Installation mod_wsgi-4.9.1 failed.
The Full Log is available at /lamp/lamp.log
Please visit website: https://lamp.sh/faq.html for help
This error show in debian 10 - debian 11and ubuntu 20
Manage docker containers with PHP
This package provides a nice way to start docker containers and execute commands on them.
$containerInstance = DockerContainer::create($imageName)->start();
$process = $containerInsta
This is a community project and not an official Laravel one
What is Laravel Installer?
Laravel installer includes all installers from the official laravel repositories such as for:
Laravel
Lumen
Spark
phpenv

Sets up a separate rbenv environment for PHP
man page
SYNOPSIS
phpenv-install.sh
UPDATE=yes phpenv-install.sh
DESCRIPTION
The phpenv-install.sh c
php-build
php-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from Sam Stephenson's ruby-build.
Overview
Installation
Contributi