Jump to content

Hi everyone,

I work with some websites locally, where I try things out before putting the changes online (a couple Wordpress and a prestashop). 

I used Mamp on my Mac machine or Xamp on my old windows to launch a local web server but since lately my Mac isn't in a good shape and I had to reset my windows machine more than once in the last 6 months I thought that using a virtual machine as a local web server would be easier for backup/moving it and wouldn't require much resources.

I tried using ubuntu server, Manjaro and Debian, but I get lost in all the commands to install and start the various services or when I finally get something working I can't access the web server folder cause I don't have permissions or something. I followed guides and tutorials but still can't get it to work.

Never used linux and I have basically zero knowledge of how these services works (ports, versions, etc) as well of how linux handles tasks, services and permissions. 

I'm looking (if it exists) for a distro and/or an app like Mamp or Xamp that handles installation, configuration and permission for me through an interface.

Basically a one click setup of the web server with a folder and a phpMyAdmin, do u know of one?

 

This is something I do at a hobby level beside work and unfortunately I don't have much time/money to invest in it.

 

Thank u everyone

Link to comment
https://linustechtips.com/topic/1113629-easy-web-server-setup-for-noob/
Share on other sites

Link to post
Share on other sites

if you already got a way to run a VM, why are you not just installing windows or macos on it? Seems strange to use an OS you're not familiar with in a VM, unless you're interested in learning of course.... i'd just install windows in the VM, and use xamp like you have before.

I have no signature

Link to post
Share on other sites

Hi,

thank u for the answer, I'm using it mostly on my Mac on which I'm planning a clean install of Catalina in a week or two if there aren't too many bugs... it has only 128GB storage and 8GB of Ram so I was hoping for a VM that takes around 4GB of storage and 512MB of ram...

That's why I was looking at a linux distro, I thought that since a lot of people use those for webservers it would be easy to deploy one on a VM.

Unless I run the Vm with windows xp I doubt I can run both system simultaneously with just 8GB of ram...

Schermata 2019-10-14 alle 14.34.56.png

Link to post
Share on other sites

You're looking for something like this.... https://github.com/teddysun/lamp

 

Quote
  • If your server system: Amazon Linux/CentOS/Fedora

yum -y install wget screen git
git clone https://github.com/teddysun/lamp.git
cd lamp
chmod 755 *.sh
screen -S lamp
./lamp.sh
  • If your server system: Debian/Ubuntu

apt-get -y install wget screen git
git clone https://github.com/teddysun/lamp.git
cd lamp
chmod 755 *.sh
screen -S lamp
./lamp.sh

 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

Wow, thank you

Seems I somehow managed to make it work: apache, php and mysql are working, now I only have to deal with permissions, when i move folders in the root of my webserver i can't access them, it says Forbidden, but if i create a new folder and put a index.php file there i can access it no problem.

Should have something to do with users, groups, and permissions.

I'll try to dig more tonight

21 hours ago, Jarsky said:

You're looking for something like this.... https://github.com/teddysun/lamp

 

 

 

 

 

Link to post
Share on other sites

12 hours ago, tibucci said:

Wow, thank you

Seems I somehow managed to make it work: apache, php and mysql are working, now I only have to deal with permissions, when i move folders in the root of my webserver i can't access them, it says Forbidden, but if i create a new folder and put a index.php file there i can access it no problem.

Should have something to do with users, groups, and permissions.

I'll try to dig more tonight

 

 

 

You can use this command (assuming your web directory is in the default one)

chmod -R 775 /var/www

it changes the permissions of the directory and the files inside to be owned by your user and your user group, this allows you to edit and add files without using sudo and it allows apache to access the files since apache has a higher user level.

Link to post
Share on other sites

Thank u! hopefully I finally got it?

first I did a chown with www-data but then I could't edit the files from the host system, then figured out that I had to undo the chown and instead use the chgrp. Also realized that I got php 7.2 by default but one of my plugin weren't compatible and were throwing out errors.

 

On 10/16/2019 at 9:06 PM, mtz_federico said:

You can use this command (assuming your web directory is in the default one)


chmod -R 775 /var/www

it changes the permissions of the directory and the files inside to be owned by your user and your user group, this allows you to edit and add files without using sudo and it allows apache to access the files since apache has a higher user level.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×