LAP-server
LAP-server copied to clipboard
A simple Linux+Apache2+PHP server
LAP-Server
A simple LAP (Linux+Apache2+PHP) server without M (Mysql).
Dependency
- apache2
- php
Installation
In Ubuntu:
-
Install apache2 and php:
sudo apt install apache2 libapache2-mod-php
-
clone this repo to some $dir
-
change apache2 config's root directory to this $dir, e.g.
cd /etc/apache2 vim apache2.conf # change "/var/www/html" to $dir, and remove "Indexes" to disable directly access to subdir vim sites-available/000-default.conf # change "/var/www/html" to $dir vim sites-available/default-ssl.conf # change "/var/www/html" to $dir
-
change php's config to enlarge file size's limitation, e.g.
cd /etc/php/7.2/apache2/ vim php.ini # change max_execution_time, max_input_time, memory_limit, post_max_size, upload_max_filesize, and default_socket_timeout
-
change permission:
chmod 777 _ upload
-
restart apache2 service:
service apache2 restart
Usage
Open your browser and look at http://localhost
Features
- Transfer files within LAN:
http://localhost/files.php
- A simple pastebin:
http://localhost/pastebin.php