install vim
first step check the server is 18.0 or not
check the firewall about the apache
include the "Apache Full" to the ufw (unified firewall)
allow the apache2 in ufw
install curl
check the localhost
this should give you the default apache page
install mysql server
then configure with this command and set admin password
check with this command
it will give you the mysql shell
include a private repolist
most impoerant update your repository
install php7.2
check the version with this command
go to /var/www/html
and delete everything inside the html folder .dont delete the html folder inside the html foldergo to
create the file
write this line
save and exit
you should see the php information
install php module
install php mysql module
install composer
go to the home directory
download the composer file
=> php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
install wget
import the hash file
=> HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
verify the installation
=> php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
if everything ok then this message will show
Installer verified
install the composer
test the composer with
install laravel
the laravel command wil save in the ~/.composer/vendor/bin/ dirctory
create an alias in the bashrc file [you can also add the path]
add this line exactly after the pound sign
go to the /var/www/html
it will create the application then
Create a user in the database
create a database 'test' you can give any name
exit from mysql
go to application folder
edit the
then save and exit
=>enter the command
very important
in the applciation folder there is a file name server.php change the name to index.php
go to your ip address in the browser
this it
additionaly you candownload the single php file from adminer.org for database administration its a single page application
downlaod the adminer.php then
then reload the server