orangehrm / orangehrm

OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures all the essential functionalities required for any enterprise.
GNU General Public License v3.0
735 stars 535 forks source link

Cannot install OrangeHRM v5.6 #1827

Open buisontung1995 opened 1 month ago

buisontung1995 commented 1 month ago

OrangeHRM version

5.6

Environment details

Describe the bug

When go to "http://localhost/orangehrm-5.6/installer/index.php", it showed this error image

I already set full access for folder "htdocs" also "orangehrm-5.6" where source code located image image 

To reproduce

No response

Expected behavior

No response

Relevant log output

The issue related to installion

[2024-03-22T05:33:57.495128+01:00] installer.ERROR: Failed to write file "/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt": file_put_contents(/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt): Failed to open stream: Permission denied [] []
[2024-03-22T05:33:57.497477+01:00] installer.ERROR: #0 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Util/SystemCheck.php(602): OrangeHRM\Framework\Filesystem\Filesystem->dumpFile('/var/folders/m6...', '/var/folders/m6...') #1 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(190): OrangeHRM\Installer\Util\SystemCheck->checkWritePermission('/var/folders/m6...') #2 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(241): OrangeHRM\Installer\Framework\HttpKernel->configureSession(Object(OrangeHRM\Framework\Http\Request)) #3 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/index.php(65): OrangeHRM\Installer\Framework\HttpKernel->handleRequest(Object(OrangeHRM\Framework\Http\Request)) #4 {main} [] []
[2024-03-22T05:34:55.737933+01:00] installer.ERROR: Failed to write file "/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt": file_put_contents(/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt): Failed to open stream: Permission denied [] []
[2024-03-22T05:34:55.740595+01:00] installer.ERROR: #0 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Util/SystemCheck.php(602): OrangeHRM\Framework\Filesystem\Filesystem->dumpFile('/var/folders/m6...', '/var/folders/m6...') #1 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(190): OrangeHRM\Installer\Util\SystemCheck->checkWritePermission('/var/folders/m6...') #2 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(241): OrangeHRM\Installer\Framework\HttpKernel->configureSession(Object(OrangeHRM\Framework\Http\Request)) #3 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/index.php(65): OrangeHRM\Installer\Framework\HttpKernel->handleRequest(Object(OrangeHRM\Framework\Http\Request)) #4 {main} [] []
[2024-03-22T07:55:48.127935+01:00] installer.ERROR: Failed to write file "/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt": file_put_contents(/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt): Failed to open stream: Permission denied [] []
[2024-03-22T07:55:48.130846+01:00] installer.ERROR: #0 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Util/SystemCheck.php(602): OrangeHRM\Framework\Filesystem\Filesystem->dumpFile('/var/folders/m6...', '/var/folders/m6...') #1 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(190): OrangeHRM\Installer\Util\SystemCheck->checkWritePermission('/var/folders/m6...') #2 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(241): OrangeHRM\Installer\Framework\HttpKernel->configureSession(Object(OrangeHRM\Framework\Http\Request)) #3 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/index.php(65): OrangeHRM\Installer\Framework\HttpKernel->handleRequest(Object(OrangeHRM\Framework\Http\Request)) #4 {main} [] []
[2024-03-22T07:55:48.676822+01:00] installer.ERROR: Failed to write file "/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt": file_put_contents(/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt): Failed to open stream: Permission denied [] []
[2024-03-22T07:55:48.677599+01:00] installer.ERROR: #0 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Util/SystemCheck.php(602): OrangeHRM\Framework\Filesystem\Filesystem->dumpFile('/var/folders/m6...', '/var/folders/m6...') #1 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(190): OrangeHRM\Installer\Util\SystemCheck->checkWritePermission('/var/folders/m6...') #2 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(241): OrangeHRM\Installer\Framework\HttpKernel->configureSession(Object(OrangeHRM\Framework\Http\Request)) #3 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/index.php(65): OrangeHRM\Installer\Framework\HttpKernel->handleRequest(Object(OrangeHRM\Framework\Http\Request)) #4 {main} [] []
[2024-03-22T07:59:26.273687+01:00] installer.ERROR: Failed to write file "/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt": file_put_contents(/var/folders/m6/1t8855fn32dggnf9db6_12nw0000gn/T/_temp.txt): Failed to open stream: Permission denied [] []
[2024-03-22T07:59:26.275972+01:00] installer.ERROR: #0 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Util/SystemCheck.php(602): OrangeHRM\Framework\Filesystem\Filesystem->dumpFile('/var/folders/m6...', '/var/folders/m6...') #1 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(190): OrangeHRM\Installer\Util\SystemCheck->checkWritePermission('/var/folders/m6...') #2 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/Framework/HttpKernel.php(241): OrangeHRM\Installer\Framework\HttpKernel->configureSession(Object(OrangeHRM\Framework\Http\Request)) #3 /Applications/XAMPP/xamppfiles/htdocs/orangehrm-5.6/installer/index.php(65): OrangeHRM\Installer\Framework\HttpKernel->handleRequest(Object(OrangeHRM\Framework\Http\Request)) #4 {main} [] []
devishke-orange commented 1 month ago

Hi @buisontung1995,

Can you try changing the session storage directory as detailed here: https://github.com/orangehrm/orangehrm/issues/1750#issuecomment-1740291114 (the second method)

devishke-orange commented 2 weeks ago

Hi @buisontung1995,

Did you have any luck changing the session directory?