Jump to content
Froxlor Forum
  • 0

Cannot Move Froxlor to VAR HTML


john9

Question

Posted

Hi there, 

I run UBUNTU 18.04 and installed LAMP.

MySQL and PHP everything good.

Installed Froxlor BUT I cannot move it to var/www/html because it says it is not empty 

 

mv: cannot move 'froxlor/actions' to '/var/www/html/actions': Directory not empty
mv: cannot move 'froxlor/css' to '/var/www/html/css': Directory not empty
mv: cannot move 'froxlor/doc' to '/var/www/html/doc': Directory not empty
mv: cannot move 'froxlor/install' to '/var/www/html/install': Directory not empty
 

I have also tried to clean the folder with

du -csh /var/*

but it did not work when trying to move it I still have this warning message.

 

please help

  • Answers 72
  • Created
  • Last Reply

Recommended Posts

Posted

If the file.is really saved there, you as root should be able to copy it - to avoid that extra step, just chown your Froxlor directory with www-data user ;)

Posted

Thank you for your patience. I tried but it says

chown -R www-data:www-data /var/www/froxlor
chown: cannot access '/var/www/froxlor': No such file or directory
 

Posted

Well where did you install froxlor to? That's something you should know instead of blindly copy'n'pasting and running commands posted here :P

Posted

:)

the installation folder was froxlor and we can even see the installation window using that folder 

so I thought to see the files there.

Posted

Well you did not copy the lib/userdata.inc.php file as stated thus froxlor does not know about its database hence installation.

Please just follow the installation manual in our wiki, it's all in there and if followed correctly you will not have any issues

Posted

I wasn't on it. I'm on it. I mean I'm installing it. 

I understand the last parts are my issues. Let's see it. 

For instance thank you very much for your support.

Posted

following step by step https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-on-ubuntu 

and https://github.com/Froxlor/Froxlor/wiki/Install-froxlor-from-tarball

 

At the end of everything I come back to the same error message:

Could not create /var/www/html/froxlor/lib/userdata.inc.php, please create it manually with the following content

 

at same the chown command seems does not fix this issue

I'm ready to create it manually if you suggest me a kind of tutorial (not tons of pages)

 

 

Posted

Then it's either the wrong user or you did something wrong with the chown.

Bs sure to use the user the Webserver runs as, otherwise it cannot create files or write to the directory. 

What do the following two commands output?

# ls -la /var/www/

# ps faux | grep apache

Posted


root@biz:~# ls -la /var/www/
total 20
drwxr-xr-x  5 root     root     4096 Nov 12 07:50 .
drwxr-xr-x 14 root     root     4096 Nov  4 09:53 ..
drwxr-xr-x 15 www-data www-data 4096 Nov  1 13:27 froxlor
drwxr-xr-x 15 www-data www-data 4096 Nov 11 21:48 html
drwxr-xr-x  2 root     root     4096 Nov 12 07:39 webalizer

 

Posted


root@biz:~# ps faux | grep apache
root     19974  0.0  0.0  14428   992 pts/0    S+   08:57   0:00      \_ grep --color=auto apache
root     19549  0.0  2.7 497268 27068 ?        Ss   08:16   0:00 /usr/sbin/apache2 -k start
www-data 19569  0.0  2.2 500428 22044 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
www-data 19570  0.0  2.0 500288 20784 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
www-data 19571  0.0  1.5 499632 15212 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
www-data 19572  0.0  2.3 500372 23412 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
www-data 19573  0.0  2.1 500364 21712 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
www-data 19577  0.0  1.5 499608 15212 ?        S    08:16   0:00  \_ /usr/sbin/apache2 -k start
 

Posted

Okay, weird, that looks just fine, both are www-data. And you are sure you pointed the default vhost to /var/www/ instead of /var/www/html/? Because your standard index.html looks more like it points to /var/www/html - do you by any chance have /var/www/html/froxlor/? What's the ownership there? 

Posted

example


-rw-r--r--  1 1000 1000   1309 Nov  1 13:27 phpcs.xml
-rw-r--r--  1 1000 1000   1119 Nov  1 13:27 phpdox.xml
-rw-r--r--  1 1000 1000   1325 Nov  1 13:27 phpmd.xml
-rw-r--r--  1 1000 1000   1606 Nov  1 13:27 phpunit.xml
-rw-r--r--  1 1000 1000   1906 Nov  1 13:27 README.md
drwxr-xr-x  2 1000 1000   4096 Nov  1 13:27 scripts
-rw-r--r--  1 1000 1000    749 Nov  1 13:27 SECURITY.md
-rw-r--r--  1 1000 1000   5610 Nov  1 13:27 ssl_certificates.php
drwxr-xr-x  4 1000 1000   4096 Nov  1 13:27 templates
drwxr-xr-x 19 1000 1000   4096 Nov  1 13:27 tests
drwxr-xr-x  8 1000 1000   4096 Nov  1 13:27 vendor
 

 

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...