Access denied userdir XAMPP

Hi,

I have just installed XAMPP but I can’t access the userdir (localhost/~user). I have configured well the .conf files (I have done this in others distros and in Windows) but I receive “Access Denied! error 403”. My userdir is “/home/user/public_html” and it has 755 permission (I have tried 777 too). How can I resolve?

Thanks in advance

How did you install it? Is this the version from the AUR, or is it directly from the developers’ website, or is it a FlatPak or a Snap?

Developer’s site

Then you’re probably better off uninstalling that and instead installing it from the AUR.

pamac build xampp

Thanks but I get an error :’(. “Failed to build tclkit”

We need more info than this, as this doesn’t say why it failed to build.

Can you please do pamac build tclkit and post the output here?

Please put ``` before and after your output. Or highlight your output and click on the </> button.

Avviso: Costruisco i pacchetti come amministratore
Avviso: Preparazione directory di costruzione in /var/cache/pamac
Preparazione...
Clonazione tclkit file di costruzione in corso...
Running as unit: run-u71.service
fatal: impossibile accedere a 'https://aur.archlinux.org/tclkit.git/': Failed to connect to aur.archlinux.org port 443: Connessione scaduta
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 2min 8.926s
Running as unit: run-u74.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 34ms
Running as unit: run-u75.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 1.066s
Controllo delle dipendenze di tclkit in corso...
Risoluzione delle dipendenze...
Controllo conflitti tra i pacchetti...

Da costruire (1):
  tclkit  8.6.10-1    AUR


Modifica file di costruzione : [e] 
Applica la transazione ? [e/y/N] y


Costruzione in corso di tclkit...
Running as unit: run-u76.service
Press ^] three times within 1s to disconnect TTY.
==> Creazione del pacchetto: tclkit 8.6.10-1 (ven 16 apr 2021, 10:45:03)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> Download di 8.6.4-9.tar.gz in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   126  100   126    0     0    339      0 --:--:-- --:--:-- --:--:--   339
100 2351k    0 2351k    0     0  1769k      0 --:--:--  0:00:01 --:--:-- 2618k
  -> Download di tk.tar.gz in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   121  100   121    0     0    375      0 --:--:-- --:--:-- --:--:--   374
100 4285k    0 4285k    0     0  2729k      0 --:--:--  0:00:01 --:--:-- 6975k
  -> Download di tcl.tar.gz in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   122  100   122    0     0    366      0 --:--:-- --:--:-- --:--:--   366
100 6765k    0 6765k    0     0  3645k      0 --:--:--  0:00:01 --:--:-- 4747k
==> Validazione di source file con md5sums...
8.6.4-9.tar.gz ... Verificato
tk.tar.gz ... Verificato
tcl.tar.gz ... NON RIUSCITO
==> ERRORE: Uno o più file non hanno superato il controllo di validità!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 8.034s
Errore: Impossibile costruire tclkit

Sorry it is in italian.

It tells you why it failed to build here.

You should always read the AUR page for the package if you’re getting an error as it usually has a solution. Looks like this package on AUR hasn’t been updated since 05/19/20.

Per a comment:

It looks like they rewrote the git history for tcl, so the checksum isn’t correct anymore, maybe you can use their fossil repo instead, but i think you have to use a commit instead of a tag for the tarball.

Workaround per another person:

the verification of the md5sum in the PKGBUILD file due to a non-existent hash key that corresponds to the package tcl.tar.gz

md5sums=('ee23c17052b6e482cb845739363bb9c0' '73a066dcc051915dfad48ae4810a6038' 'b9578606270ac55d2cbabf35515724bc')

the solution is to edit the hash key corresponding to the package in question.

md5sums=('ee23c17052b6e482cb845739363bb9c0' '73a066dcc051915dfad48ae4810a6038' '95cd9a34e9bd2aaf7e52720492ff09c4')
1 Like

Thank you, solved tcl issue. Now when i do pamac install xampp I get this:

Avviso: xampp è disponibile solamente nell'AUR
Preparazione...
Clonazione xampp file di costruzione in corso...
Running as unit: run-u80.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 303ms
Running as unit: run-u81.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 19ms
Controllo delle dipendenze di xampp in corso...
Risoluzione delle dipendenze...
Controllo conflitti tra i pacchetti...

Da costruire (1):
  xampp  8.0.3-2    AUR


Modifica file di costruzione : [e] 
Applica la transazione ? [e/y/N] y


Costruzione in corso di xampp...
Running as unit: run-u83.service
Press ^] three times within 1s to disconnect TTY.
==> Creazione del pacchetto: xampp 8.0.3-2 (ven 16 apr 2021, 17:27:34)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> È stato trovato bitrock-unpacker.tcl
  -> È stato trovato org.apachefriends.xampp.policy
  -> È stato trovato properties.ini.in
  -> È stato trovato xampp.service.in
  -> È stato trovato xampp.svg
  -> È stato trovato xampp.sysusers
  -> È stato trovato xampp.tmpfiles.in
  -> È stato trovato xampp-control-panel.in
  -> È stato trovato xampp-control-panel.desktop
  -> È stato trovato xampp-manager.in
  -> È stato trovato xampp-manager.desktop
  -> È stato trovato xampp-linux-x64-8.0.3-0-installer.run
==> Validazione di source file con sha256sums...
    bitrock-unpacker.tcl ... Verificato
    org.apachefriends.xampp.policy ... Verificato
    properties.ini.in ... Verificato
    xampp.service.in ... Verificato
    xampp.svg ... Verificato
    xampp.sysusers ... Verificato
    xampp.tmpfiles.in ... Verificato
    xampp-control-panel.in ... Verificato
    xampp-control-panel.desktop ... Verificato
    xampp-manager.in ... Verificato
    xampp-manager.desktop ... Verificato
==> Validazione di source_x86_64 file con sha256sums...
    xampp-linux-x64-8.0.3-0-installer.run ... Verificato
==> Rimozione dell'esistente directory $srcdir/ in corso...
==> Estrazione dei sorgenti in corso...
==> Avvio di prepare() in corso...
==> Extracting package...
Creating directories...
Unpacking files, please wait...
|=                                    (   0.70% )                              |could not set permissions for file "/var/cache/private/pamac/xampp/src/xampp-linux-x64-8.0.3-0/xampp_core_files/xampp_core_folder/bin/suexec": not owner
    while executing
"file attributes $destDir/$fileName -permissions $mode"
    ("foreach" body line 27)
    invoked from within
"foreach {fileName props} $manifest {
    set type [lindex $props 0]
    if {$type == "file"} {
        set mode [lindex $props 1]
        set sizes [l..."
    (file "/var/cache/private/pamac/xampp/src/bitrock-unpacker.tcl" line 77)
==> ERRORE: Si è verificato un errore in prepare().
    L'operazione sta per essere interrotta...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
Service runtime: 19.351s

(I have tried sudo pamac install xampp too)

UPDATE: Solved installing xampp from “add/remove Software”, but I have the same problem. Please help me :confused:

Solution: You have to change permission to /home/user directory

chmod o+x /home/user

I really don’t like this solution for security reasons but only in this way xampp works well.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.