Installing on headless debian

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

Installing on headless debian

Postby sapabt » 21. February 2015 21:29

Hello all,

I've run Xampp in the past, and have recently attempted to install (version 5.6.3.0) it on a headless debian server. I've run the security and assigned passwords. I http to the server and I get Access forbidden.

Code: Select all
Access forbidden!

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".


I've searched through the boards, and the configs appear to be correct. I'm on a local network.

httpd-xampp.conf
Code: Select all
#<IfDefine PHP4>
#LoadModule php4_module        modules/libphp4.so
#</IfDefine>
#<IfDefine PHP5>
#LoadModule php5_module        modules/libphp5.so
#</IfDefine>

# We will enable it by default
#<IfDefine PHP>
   LoadModule php5_module        modules/libphp5.so
#</IfDefine>

LoadModule perl_module        modules/mod_perl.so

Alias /phpmyadmin "/opt/lampp/phpmyadmin"
Alias /phpsqliteadmin "/opt/lampp/phpsqliteadmin"

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require all granted
</Directory>

<Directory "/opt/lampp/phpsqliteadmin">
    AllowOverride AuthConfig Limit
    Require all granted
</Directory>

# since LAMPP 1.0RC1
AddType application/x-httpd-php .php .php3 .php4

XBitHack on

# since 0.9.8 we've mod_perl
<IfModule mod_perl.c>
        AddHandler perl-script .pl
        PerlHandler ModPerl::PerlRunPrefork
        PerlOptions +ParseHeaders
        PerlSendHeader On
</IfModule>

# demo for mod_perl responsehandler
#PerlModule Apache::CurrentTime
#<Location /time>
#      SetHandler modperl
#      PerlResponseHandler Apache::CurrentTime
#</Location>

# AcceptMutex sysvsem is default but on some systems we need this
# thanks to jeff ort for this hint
#AcceptMutex flock
#LockFile /opt/lampp/logs/accept.lock

# this makes mod_dbd happy - oswald, 02aug06
# mod_dbd doesn't work in Apache 2.2.3: getting always heaps of "glibc detected *** corrupted double-linked list" on shutdown - oswald, 10sep06
#DBDriver sqlite3

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


I'm sure I'm missing something dumb.

Cheers,
bt
sapabt
 
Posts: 3
Joined: 21. February 2015 21:10
Operating System: Debian

Re: Installing on headless debian

Postby Nobbie » 23. February 2015 15:18

sapabt wrote:I'm on a local network.


But not on "localhost". "Require local" means "Require localhost". The Xampp Adminpages (http://localhost/xampp) cannot be reached from a different PC in a LAN (even if it is "local network"). As long you have no own content in htdocs, the index.php redirects to Xampp Administrations - therefore you receive the error message.

Either delete that configuration from httpd-xampp.conf, or substitute "Require local" by an appropriate "Require Ip <LAN-IP>", where <LAN-IP> matches to your local LAN IPs (for example 192.168.0 - you may shorten the IP, this matches to all IPs beginning with 192.168.0).

See http://httpd.apache.org/docs/trunk/mod/ ... ml#require
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Installing on headless debian

Postby sapabt » 24. February 2015 05:22

Hi Nobbie,

I tried the require Ip 192.168.1.0, removed the require statement, even rem'd out all the Locationmatch lines. Restarted after each change, still get the error page.

I'm changing the http-xampp.conf file in /opt/lamp/etc/extra. Is that the right location? It's the only one I've found so far.

Cheers,
bt
sapabt
 
Posts: 3
Joined: 21. February 2015 21:10
Operating System: Debian

Re: Installing on headless debian

Postby sapabt » 03. March 2015 21:34

Anyone?
sapabt
 
Posts: 3
Joined: 21. February 2015 21:10
Operating System: Debian


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 71 guests