"remove installation folder" buttom not work in joomla 3.9 Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11194
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: "remove installation folder" buttom not work in joomla 3.9

Post by toivo » Fri Nov 23, 2018 5:23 pm

The canChmod() function, shown below, catches the permission issue, mentioned by @Per Yngve Berg earlier.

Per Yngve Berg wrote: PHP API: apache2handler

That means that php is running as the user 'www-data'. You got owner permission issues if the files where uploaded by another user.

Use cgi/fgi so php will run as the user that uploaded the files
libraries/src/Filesystem/Path.php:

Code: Select all

	/**
	 * Checks if a path's permissions can be changed.
	 *
	 * @param   string  $path  Path to check.
	 *
	 * @return  boolean  True if path can have mode changed.
	 *
	 * @since   1.7.0
	 */
	public static function canChmod($path)
	{
		$perms = fileperms($path);

		if ($perms !== false)
		{
			if (@chmod($path, $perms ^ 0001))
			{
				@chmod($path, $perms);

				return true;
			}
		}

		return false;
	}
Toivo Talikka, Global Moderator

User avatar
HZolfaghar
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Sun Jan 03, 2016 7:10 am
Location: Iran
Contact:

Re: "remove installation folder" buttom not work in joomla 3.9

Post by HZolfaghar » Wed Nov 28, 2018 10:20 am

leolam wrote:
Fri Nov 23, 2018 4:55 pm
[ redacted ]Remove installation folder works fine in Joomla 3.9 (besides your specific case we (see my signature) have no incidents reported!) so please accept this and look on your server... [ redacted ]

Leo 8)
Hi leolam

I explained the details of the problem and the cause accurately and scientifically.
I did not say Joomla has a problem and ...
I said the cause of this problem in my system and similar systems because of these changes in Joomla 3.9. And I explained why ...
I said in my comments that the problem is from the server and I explained it. just for those who may have trouble like me
It's a strange and sad thing for me to take this fight guard against me.
That you repeat someone has not reported so far is not very scientific.
Do you always answer like this to who reports the problem for the first time?
Because I'm the first person to identify this problem!....
This post will remain, and others will say that's a problem, and then your reaction will be interesting to me.

I wish you more patience and patience
Good luck
Last edited by HZolfaghar on Wed Nov 28, 2018 10:26 am, edited 2 times in total.

User avatar
HZolfaghar
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Sun Jan 03, 2016 7:10 am
Location: Iran
Contact:

Re: "remove installation folder" buttom not work in joomla 3.9

Post by HZolfaghar » Wed Nov 28, 2018 10:22 am

toivo wrote:
Fri Nov 23, 2018 5:23 pm
The canChmod() function, shown below, catches the permission issue, mentioned by @Per Yngve Berg earlier.

Per Yngve Berg wrote: PHP API: apache2handler

That means that php is running as the user 'www-data'. You got owner permission issues if the files where uploaded by another user.

Use cgi/fgi so php will run as the user that uploaded the files
libraries/src/Filesystem/Path.php:

Code: Select all

	/**
	 * Checks if a path's permissions can be changed.
	 *
	 * @param   string  $path  Path to check.
	 *
	 * @return  boolean  True if path can have mode changed.
	 *
	 * @since   1.7.0
	 */
	public static function canChmod($path)
	{
		$perms = fileperms($path);

		if ($perms !== false)
		{
			if (@chmod($path, $perms ^ 0001))
			{
				@chmod($path, $perms);

				return true;
			}
		}

		return false;
	}
Thank you very much for your scientific response

kaioh
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Mar 04, 2019 7:42 am

Re: "remove installation folder" buttom not work in joomla 3.9

Post by kaioh » Mon Mar 04, 2019 7:43 am

Per Yngve Berg wrote:
Tue Nov 20, 2018 8:46 am
PHP API: apache2handler

That means that php is running as the user 'www-data'. You got owner permission issues if the files where uploaded by amother user.

Use cgi/fgi so php will run as the user that uploaded the files.

Also max_post_size should be larger than the upload size.
Thank you Sir,
I solved my problem.

Giacomo


Post Reply

Return to “Installation Joomla! 3.x”