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
3 minutes ago, john9 said:

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
 

 

and there is your problem, that's

1) by far not a complete froxlor installation, you are missing TONS of files

2) not owned by www-data, hence the problem creating the userdata.inc.php file

3) when installing via deb-package, it's being installed to /var/www/ and not /var/www/html - adjust your default vhost as stated in the wiki entry

Posted

ehi there, I've been able to edit it using NANO, but despite my default document root is /var/www and I have installed froxflor too

I still have the same issue

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

and I'm also wondering how it still uses var/www/html if the documentRoot is just www

Posted

root@biz:~# ls -l /var/www/froxlor/
total 612
-rw-r--r--  1 www-data www-data   2713 Nov  1 13:27 2fa.php
drwxr-xr-x  3 www-data www-data   4096 Nov  1 13:27 actions
-rw-r--r--  1 www-data www-data  13445 Nov  1 13:27 admin_admins.php
-rw-r--r--  1 www-data www-data  15043 Nov  1 13:27 admin_apcuinfo.php
-rw-r--r--  1 www-data www-data   7256 Nov  1 13:27 admin_autoupdate.php
-rw-r--r--  1 www-data www-data   9430 Nov  1 13:27 admin_configfiles.php
-rw-r--r--  1 www-data www-data   4600 Nov  1 13:27 admin_cronjobs.php
-rw-r--r--  1 www-data www-data  18717 Nov  1 13:27 admin_customers.php
-rw-r--r--  1 www-data www-data  31839 Nov  1 13:27 admin_domains.php
-rw-r--r--  1 www-data www-data  14156 Nov  1 13:27 admin_index.php
-rw-r--r--  1 www-data www-data   5487 Nov  1 13:27 admin_ipsandports.php
-rw-r--r--  1 www-data www-data   4265 Nov  1 13:27 admin_logger.php
-rw-r--r--  1 www-data www-data   4178 Nov  1 13:27 admin_message.php
-rw-r--r--  1 www-data www-data   7094 Nov  1 13:27 admin_opcacheinfo.php
-rw-r--r--  1 www-data www-data  11103 Nov  1 13:27 admin_phpsettings.php
-rw-r--r--  1 www-data www-data  12329 Nov  1 13:27 admin_plans.php
-rw-r--r--  1 www-data www-data  14160 Nov  1 13:27 admin_settings.php
-rw-r--r--  1 www-data www-data  17644 Nov  1 13:27 admin_templates.php
-rw-r--r--  1 www-data www-data   4142 Nov  1 13:27 admin_traffic.php
-rw-r--r--  1 www-data www-data   4080 Nov  1 13:27 admin_updates.php
-rw-r--r--  1 www-data www-data   7815 Nov  1 13:27 api_keys.php
-rw-r--r--  1 www-data www-data   2096 Nov  1 13:27 api.php
-rw-r--r--  1 www-data www-data  10918 Nov  1 13:27 build.xml
-rw-r--r--  1 www-data www-data   2155 Nov  1 13:27 composer.json
-rw-r--r--  1 www-data www-data 105960 Nov  1 13:27 composer.lock
-rw-r--r--  1 www-data www-data  15146 Nov  1 13:27 COPYING
drwxr-xr-x  3 www-data www-data   4096 Nov  1 13:27 css
-rw-r--r--  1 www-data www-data  22412 Nov  1 13:27 customer_domains.php
-rw-r--r--  1 www-data www-data  19153 Nov  1 13:27 customer_email.php
-rw-r--r--  1 www-data www-data  15747 Nov  1 13:27 customer_extras.php
-rw-r--r--  1 www-data www-data   8752 Nov  1 13:27 customer_ftp.php
-rw-r--r--  1 www-data www-data  13428 Nov  1 13:27 customer_index.php
-rw-r--r--  1 www-data www-data   4028 Nov  1 13:27 customer_logger.php
-rw-r--r--  1 www-data www-data   7949 Nov  1 13:27 customer_mysql.php
-rw-r--r--  1 www-data www-data   7938 Nov  1 13:27 customer_traffic.php
-rw-r--r--  1 www-data www-data   3905 Nov  1 13:27 dns_editor.php
drwxr-xr-x  3 www-data www-data   4096 Nov  1 13:27 doc
-rw-r--r--  1 www-data www-data  26781 Nov  1 13:27 index.php
drwxr-xr-x  7 www-data www-data   4096 Nov  1 13:27 install
drwxr-xr-x  3 www-data www-data   4096 Nov  1 13:27 js
drwxr-xr-x  6 www-data www-data   4096 Nov  1 13:27 lib
drwxr-xr-x  2 www-data www-data   4096 Nov  1 13:27 lng
-rw-r--r--  1 www-data www-data   3243 Nov  1 13:27 logfiles_viewer.php
drwxr-xr-x  2 www-data www-data   4096 Nov  1 13:27 logs
-rw-r--r--  1 www-data www-data   1309 Nov  1 13:27 phpcs.xml
-rw-r--r--  1 www-data www-data   1119 Nov  1 13:27 phpdox.xml
-rw-r--r--  1 www-data www-data   1325 Nov  1 13:27 phpmd.xml
-rw-r--r--  1 www-data www-data   1606 Nov  1 13:27 phpunit.xml
-rw-r--r--  1 www-data www-data   1906 Nov  1 13:27 README.md
drwxr-xr-x  2 www-data www-data   4096 Nov  1 13:27 scripts
-rw-r--r--  1 www-data www-data    749 Nov  1 13:27 SECURITY.md
-rw-r--r--  1 www-data www-data   5610 Nov  1 13:27 ssl_certificates.php
drwxr-xr-x  4 www-data www-data   4096 Nov  1 13:27 templates
drwxr-xr-x 19 www-data www-data   4096 Nov  1 13:27 tests
drwxr-xr-x  8 www-data www-data   4096 Nov  1 13:27 vendor
 

Posted

You mean this:


VirtualHost configuration:
*:80                   biz.algorithmicseo.xyz (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
 

unfortunately I see the main document root is still var www html

that's quite strange because I'm sure to have edited that folder

Posted

Well did you restart apache after the changes?

Whatelse lies in /etc/apache2/sites-enabled/? When in doubt, grep "/var/www/html" in all /etc/apache2 to find out where this might be set

Posted

I restarted it and I grep the documentRoot and find out it's right on www BUT

checking again the config I see html

please help

conflicts var folder.jpg

Posted

Sorry, no idea what you are doing there, if wanted, I can take a look at that via shell. just sens me a PM with the credentials (root!) and I can see what's up there

Posted

Thank you for your help. I'll try to replicate it again on a different server soon. 

BUT 

why I cannot see my phpmyadmin if it has been installed and I run 

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

 

Posted

Ehi there,

Froxlor seems working fine but when I transfer the database, phpmyadmin do accept it but it says 

Warning in ./libraries/sql.lib.php#613
dot.gif count(): Parameter must be an array or an object that implements Countable

Backtrace

./libraries/sql.lib.php#2128: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#2079: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'Algosql1',
string 'wp_postmeta',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `wp_postmeta`',
NULL,
NULL,
)
./sql.php#221: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'Algosql1',
string 'wp_postmeta',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `wp_postmeta`',
NULL,
NULL,
)

and I tried fixing it with https://medium.com/@chaloemphonthipkasorn/แก้-bug-phpmyadmin-php7-2-ubuntu-16-04-92b287090b01

adding (array) just before $analyzed  (my bug was a little different)      

&& ((empty($analyzed_sql_results['select_expr']))
            || (count((array)$analyzed_sql_results['select_expr'] == 1) 

but it didn't fix. I guess it has nothing to do with Froxlor but myabe you have some ideas :)

Posted

no, it has NOTHING to do with froxlor. sorry, but phpmyadmin issues are nothing we can do something about, please contact the guys from phpmyadmin.

 

Archived

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



×
×
  • Create New...