Forums Sign Up Reply Search Statistics
Power Toys GraFX Software Solutions - Forum / Power Toys /

User Deleting php.ini and getting error

 
Author kelepirci
Forums Member
#1 Posted: 30 Apr 2010 09:47:02
Reply 
Hello All,

I have installed suphp and Power Toys for automation. Everything works fine but suers start to delete php.ini and getting "No input file specified. " error.

I belive php.ini file could not be found in some how?

Is there any solution for this?
Author software
Admin
#2 Posted: 30 Apr 2010 15:24:33
Reply 
We know about this, we try to see how can this be avoided.
For the moment we have 2 idea.

1. Setup as +rw by PLESK only, then user cannot modify it via FTP only via PLESK
2. We need to see if we can detect or not php.ini if exist, if not ignore. BUT if not exist actually is ignore and use /etc/php.ini, but the issue is the tmp/ dir usage.

If anyone have a better idea?
Author kelepirci
Forums Member
#3 Posted: 3 May 2010 15:04:00
Reply 
1. Setup as +rw by PLESK only, then user cannot modify it via FTP only via PLESK

This solution works. But how can I automatically chmod php.ini as +rw?

Currently I am doing this manually.
Author software
Admin
#4 Posted: 4 May 2010 21:57:27
Reply 
Yes, but the idea was that also people can edit from FTP :-)
you can write a script in bash like

cd /var/www/vhosts/
find ./ -name "php.ini" | xargs chmod 700

rhis is a fast one, but similar and execute daily or hourly
Author kelepirci
Forums Member
#5 Posted: 7 May 2010 08:33:54
Reply 
cd /var/www/vhosts/
find ./ -name "php.ini" | xargs chmod 700

This solution works.

I have installed the new version of power toys and the problem has fixed with new version. php.ini is no longer deletable by user.
Author software
Admin
#6 Posted: 9 May 2010 08:41:51
Reply 
Stay tuned, we have a few more feature in next version.
Just a hint, when you enable in vhost.conf suphp, automatically we will do all files to 644 and folders to 755.
Also we will have a feature to run from cron the Domain Expired messages.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.