CentOS SSH VPS

Problems with the Linux version of XAMPP, questions, comments, and anything related.

CentOS SSH VPS

Postby surmav » 10. July 2011 00:20

I am running Lampp on VPS, my question is how can i get access to phpmyadmin with my main machine, i need to add somehow my IP to phpmyadmin allow list but i cannot find the right place for it.
surmav
 
Posts: 4
Joined: 10. July 2011 00:17

Re: CentOS SSH VPS

Postby surmav » 10. July 2011 00:25

I tried to edit httpd-xampp.conf but now i got this when i tried to enter phpmyadmin site:
Code: Select all
Wrong permissions on configuration file, should not be world writable!
surmav
 
Posts: 4
Joined: 10. July 2011 00:17

Re: CentOS SSH VPS

Postby JonB » 10. July 2011 06:51

Its warning you that anyone can change/alter that file.

you need to CHMOD the configuration file. It probably should be 644.

http://www.linuxquestions.org/questions ... at-720846/

http://www.webmasterworld.com/forum40/113.htm


Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: CentOS SSH VPS

Postby surmav » 10. July 2011 10:59

Weird, i changed httpd-xampp.conf chmod to 644 and reloaded apache/mysql but still same problem.
If i change something in this line, then it will say that "Wrong permissions on configuration file, should not be world writable!" all thought i tried to play with chmod but no luck, nothing didn't work. I just changed this line back to normal and then again it worked... How can i successfully add my ip to allow list, can't touch this without having problems :S
Code: Select all
<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>
surmav
 
Posts: 4
Joined: 10. July 2011 00:17

Re: CentOS SSH VPS

Postby JonB » 10. July 2011 14:41

it phpMyAdmin squawks about a configuration file, its most likely the config.inc.php file that is the permissions problem.

I'm quite confident that 'their' code is unaware of what specific files were used to extend the Apache httpd.conf.

Just my opinion
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: CentOS SSH VPS

Postby surmav » 10. July 2011 22:43

How am i able to connect myphpadmin from different machine then?
surmav
 
Posts: 4
Joined: 10. July 2011 00:17

Re: CentOS SSH VPS

Postby JonB » 11. July 2011 12:41

A few things

A. In order to USE phpMyAmin, you do not need to be able to Write to the config.inc.php file. That file is used for CONFIGURING phpMyAdmin. The phpMyAdmin remote user needs Read access.

B. When you secure phpMyAdmin, usernames and passwords (based on MySQL Rights) will govern what can be done with/in phpMyAdmin.

In my opinion, you should spend some time learning about the Linux OS, the client server model and file permissions. You will need to understand these things to avoid security problems -- such as world-writable configuration files. This is particularly true if you are going to use widely distributed Open Source packages (like phpMyAdmin, WordPress, Joomla, etc). Everyone knows what files are 'where', and how to manipulate them.

If you haven't already, you should probably also learn an SSH (Secure Shell) tool like Tunnelier or Putty,

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 28 guests