Skip to content
This repository has been archived by the owner on Nov 28, 2021. It is now read-only.

Commit

Permalink
vstpd by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleo Menezes Jr committed Dec 1, 2020
1 parent c738137 commit c6f59df
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 155 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Maybe for those who are used to doing everything for the terminal, they don't ca

<br>

# ⚈ How to get start
# ⚈ How to get started
<p>
Download the deb version available here <a href="#">https://github.com/CleoMenezes/LAMPP-Manager/releases/tag/v0.0.2</a>), it is currently available only in deb. In the future I think about migrating to Flatpak. Install via your package installer probably just by opening the file. Install it as you normally do with any other program.
When the installation is finished, no other process is necessary.
Expand Down
7 changes: 5 additions & 2 deletions configuration files/000-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<Directory "/var/www/html">
AllowOverride All
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
35 changes: 22 additions & 13 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ echo '#################### Welcome LAMPP Manager install ####################'
echo ; echo ; echo
echo '>> This script will install everything you need to have LAMPP on your computer.'
sudo apt install wget
sudo apt update
echo ; echo ; echo
echo '#################### Now lets install Apache2 ####################'
echo ; echo ; echo
sudo apt install apache2 -y
sudo apt purge -y apache2 && sudo apt install -y apache2
echo ; echo ; echo
echo '#################### Lets set permission to html folder. ####################'
sudo chmod 777 -R /var/www/html
echo ; echo ; echo

echo '>> Take a look if you installed correctly by accessing localhost.'
echo ; echo ; echo
sensible-browser localhost
Expand All @@ -31,9 +36,9 @@ echo '>> We will also install php-fpm, php-gd, php-curl, php-mysql and libapache
echo ; echo ; echo
sudo apt install php php-fpm php-gd php-curl php-mysql libapache2-mod-php -y
echo 'Check if PHP has been installed correctly'
wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/info.php
sudo mv info.php /var/www/html/
sensible-browser http://localhost/info.php
#wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/info.php
#sudo mv info.php /var/www/html/
#sensible-browser http://localhost/info.php
echo ; echo ; echo
echo '>> I suppose you will also need optimized settings for Wordpress.'
echo ; echo ; echo
Expand All @@ -46,8 +51,8 @@ echo ; echo ; echo

echo '#################### Optimal settings in the php.ini file. ####################'
echo ; echo ; echo
wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/000-default.conf
sudo mv 000-default.conf /etc/apache2/sites-available/
#wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/000-default.conf
#sudo mv 000-default.conf /etc/apache2/sites-available/
echo ; echo ; echo
echo '#################### Lets install phpMyAdmin. ####################'
echo ; echo ; echo
Expand All @@ -73,8 +78,8 @@ sudo chown -R www-data:www-data /usr/share/phpmyadmin
echo ; echo ; echo
echo -e '>> It is ideal that you create the phpMyAdmin database and assign it to our user as in the example below. You can do later:\n\nsudo mysql -u root -p\nCREATE DATABASE phpmyadmin;\nGRANT ALL PRIVILEGES ON phpmyadmin.* TO your_username;\n FLUSH PRIVILEGES;.'
echo ; echo ; echo
wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/phpmyadmin.conf
sudo mv phpmyadmin.conf /etc/apache2/conf-available/
#wget https://github.com/CleoMenezes/LAMPP-Manager/blob/master/configuration%20files/phpmyadmin.conf
#sudo mv phpmyadmin.conf /etc/apache2/conf-available/
echo ; echo ; echo
echo '>> Lets enable the snippet for the configuration'
echo ; echo ; echo
Expand All @@ -96,9 +101,13 @@ echo '#################### Lets install VSFTP. ####################'
echo ; echo ; echo
sudo apt-get install vsftpd
echo ; echo ; echo
echo '#################### Lets set permission to html folder. ####################'
sudo chmod 777 -R /var/www/html
echo ; echo ; echo
sleep 3;
echo 'Enjoy!';
sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2 -y
sudo apt purge apache2 -y
sudo apt install apache2 -y
sudo apt purge libapache2-mod-php -y
sudo apt install libapache2-mod-php -y


echo ; echo ; echo; echo ; echo ; echo
echo 'Restart LAMPP Manager and Enjoy!'

6 changes: 3 additions & 3 deletions interface.glade
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
</packing>
</child>
<child>
<object class="GtkLabel" id="proftp_status">
<object class="GtkLabel" id="ftpd_status">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">.</property>
Expand Down Expand Up @@ -639,7 +639,7 @@
</packing>
</child>
<child>
<object class="GtkImage" id="ftp_img_status">
<object class="GtkImage" id="ftpd_img_status">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-missing-image</property>
Expand Down Expand Up @@ -675,7 +675,7 @@
</packing>
</child>
<child>
<object class="GtkLabel" id="ftp_port2">
<object class="GtkLabel" id="ftp_port">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">-</property>
Expand Down
Loading

0 comments on commit c6f59df

Please sign in to comment.