Connected. No directories to list!
Opened this issue · 10 comments
Hi.
I'm connecting to my FTP server. The connection is working fine, everything is fine.
However, the ftp-web-client does not see my directories and files. Just a message coming out: "No directories/files to list".
I can use the ftp web client to create a directory or upload a file. It's working. But I can't view anything.
Apache does not write any errors. Vsftpd is used as an FTP server.
What can be done?
Php 7.3 is used.
Apache 2.4 (https).
Ubuntu 22.04.
The linux user is used as the user.
Umm even after u create files u dont see anything?
Can you maybe check the API response after creating files & the same for directory listing?
Even after creating files or directories, nothing is displayed. It just creates an object on the server. But the FTP client writes that there are no objects to display. I tried the same on the php8.3 version - there are no changes. I can check the API response if you tell me how to do it. I have full access to the server.
I forgot to say that all objects are displayed normally if you use regular Windows tools or other FTP software clients.
Maybe some php plugin should be enabled that is disabled by default?
To check the API response, just keep the browser developer tools open & u'll be able to see all the network requests made to the PHP server.
About the module part, i think we have to enable some PHP modules as well, but since the login & other API endpoints are working, maybe thats not the issue.
Hi. I did this:
In Google Chrome, I pressed F12, went to the network tab, created a connection to the FTP server, created a folder, uploaded a file. The folder and file on the server were successfully created, but the ftp-web-client did not display anything. Then I clicked the Export HAR button.
Is this what you need? (I have replaced my real domain with myserver.com)
ftp.myserver.com.har.zip
:) I do not know if it is important or not. Php7.3 is used as CGI in apache. I have several different versions of php in use, so I had to do this. The following lines have been added to the apach configuration file for this purpose, which force the server to use php7.3 on this config:
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
SetHandler application/x-httpd-php7.3
</FilesMatch>
AddHandler application/x-httpd-php7.3 .php
Action application/x-httpd-php7.3 /cgi-bin/php7.3
:) I do not know if it is important or not. Php7.3 is used as CGI in apache. I have several different versions of php in use, so I had to do this. The following lines have been added to the apach configuration file for this purpose, which force the server to use php7.3 on this config:
<FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars SetHandler application/x-httpd-php7.3 </FilesMatch> AddHandler application/x-httpd-php7.3 .php Action application/x-httpd-php7.3 /cgi-bin/php7.3
Oops, so.. does it work now?
No. This is the configuration on which I ran the FTP client.