Find Jobs
Hire Freelancers

Permissions on PHP-created file for a FTP account

$10-30 USD

Concluído
Publicado há mais de 9 anos

$10-30 USD

Pago na entrega
You don't have to 'do' anything. I only need an answer, a solution for a small problem. If your solution works, the reward is $ 20. First on with the golden solution counts (only one can get the reward). I have a Linux server Centos 6.5 with user root. In the Plesk Control Panel I created a Webspace, a domain and then there is the subscription owner's FTP account. With this FTP account a can get acces to the domain (using any FTP client like WS_FTP (Windows) or Cross FTP (OSX). Through FTP I can read, write and delete files. There is a folder httpdocs/log/ with permissions rwx rwx rwx. Using FTP I can upload any file to this folder and it will get permissions rw- r-- r-- User = usr_ecampus and Group = psacln. Of course I also can read and delete this file with the FTP account. The same goes for every other additional FTP account I create through Plesk Panel. Now I create a file through PHP in the very same folder - method fopen($file , 'a'). And the same goes for every (log)file produced by Prestashop. Again this new created file will get permissions rw- r-- r-- User = usr_ecampus and Group = psacln. So, owner and permissions look exactly the same. However, this PHP-created file is not visible for the FTP account. It cannot be overwritten by the FTP account. It is possible to see the file in Plek Panel and it is also possible to edit the file (Edit in text editor) through Plesk. After saving the file, the file is also visible for the FTP account. Permissions remain the same rw- r-- r-- User remains the same = usr_ecampus and Group remains the same = psacln. That's my problem and question. It seems that permissions and owner are not the solution (since they remain the same). What is going on and how can I create a file using PHP which will be visible and accessible for this FTP account? Again: the first one giving me the (working) solution for this I will pay $ 20. Thanks in advance.
ID do Projeto: 6607761

Sobre o projeto

9 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello, you need to change the user / group for your document root ( that contains the php script, and where the log will be created ) either to be apache:apache, or the user that owns that account Let me know if that helps Thank you
$20 USD em 0 dia
4,8 (236 avaliações)
6,7
6,7
9 freelancers estão ofertando em média $19 USD for esse trabalho
Avatar do Usuário
Dear Employer, Greetings, I would be happy to work on your website, I can assure 100% satisfaction for quality work. I am expert in web programming. Please feel free to ask any questions. Looking forward to fruitful response. Kind Regards, Muhammad Alyas
$15 USD em 1 dia
5,0 (193 avaliações)
7,5
7,5
Avatar do Usuário
Its looks like an issue with SELinux. Can you see the files when you ssh as root? I would like to try out a command to see if it works. Looking forward to your response
$24 USD em 0 dia
4,9 (130 avaliações)
7,1
7,1
Avatar do Usuário
Hello do u mind if i can see the code and get access to ftp temporarily to analyse better. -------------------------------------------- Regards, Darpan
$20 USD em 1 dia
5,0 (17 avaliações)
4,6
4,6
Avatar do Usuário
you can change the file's permission to 777 using the chmod('filename',777 ) function . hope this can help you :)
$10 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
yes the chmod may be the same as the other files but check the owner of the files you may need to "chown" them
$20 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Please check that command ps -aux | grep php you will see that user run php This add this user to you project folder user groups . Thats it
$25 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) NETHERLANDS
Almere, Netherlands
5,0
5
Membro desde nov. 21, 2013

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.