Mint 19 and LAMP. PHP Not Working

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
jobo
Level 1
Level 1
Posts: 2
Joined: Sun Aug 19, 2018 3:31 pm

Mint 19 and LAMP. PHP Not Working

Post by jobo » Sun Aug 19, 2018 3:40 pm

Hi All,
Quite new to linux. Have a small comp on which I've installed mint 19. On my windows machine I run wamp so I figured I'd checkout LAMP. oh my goodness. While the index.html file loads up, no php file will. First of all the var/www/html file is locked and I can't add, edit or remove any files within it. I found a way to resolve that. I make a php info file and drop it in there. It's not executing the php. I just get a white screen in the browser. I've been at this for two days now. Yesterday I was at least able to see the un-parsed code using "view page source". I removed all packages installed yesterday and started fresh today. Now I don't even get the unparsed code in view page source. phpmyadmin doesn't load. says page not found.

Even If I have to remove all packages again and start fresh again. I would really like to have this working and your help is greatly appreciated.

Thank you, John

User avatar
administrollaattori
Level 14
Level 14
Posts: 5471
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Mint 19 and LAMP. PHP Not Working

Post by administrollaattori » Mon Aug 20, 2018 3:52 am

You have no privileges. Run

Code: Select all

sudo usermod -a -G www-data your_username_here
sudo chgrp -R www-data /var/www/html
sudo chmod -R g+w /var/www/html

jobo
Level 1
Level 1
Posts: 2
Joined: Sun Aug 19, 2018 3:31 pm

Re: Mint 19 and LAMP. PHP Not Working

Post by jobo » Mon Aug 20, 2018 12:34 pm

ok. so yes I had no privileges, but there were other problems too. I did get the privileges straightened out but still couldn't log into mysql through terminal or phpmyadmin. not knowing how to thoroughly remove all that had been installed I just started over completely which I've actually done 3 more times since then. I have it working now though. Looking back .... I've had it right since the 2nd re-install of mint. The trouble in getting logged into mysql wasn't that a password wasn't be stored correctly, but instead that I had to create a new user as root is for some reason restricted.

Got it now and am moving forward.

What's the best way to take a snapshot of my system right now that I'd be able to reset to later on?

Thanks a bunch,
John


Post Reply

Return to “Software & Applications”