LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2012, 08:08 AM   #1
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Rep: Reputation: Disabled
Xampp phpmyadmin


I installed Xampp. when i open http://localhost/phpmyadmin/ it gives this error.

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
localhost
Apache/2.4.2 (Unix) OpenSSL/1.0.1c PHP/5.4.4

kindly tell me what to do..............?
 
Old 08-09-2012, 01:17 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You maybe need to just add index.php in the "DirectoryIndex" option in apache configuration file (httpd-xampp.conf) and restart apache.
Or else show us the output of the following commands:
Code:
ls -l /opt/lampp/htdocs
ls -l /opt/lampp/htdocs/phpmyadmin
I guess /opt/lampp/htdocs is the DocumentRoot for xampp. If not, change the path above accordingly.

Regards
 
Old 08-09-2012, 03:31 PM   #3
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
thanks for your reply...this is the output i got.

comsats@ubuntu:~$ ls -l /opt/lampp/htdocs
total 48
-rw-rw-rw- 1 comsats root 30894 May 11 2007 favicon.ico
-rw-rw-rw- 1 comsats root 256 Feb 5 2009 index.php
drwxr-xr-x 2 root root 4096 Aug 8 08:02 Job_Form
drwxrwxrwx 2 comsats root 4096 Aug 9 14:43 webalizer
drwxrwxrwx 7 comsats root 4096 Mar 15 07:02 xampp
comsats@ubuntu:~$ ls -l /opt/lampp/htdocs/phpmyadmin
ls: cannot access /opt/lampp/htdocs/phpmyadmin: No such file or directory


now tell me in detail what to do......i don't know much about apache,etc....
 
Old 08-09-2012, 04:08 PM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by Omer aslam View Post
thanks for your reply...this is the output i got.

Code:
comsats@ubuntu:~$ ls -l /opt/lampp/htdocs
total 48
-rw-rw-rw- 1 comsats root 30894 May 11  2007 favicon.ico
-rw-rw-rw- 1 comsats root   256 Feb  5  2009 index.php
drwxr-xr-x 2 root    root  4096 Aug  8 08:02 Job_Form
drwxrwxrwx 2 comsats root  4096 Aug  9 14:43 webalizer
drwxrwxrwx 7 comsats root  4096 Mar 15 07:02 xampp
comsats@ubuntu:~$ ls -l /opt/lampp/htdocs/phpmyadmin
ls: cannot access /opt/lampp/htdocs/phpmyadmin: No such file or directory
now tell me in detail what to do......i don't know much about apache,etc....
It's because you probably didn't extract the archive to "/opt" directory but in your "xampp"
so it's probably there

please post the output of
Code:
$ ls -l xampp
and use the # icon in your post to wrap the output in code format [code]the text[/code] (take a look here for some examples)

Last edited by lithos; 08-09-2012 at 04:10 PM.
 
Old 08-09-2012, 04:15 PM   #5
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
i extracted the archieve in /opt

---------- Post added 08-09-12 at 05:16 PM ----------

here is the output

Code:
comsats@ubuntu:~$ ls -l xampp
ls: cannot access xampp: No such file or directory
 
Old 08-09-2012, 04:40 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
comsats@ubuntu:~$ ls -l xampp
ls: cannot access xampp: No such file or directory
It should be
Code:
ls -l /opt/lampp
 
1 members found this post helpful.
Old 08-09-2012, 06:02 PM   #7
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
it gives this output.

Code:
total 168
drwxrwxrwx  2 comsats root 12288 Jul 13 04:18 bin
drwxrwxrwx  2 comsats root  4096 Jul 14  2004 cgi-bin
drwxrwxrwx  3 comsats root  4096 Mar 15 07:15 error
drwxrwxrwx  8 comsats root  4096 Jul  9 05:23 etc
drwxrwxrwx  5 comsats root  4096 Aug  9 05:53 htdocs
drwxrwxrwx  3 comsats root  4096 May 30  2003 icons
-rwxrwxrwx  1 comsats root 15325 Jun 15 10:39 lampp
drwxrwxrwx 15 comsats root 12288 Jul 13 04:17 lib
drwxrwxrwx  2 comsats root  4096 Apr 26  2006 libexec
drwxrwxrwx 36 comsats root  4096 Aug 24  2009 licenses
drwxrwxrwx  2 comsats root  4096 Aug  9 18:24 logs
drwxrwxrwx  2 comsats root  4096 Jul 13 04:17 modules
drwxrwxrwx  3 comsats root  4096 Mar 13 11:34 php
drwxrwxrwx  8 comsats root  4096 Jul  9 05:16 phpmyadmin
-rw-rw-rw-  1 comsats root 66934 Jul 10 05:53 RELEASENOTES
drwxrwxrwx  2 comsats root  4096 Jul 13 04:18 sbin
drwxrwxrwx 39 comsats root  4096 Jul  5 15:20 share
drwxrwxrwx  3 comsats root  4096 Jan 18  2005 tmp
drwxrwxrwx  6 comsats root  4096 Aug  9 18:24 var
now what next?
 
Old 08-09-2012, 09:12 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Start Xampp and test it.

The Xampp website has a better description of how to do this than I could write:

http://www.apachefriends.org/en/xampp-linux.html#378
 
2 members found this post helpful.
Old 08-10-2012, 08:27 AM   #9
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Start Xampp and test it.

The Xampp website has a better description of how to do this than I could write:

http://www.apachefriends.org/en/xampp-linux.html#378
phpmyadmin not working or in status mysql database also shown deactivated....
 
Old 08-10-2012, 08:33 AM   #10
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Start Xampp and test it.

The Xampp website has a better description of how to do this than I could write:

http://www.apachefriends.org/en/xampp-linux.html#378
i followed the security instructions on http://www.apachefriends.org/en/xampp-linux.html#378 now error of localhost/phpmyadmin has been changed to this
Code:
Fatal error: Call to undefined function __() in /opt/lampp/phpmyadmin/libraries/Config.class.php on line 755
now tell me what should i do next....?
 
Old 08-10-2012, 03:48 PM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i followed the security instructions on http://www.apachefriends.org/en/xampp-linux.html#378 now error of localhost/phpmyadmin has been changed to this

Fatal error: Call to undefined function __() in /opt/lampp/phpmyadmin/libraries/Config.class.php on line 755

now tell me what should i do next....?
Read this
 
1 members found this post helpful.
Old 08-10-2012, 04:48 PM   #12
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Read this
still not solved now it gives this.....

Code:
Existing configuration file (./config.inc.php) is not readable.
 
Old 08-10-2012, 05:10 PM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Existing configuration file (./config.inc.php) is not readable.
The file should be readable by the apache user. In a default installation this user is nobody, so run
Code:
chown nobody /opt/lampp/phpmyadmin/config.inc.php
 
1 members found this post helpful.
Old 08-10-2012, 07:27 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
The nice thing about Xampp is that, if something goes wrong or one misunderstands the directions or just hits the wrong key, one can simply delete /opt/lampp (after backing up any files in /opt/lampp/htdocs that need backed up) and try again.

That's one reason it's such a nice tool for testing.
 
1 members found this post helpful.
Old 08-10-2012, 07:45 PM   #15
Omer aslam
LQ Newbie
 
Registered: Aug 2012
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
The file should be readable by the apache user. In a default installation this user is nobody, so run
Code:
chown nobody /opt/lampp/phpmyadmin/config.inc.php
Now it gives this screen.....
Attached Thumbnails
Click image for larger version

Name:	snapshot1.png
Views:	115
Size:	31.0 KB
ID:	10329  
 
  


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 1.7.7 - XAMPP: Couldn't start MySQL sonic656 Linux - Software 2 10-09-2011 12:43 PM
phpMyAdmin error: client denied by server configuration: /usr/share/phpMyAdmin Kropotkin Linux - Server 2 05-15-2010 12:55 PM
phpmyadmin shows blank page; no "phpmyadmin" database in mysql qajaq Linux - Software 2 12-20-2009 12:23 PM
Xampp kscallions Linux - Newbie 1 02-17-2008 09:14 PM
xampp charnel Programming 0 07-15-2005 07:14 AM

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

All times are GMT -5. The time now is 01:29 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