I installed XAMPP. Now the problems are
I can not start mysql
root@ubuntu:/# sudo /opt/lampp/lampp startmysql
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
I can not put my projects so i can test it
/opt/lampp/htdocs/
root@ubuntu:~# cp -r /home/sou/socialnetwork/* /opt/lampp/htdocs/SocialNetwork cp: cannot stat `/home/sou/socialnetwork/*': No such file or directory
root@ubuntu:~# cp -r /home/sou/socialnetwork/*
/opt/lampp/htdocs/SocialNetwork
-bash: /home/sou/socialnetwork/*: No such file or directory
-bash: /opt/lampp/htdocs/SocialNetwork: No such file or directory
cp: missing file operand
Try `cp --help' for more information.
- phpMyAdmin can not work
MySQL said: Documentation
2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
Connection for controluser as defined in your configuration failed.
I just startted with Ubuntu 1day ago, so i dont know the staffs required to start XAMPP properly. please guide me !
What i need
- To start/stop MySQL
- To open the directory and copy required files to it
- To start phpMyAdmin
XAMPP itself isn't in the repos but MySQL, PHP, Apache and everything else that is included in XAMPP has a package. It can be done as simple as this:
Note: The
^
on the end isn't a typo - it's how we denote tasks.XAMPP includes some other things you you probably don't need but you can install most of a command like this (I suggest you only install the things you want, for performance):
That affords you a fairly standard stack. The major differences between this and XAMPP are:
Once you're at that point, you can follow the standard documentation. It might be a little old but most of it should hold true.
To install XAMPP you need to log in as
root
and then everything works fine, sudo-i is not an option in this case, it still shows some functions as deactivated.download EasyLAMPP Here
extract and run the script
this script automate XAMPP for linux installation, eg. extracting, configuring permission and adding Control Panel & XAMPP Htdocs Launcher
you can read the full instruction Here
Why don't you install xampp control panel like of windows. here is the full tutorial of it . http://freshtutorial.com/add-gui-xampp-control-panel-ubuntu/ it will makes your work lot easier