Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wpmagic70

Pages: [1]
1
Hi, I tried editing webftp simple to add the zip and unzip feature to it.
Currently i added compress feature, but i have problems in making it work correctly, actually it works but it is not able to compress some files.
I link the index.php file here for anyone who have time to take a look at it and fix that problem if possible.
Please test it with atleast 3-depth directories and files:

https://drive.google.com/file/d/0B6sh3kVI_FADUWpXRE1UQXRvdk0/view

my function is named compressFile. and the problem is in this function: download_dir_to_tmp .
When download_dir_to_tmp tries to download a big directory it fails downloading some of its files.

To test the file it must being inserted at :
Code: [Select]
/usr/local/apache/htdocs/webftp_simple/
Thanks.

2
When i install a second php version in php switcher, there is a flags file which contains --enable-exif, but after install and compile when i access the compiled php from console it says exif extension not exists in the php.
I think i must install libexif-dev in my machine ? Or this is needed while compiling php ?


3
are you talking about php selector of php switcher ?

yes

4
Hi,
I installed php 7.1 as secondary php version and i use it for one of my projects. Now i want update that project and add one dependency to it using composer.
Composer says one of dependencies needs php 7.0 and above, then i tried call composer this way :
Code: [Select]
/usr/local/cwp/php71/bin/php /usr/local/bin/composer.phar require 2amigos/yii2-tinymce-widget
The problem with above command is that php loads without exif extension which is needed by one of dependencies.
Also i tried
Code: [Select]
/usr/local/cwp/php71/bin/php -m but all extensions are loaded except exif !
Also i checked the list of extensions in cwp and --enable-exif is in flags file, so it is active, maybe not active in console ?
Anyway how i can load that extension ?
Thanks.

5
Apache / Re: How to disable directory listing
« on: May 08, 2016, 07:37:25 AM »
Thank you. I was inserted it in there but seems the file was not changed at that time! this time tried changing that file from cwp root filemanager2 instead of  ftp and that worked.

Also i was inserted it in /usr/local/apache/conf/httpd.conf but it was not working there. Why ?
Thanks.

6
Apache / How to disable directory listing
« on: May 08, 2016, 07:09:32 AM »
Hi all. I installed cwp on my vps but sounds like directory browsing is enabled and i added following code on httpd.conf but it not works at all:
Options -Indexes

I have inserted it in many places even in my domain directory but it not works.
Please help me.
Thanks.

Pages: [1]