Install LAMP or XAMPP and Wordpress - unable to install - help required [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
historygirllfc
Level 1
Level 1
Posts: 12
Joined: Sat Dec 10, 2016 12:57 pm

Install LAMP or XAMPP and Wordpress - unable to install - help required [SOLVED]

Post by historygirllfc » Sat Mar 17, 2018 4:09 pm

HI All,

So I have tried and failed to do this before but there must be people out there who have managed to do this.

I would like to install wordpress locally and just have a play with to try and learn how it works. However I am having issues... I first tried installing LAMP server a while ago think I then uninstalled it. Trying installing separately which but failed to get php to successfully install.

I attempted to remove this package with remove --purge and then autoremove to get rid and start again. I tried to install XAMPP again apache installed fine but when I try and access phpmyadmin it fails and just throws an error saying it doesn't exist. I have tried googling but most of what I found relates to ubuntu and/or remote server stuff nothing about installing it locally.

I have downloaded wordpress and looked at codex but had no luck... (I'm sure it wasn't this difficult on windows...)

So a couple of questions:

1. how do I remove everything and start again?
2. Should I use LAMP or XAMPP?
3. How do I get wordpress to work on linux? I tried changing the folder/file permissions on the folder containing XAMPP but just shows the plain file so php isn't installed correctly/configured properly.
4. I tried mysql server but as I have attempted to do this before there is a root password set but have no clue what it is can I reset it or do I need to delete and try again?

If anyone could me in the right direction I'd be most grateful because I'm clearly going wrong but I don't know enough to understand how and why.

So er.. help...

Thanks
Last edited by historygirllfc on Sun Mar 18, 2018 2:15 pm, edited 1 time in total.

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

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required

Post by administrollaattori » Sat Mar 17, 2018 4:37 pm

historygirllfc wrote:
Sat Mar 17, 2018 4:09 pm
1. how do I remove everything and start again?
https://puolanka.info/goto/apache-ja-ph ... int-18ssa/
To remove LAMP and PhpMyAdmin :

Code: Select all

sudo systemctl stop mysql
sudo systemctl stop apache2
sudo apt-get purge phpmyadmin mysql-server apache2
sudo apt-get autoremove
sudo apt-get clean
If mysql-server remove hangs, run

Code: Select all

sudo systemctl stop mysql
sudo dpkg -P mysql-server mysql-server-5.7
sudo apt-get autoremove
Installation:

Code: Select all

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
For privileges:

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
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

To remove XAMPP, delete its folder from /opt

historygirllfc
Level 1
Level 1
Posts: 12
Joined: Sat Dec 10, 2016 12:57 pm

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required

Post by historygirllfc » Sun Mar 18, 2018 12:09 pm

HI there,

Thanks for the reply. I think I managed to install everything correctly however there is now an issue with permissions. I set the privileges as you suggested above, however I am now unable to save files in /www or /html folders which is where I need to add them to be able to run local files. So which bit do I need to change to fix this?

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

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required

Post by administrollaattori » Sun Mar 18, 2018 12:36 pm

historygirllfc wrote:
Sun Mar 18, 2018 12:09 pm
HI there,

Thanks for the reply. I think I managed to install everything correctly however there is now an issue with permissions. I set the privileges as you suggested above, however I am now unable to save files in /www or /html folders which is where I need to add them to be able to run local files. So which bit do I need to change to fix this?
The easies way is to use symbolic links from your $HOME directory. An example mysite1:

Code: Select all

mkdir mysite1

Code: Select all

sudo ln -s $HOME/mysite1 /var/www/html
Now you should have all permissions for that site.

historygirllfc
Level 1
Level 1
Posts: 12
Joined: Sat Dec 10, 2016 12:57 pm

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required

Post by historygirllfc » Sun Mar 18, 2018 1:48 pm

Ah yeah duh symbolic links should have thought of that.

Sorted. Thanks!

berndv
Level 1
Level 1
Posts: 1
Joined: Sun Sep 09, 2018 9:05 am

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required [SOLVED]

Post by berndv » Sun Sep 09, 2018 1:01 pm

Pahh, that was easy. I think for the first time ever things just worked as expected.
Could maybe someone update this tutorial https://community.linuxmint.com/tutorial/view/486
It's the first search engine hit with "Linux Mint LAMP" and seems to be very outdated.

User avatar
Moem
Level 18
Level 18
Posts: 8893
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Install LAMP or XAMPP and Wordpress - unable to install - help required [SOLVED]

Post by Moem » Sun Sep 09, 2018 1:08 pm

berndv wrote:
Sun Sep 09, 2018 1:01 pm
Could maybe someone update this tutorial https://community.linuxmint.com/tutorial/view/486
It's the first search engine hit with "Linux Mint LAMP" and seems to be very outdated.
Maybe that will happen if someone contacts the person who wrote it.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

Post Reply

Return to “Software & Applications”