I have installed xampp in ubuntu. But I can't find htdocs folder anywhere to put my php codes and test them.
How can I start xampp? After the installation there was no shortcut created on the desctop, now I am unable to find it. I am using the latest XAMPP for Linux 5.6.30, 7.0.15 & 7.1.1
The panel started right after the installation, but I am unable to find out how to start the panel after I closed it.
I read in some other topic to execute this command:
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
But this fails with:
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
Traceback (most recent call last):
File "xampp-control-panel.py", line 18, in <module>
import gtk
ImportError: No module named gtk
I also tried to search for xampp, but nothing relevant found:
UPDATE:
/opt/lampp
UPDATE:
I also tried to start xampp from the terminal like this:
root@ubuntu:/opt/lampp$ ./xampp panel
But then the xampp help page shows in the terminal and no GUI is starting:
sudo apt-get install xampp
after above step the following error is shown
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xampp:i386 : Depends: python-gtk2:i386 but it is not going to be installed
Depends: python-glade2:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Im seeing this error while trying to open phpmyadmin (http://127.0.0.1/phpmyadmin) :
`New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
If you think this is a server error, please contact the webmaster.
Error 403
xser.com
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7`
Edit:
I have commented out this code in "httpd-xampp.conf"., but it has introduced a new problem.
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|#server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
Now Im seeing this --
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
xser.com
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7
I am very new to Ubuntu and I still don't understand a lot of basic concepts so please bear with me.
I successfully installed XAMPP 1.7.4 in my ubuntu 11.04. The XAMPP is installed in /opt/lampp
. I know how to write php file in /opt/lampp/htdocs
using the bash terminal command sudo gedit /opt/lampp/htdocs/myphpfile.php
but what if I already have an existing php file inside a folder? Of course I don't want to write it again using sudo command. All I want to do is copy that folder that contains the php files inside htdocs
like I always do in Windows WAMP. Is there a command in which I could set the /opt
folder to writeable? Please help me.