I couldnt find any docs so I am going by the instructions in the original pr
After installing joomla I then try to use the cli to create the public_folder
$ php cli/joomla.php site:create-public-folder
Create a public folder
======================
Please enter the absolute path to the public folder:
> /home/xxxxxxxxxxn/xxx.com/testcreatepublicfolder
In PublicFolderGeneratorHelper.php line 199:
Call to undefined function Joomla\CMS\Helper\symlink()
a folder /home/xxxxxxxxxxn/xxx.com/testcreatepublicfolder is created. it has two empty folders in it
/home/xxxxxxxxxxn/xxx.com/testcreatepublicfolder/administrator
/home/xxxxxxxxxxn/xxx.com/testcreatepublicfolder/api
php81
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
and on the windows machine nothing is disabled and it still fails
Because on Windows symlinks are different and the symlink method only works on Unixoids?
https://www.php.net/manual/en/function.symlink.php .. should work on Windows, too, I just see.
Hmm, a comment there says:
Symlinks on windows are created by Symlink() which accept only absolute paths but not relative paths .relative paths on windows are not supported for symlinks
Symlinks on windows are created by Symlink() which accept only absolute paths but not relative paths
@richard67 the code is already converting the (possible) relative paths to absolute:
Maybe there's a need to use DIRECTORY_SEPERATOR
instead of /
, but not on windows so can't really test it
Windows requires admin privileges to create the symlink.
Windows requires admin privileges to create the symlink.
Maybe it does but it still doesnt work on linux.
Call to undefined function Joomla\CMS\Helper\symlink()
The actual problem is that symlink is disabled in php on the server and as of php 8.0 the error message does not indicate that the function is disabled but says it is undefined
Reference php watch
As @Fedik says
Simlink function is disabled on your server.
I think the CLI script should check availability of it, it may be disabled on many other servers.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-01-24 09:42:47 |
Closed_By | ⇒ | brianteeman |
Simlink function is disabled on your server.
I think the CLI script should check availability of it, it may be disabled on many other servers.