LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2018, 01:05 AM   #1
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Rep: Reputation: Disabled
Installing Xampp for Learning With Texts


Total noob here just getting to grips with Linux, so if you could lay things out in layman's style for idiots who know nothing, I'd be grateful of that. I'm running the latest version of Manjaro.

I tried to install Xampp from the user repository but it wouldn't install so I downloaded the official .run file online, managed to get it going in terminal and it now says it's installed.

I then downloaded the Learning With Texts .zip file and unpackaged it.

The instructions for installing LWT on Linux can be found here: http://lwt.sourceforge.net/#installlnx

Everything seems to have worked up to Step 6:

"Step 6: Open a Terminal window, type and execute the following commands:
sudo mv /home/[your userid]/Downloads/lwt /var/www/html
sudo chmod -R 755 /var/www/html/lwt
sudo rm /var/www/html/index.html
sudo /etc/init.d/apache2 restart"

There is no /var/www/html folder. In /var there are folders pertaining to apache2 but no www.

I'm wondering how I can go about getting this installed - it's just for simple foreign language learning.

Any help would be appreciated thanks.
 
Old 08-08-2018, 01:00 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,314
Blog Entries: 3

Rep: Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723
Quote:
Originally Posted by zaqwsx View Post
Total noob here just getting to grips with Linux, so if you could lay things out in layman's style for idiots who know nothing, I'd be grateful of that. I'm running the latest version of Manjaro.

I tried to install Xampp from the user repository but it wouldn't install so I downloaded the official .run file online, managed to get it going in terminal and it now says it's installed.
You'd be better off working with Manjaro's official packages via the offical package manager rather than doing things by hand. That'll not only be easier but it will be what everyone expects so it will be easier to help you and you won't have to explain a lot of background each time. xampp is fine for legacy systems but puts things in weird places on modern systems as well as can add redundant versions causing conflict with existing packages.

I'm not a Manjaro user but it's based on Arch so it should be using pacman

Code:
# pacman -Syu
# pacman -S apache
That should put things, including Apache's document root, in familar places.
 
Old 08-08-2018, 02:26 PM   #3
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
You'd be better off working with Manjaro's official packages via the offical package manager rather than doing things by hand. That'll not only be easier but it will be what everyone expects so it will be easier to help you and you won't have to explain a lot of background each time. xampp is fine for legacy systems but puts things in weird places on modern systems as well as can add redundant versions causing conflict with existing packages.

I'm not a Manjaro user but it's based on Arch so it should be using pacman

Code:
# pacman -Syu
# pacman -S apache
That should put things, including Apache's document root, in familar places.
Hi and thanks for your response.

I ran the pacman codes and nothing has changed in terms of the file structure.

I have /var but there's nothing in it called www and I've also got /opt/lampp which contains a bunch of folders which appears to pertain to apache2 and mySQL.

I would rather have just installed the installer from the official repo but it didn't work. I've just tried installing from the official repo again and I'm not getting the error message now and it actually says it's creating /var/www/html and tells me to be patient 'this could take several minutes' but it's been like that for maybe half hour now.

I guess I will wait...
 
Old 08-08-2018, 03:30 PM   #4
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Well, I waited for over an hour and nothing is happening. I don't think this installer is going to work even.

Any advice is appreciated. As a newcomer to Linux from mac I'm a bit lost even though I'm managing to use the internet to complete things this apache thing has me stumped.

I would much rather just download the installer and do it that way.

I take it that the problem isn't so much XAMPP as the files are all there for it (in /opt/lampp) but that the Learning With Text instructions don't correspond to how the files and folders are laid out in an Arch-based system ? If so would I be better off asking on the LWT forums for their advice ?

As a side, how do I find out why the installer from the repo isn't working for me, and if it is a problem with it/the repo how can I let the people who manage it know ?

Thanks /sorry for total noobness this is all new to me.

Last edited by zaqwsx; 08-08-2018 at 03:40 PM.
 
Old 08-08-2018, 05:02 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,722

Rep: Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915
Quote:
That should put things, including Apache's document root, in familiar places.
Maybe...
manjaro is not Ubuntu so the posted instructions for LWT are not valid.

The default document root with Apache via pacman is /srv/http while xampp defaults to /opt/lampp/htdocs as you have discovered. So now you probably have two versions of Apache installed. You can change the instructions to match xampp and in addition you will also need to manually configure it to start as a service.

The benefit of installing stuff using the package manager / repositories is that everything is already configured for the distribution and should just work.

https://forum.manjaro.org/t/install-...lamp-2016/1243

https://wiki.archlinux.org/index.php/XAMPP
 
1 members found this post helpful.
Old 08-08-2018, 05:55 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by zaqwsx View Post
Thanks /sorry for total noobness this is all new to me.
We've all "been there, done that" and Failure is Feedback. And a key element to "knowing".
Have a look at Clone Your Website with XAMMP for
XAMMP answers/clues/resources to further research, as well as the links michaelk gave you.

I hope that helps you.
 
1 members found this post helpful.
Old 08-08-2018, 10:57 PM   #7
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Maybe...
manjaro is not Ubuntu so the posted instructions for LWT are not valid.

The default document root with Apache via pacman is /srv/http while xampp defaults to /opt/lampp/htdocs as you have discovered. So now you probably have two versions of Apache installed. You can change the instructions to match xampp and in addition you will also need to manually configure it to start as a service.

The benefit of installing stuff using the package manager / repositories is that everything is already configured for the distribution and should just work.

https://forum.manjaro.org/t/install-...lamp-2016/1243

https://wiki.archlinux.org/index.php/XAMPP
Thanks for the links I will do my best to work through them.

FWIW the srv/http/ directory has nothing in it so i think i only still have one version installed.

Quote:
Originally Posted by Habitual View Post
We've all "been there, done that" and Failure is Feedback. And a key element to "knowing".
Have a look at Clone Your Website with XAMMP for
XAMMP answers/clues/resources to further research, as well as the links michaelk gave you.

I hope that helps you.
Thanks for the tips I'll give it a go.

I've stopped and uninstalled lampp using
Code:
# /opt/lampp/lampp stop
# rm -rf /opt/lampp
and will now follow the instructions on Arch's XAMPP page. I'll let you all know if it works.

Last edited by zaqwsx; 08-08-2018 at 11:15 PM.
 
Old 08-09-2018, 12:38 AM   #8
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
So this morning I've been tinkering.

I followed the instructions on https://forum.manjaro.org/t/install-...lamp-2016/1243 to a tee and everything worked up to "Test phpMyAdmin
Open your browser and navigate to http://IP-Address/phpmyadmin."

Instead of http://localhost/phpmyadmin bringing up the sample page I'm getting phpMyAdmin - Error "The mysqli extension is missing. Please check your PHP configuration."

It says to check their docs for more information but it's very confusing to me.

I googled and was told to check if Apache is running using /opt/lampp/lampp start.

I get
Code:
Starting XAMPP for Linux 7.2.8-0...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
I'm not sure how to proceed.

Last edited by zaqwsx; 08-09-2018 at 01:21 AM.
 
Old 08-09-2018, 04:41 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,722

Rep: Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915
You can not have two servers running on the same port which is why xampp fails to start Apache. Pick which one you want to use. You can change the default port on one if want to play with both at the same time.

If you uncommented extension=mysqli.so per the posted guide did you restart Apache? If you created the phpinfo test page it should show if mysqli is loading.
 
Old 08-10-2018, 08:37 AM   #10
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You can not have two servers running on the same port which is why xampp fails to start Apache. Pick which one you want to use. You can change the default port on one if want to play with both at the same time.

If you uncommented extension=mysqli.so per the posted guide did you restart Apache? If you created the phpinfo test page it should show if mysqli is loading.
Ok - note to self - always follow the instructoins on one machine instead of having two laptops running side by side and using one for reference and one for copy/pasting; I had mistakenly not uncommented the php file and now I've done it I've got the test screen which I should have.

I don't know what you mean by 'You can not have two servers running on the same port which is why xampp fails to start Apache. Pick which one you want to use. You can change the default port on one if want to play with both at the same time.' I thought xampp was just running the servers, and so should be running Apache ? I'm really very new to all this sorry some of the jargon confuses me.

Alas all my test screens are working now but I don't know how to get my LWT files onto the server so I can access them in my web browser. The guys over at LWT don't seem to be able to help.
 
Old 08-10-2018, 08:56 AM   #11
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,314
Blog Entries: 3

Rep: Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723
Quote:
Originally Posted by zaqwsx View Post
I don't know what you mean by 'You can not have two servers running on the same port which is why xampp fails to start Apache. Pick which one you want to use. You can change the default port on one if want to play with both at the same time.' I thought xampp was just running the servers, and so should be running Apache ? I'm really very new to all this sorry some of the jargon confuses me.
The noun "server" can refer to the hardware, or the operating system, or (in this case) to the individual process running and listening for WWW incoming activity to respond to. See also the term "daemon".

When you install via the package manager, not only are updates managed easily the server (in the last meaning there) starts up automatically when the operating system starts up. So Apache2 is using port 80 and maybe also port 443 to listen for incoming connections. That means other programs cannot also listen on port 80 at the same time and so if you try to start up Apache2 from Xampppppp it will find port 80 already reserved and thus fail to start and result in the error message you see. The solution is to choose either Xamppp and its non-standard way of doing things or else Manjaro's normal packages. Can't have both, so I recommend the latter for nearly all use-cases and would, if asked, recommend uninstalling Xampp. However, the choice is yours and there are people around that will help with Xamp
 
Old 08-10-2018, 09:44 AM   #12
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
The noun "server" can refer to the hardware, or the operating system, or (in this case) to the individual process running and listening for WWW incoming activity to respond to. See also the term "daemon".

When you install via the package manager, not only are updates managed easily the server (in the last meaning there) starts up automatically when the operating system starts up. So Apache2 is using port 80 and maybe also port 443 to listen for incoming connections. That means other programs cannot also listen on port 80 at the same time and so if you try to start up Apache2 from Xampppppp it will find port 80 already reserved and thus fail to start and result in the error message you see. The solution is to choose either Xamppp and its non-standard way of doing things or else Manjaro's normal packages. Can't have both, so I recommend the latter for nearly all use-cases and would, if asked, recommend uninstalling Xampp. However, the choice is yours and there are people around that will help with Xamp
Oh right I see - I've installed the xampp .run file which is conflicting with the package manager install I've been trying to do ?
 
Old 08-10-2018, 09:58 AM   #13
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,314
Blog Entries: 3

Rep: Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723Reputation: 3723
Quote:
Originally Posted by zaqwsx View Post
Oh right I see - I've installed the xampp .run file which is conflicting with the package manager install I've been trying to do ?
It looks that way. If you uninstall Xampppp then it'll be easier for you to work with and there are more people that can / will help. If you uninstall the corresponding normal packages then that would also solve that particular problem. It's an either-or choice.

Either way, you can see all the processes on your machine using ps

Code:
ps -auwx | less
ps -afjx | less
man ps
man less
There are a lot of variations to what is displayed and how it is arranged. But the point there is to identify Apache. Or else use the following if you have the regular package:

Code:
systemctl status httpd
Daemons are often named for the main protocol they use followed by a 'd' for 'daemon'. So you should see "httpd" there in the output for ps or systemctl
 
Old 08-10-2018, 10:33 AM   #14
zaqwsx
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
It looks that way. If you uninstall Xampppp then it'll be easier for you to work with and there are more people that can / will help. If you uninstall the corresponding normal packages then that would also solve that particular problem. It's an either-or choice.

Either way, you can see all the processes on your machine using ps

Code:
ps -auwx | less
ps -afjx | less
man ps
man less
There are a lot of variations to what is displayed and how it is arranged. But the point there is to identify Apache. Or else use the following if you have the regular package:

Code:
systemctl status httpd
Daemons are often named for the main protocol they use followed by a 'd' for 'daemon'. So you should see "httpd" there in the output for ps or systemctl
Ok well I've uninstalled everything and reinstalled according to https://forum.manjaro.org/t/install-...lamp-2016/1243 and everything appears to be working as normal - the httpd status is active, my test pages all work and I'm able to log in to myphpadmin.

Now my only problem is to get Learning With Texts running on the server so I can access it from localhost/lwt in my web browser and then start using it.

Thank you very much for your patience in helping me here. It's taken me a few days but I'm now starting to become familiar with it. I understand if it's annoying having to explain uncomplicated things to me but I do appreciate the help
 
Old 08-10-2018, 10:40 AM   #15
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by zaqwsx View Post

I get
Code:
Starting XAMPP for Linux 7.2.8-0...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
I'm not sure how to proceed.
If this occurred directly after installation of the "LAMP Stack", it could be the install process started it.

You can determine what is "on" port 80 using
Code:
lsof -i :80
and the process that is running on port 80 should be listed in the left-most column.

Hope this helps future diagnoses.
But it sounds like you have it working.

Last edited by Habitual; 08-10-2018 at 10:42 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xampp installing issue NoWeDoR Programming 1 12-03-2015 08:24 AM
CentOS 7 installing XAMPP smurfee Linux - Newbie 4 09-22-2014 09:48 AM
Installing XAMPP... brian47374 Linux - Software 6 12-15-2012 12:05 AM
How to get texts and image of texts on ubuntu terminal like linux mint? cola Ubuntu 1 06-02-2010 12:01 AM
Help in installing xampp nilambar Linux - Newbie 1 09-22-2009 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration