Hello,
Maybe I can find somewhere a guide how to install Opencart with Cyberpanel? I face quite a lot of troubles to install it, maybe it would be better if I can follow some guideliness.
Cyberpanel as itself installs normally. I can enter it and add websites etc. The main problem emerges when uploading opencart files to directory. I get these problems:
Warning : fopen(/home/DOMAI/public_html/system/storage/session//sess_958a8f2b6acc863db4cb649ef1): failed to open stream: Permission denied in /home/boardgame.lt/public_html/system/library/session/file.php on line 29Warning : flock() expects parameter 1 to be resource, bool given in /home/boardgame.lt/public_html/system/library/session/file.php on line 31Warning : fwrite() expects parameter 1 to be resource, bool given in /home/boardgame.lt/public_html/system/library/session/file.php on line 33Warning : fflush() expects parameter 1 to be resource, bool given in /home/boardgame.lt/public_html/system/library/session/file.php on line 35Warning : flock() expects parameter 1 to be resource, bool given in /home/boardgame.lt/public_html/system/library/session/file.php on line 37Warning : fclose() expects parameter 1 to be resource, bool given in /home/boardgame.lt/public_html/system/library/session/file.php on line 39
I know that there are problem with PHP 8.1 and Opencart 3.3.8 version (this version does not support PHP 8). However I have installed PHP 7.4 for this and it’s the default PHP right now. So the problem is not with PHP. I also added all permissions to opencart folder, however not sure what it’s the problem. The installation of opencart just cannot start.
Thanks. It worked. However new issue is that cURL should be enabled to install Opencart. I have installed it and it’s working, however it does not work and shows that’s is off.
What I have made:
uncommented extension=curl under php.ini (most common suggestion on forums).
Restarted php
Restarted openlitespeed
Not sure if I am the only one who is facing problems with cURL. Maybe any suggestions?
I managed to install it. Actually it’s really strange with PHP.
On CyberPanel I have selected PHP 7.4. You can even run www [dot] boardgame [dot] lt/phpinfo.php and you will see that the php version is 7.4. However when I connect to root CMD and type php -v I get this:
PHP 8.1.12 (cli) (built: Oct 28 2022 17:39:57) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies
So it’s really strange how it actually works. IN CMD I have installed PHP 7.4 and selected as default - then my website cannot load at all. If I leave in CMD 8.1 version it works. However in directmyadmin and Cyberpanel and even in this phpinfo page shows 7.4 version.
The thing is now is actually that opencart does no load icons and some things. I believe that this is basically regarding PHP issues but not sure what’s wrong.
Done everything what you suggested. Still admin side does not work properly.
I cannot press anything on admin panel side, once clicked it automatically closes. Cannot check error log there.
I have changed my actual domain to in order to reduce the chance for google to index it for later on. Not sure if it will work or not haha.
Since I am new user, I cannot share more than 2 links. There are more in this log, so I pasted it on external website. Please follow this link for the last 50 lines: Nov 11, 2022 - Codeshare
Basically run nano /etc/my.cnf use the keyboard shortcut CTRL+W to search for skip-name-resolve and comment it out. Restart mariadb systemctl restart mysqld
Dear Joseph, wow, actually. I was all time using OPERA and it does not work there (liek in photo). However I opened Chrome and all seems working there. Even for Opera I tried to delete cache a few times!
So seems that there is no problem !
Now the last thing to solve is that website with www prefix is not loading, but without www it’s fine. I have added to Cloudflare A type with name www redirection to my server IP address but it’s not working (maybe it needs more time to setup). So I have to dig deeper how to make the web accessible by www and without it.
Thank you for all the support. Really appreciate it!