Closed simon1967 closed 5 years ago
Oh shit I forgot he is on a shared server. I just sudo -s and do everything as root and set permissions with chown as I need to. A shared box should have sudo disabled though shouldn't it?
Its been awhile since I used shared hosting sorry my bad, good catch :)
@Undefined-Variables could you link your comment related to your own experience. About the fact we do so for free and there's no link between paying on Patreon and getting something back (at least from myself).
I think this guy forgot we ain't UpWork or that we work at over 100 euros per hours.
@polynamaude I totally misread this earlier I linked the comment in the other thread so you can use it for the next person. That other guy really irritated me with the way he was talking at you like you are a paid employee, that is why he got my honest opinion. Then he thought he was being smart replying in spanish!
You do a great job here responding to every single message. I'm sure pH-7 knows how much you do for the software. He has a lot less stress and time thanks to you, he knows that and I'm sure he does okay with all the support the software gets... He is a exceptionally clever guy.
Just goes to show if put enough time and effort into something eventually it could be worthwhile. He is an inspiration and although I've barely spoken to him the amount I have learned from studying his work is astonishing. I owe him a great deal.
Also I am loving learning Javascript, I'm really enjoying it. I didn't realize how much like PHP it is in many ways and yet so different in many others. Amazing language the possibilities are literally endless.
Keep up the good work and I will always chip in if I see a problem I know something about.
@simon1967 Maybe you should take this as a reading... https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/643#issuecomment-535330628
@Undefined-Variables You shoudn't use sudo -s that's a bad habit. You shall modify your sudoers file instead. By allowing full root access by sudo you open your box to easy compromise as soon a user password is leaked. For example when I worked for a big telco we allowed specific users to specific applications in a limited fashion. We had to justify every adds we did to the sudoers file.
Yeah I do agree it's not ideal this way but I only do it while developing. On a production server changing the user "root" to something else is probably a wise move.
I just love the ease of not typing sudo a million times and direct access to mysql is lovely to. It uses unix socket to authenticate when the user is root so no -u user -p and no password to type :) Adding a user to the sudoers file does not give the exact same privileges it just allows you to use sudo and enter a password. That being said there are some things you would never want to do as root.
Hello to all you guy's. First i would like to say a big thanks to @Undefined-Variables and to @polynamaude these guy's have been really good to me in helping and giving me some understanding and lots to read, I can not praise you enough for giving your free time to this project your knowledge and guidance. Thanks... Just to update I have moved to vps server and for now all seems to have settled down. I supplied TMD Hosting with the configuration list for the server so in theory it was set up correctly. So at this moment in time I am learning reading and playing. I have set up another site so i can play with the software and learn as I go without killing what is running. I think i need to set up a server at home on my spare desktop in order to do this from home. Guys you are the best. I hope I can learn enough to help others in time Thanks Simon
The easiest and most practical way you can develop a site is to install a program called xampp.
xampp runs on your everyday machine and has Apache, PHP, MySQL all running quietly in the background. This is what xampp is for PHP development.
https://www.apachefriends.org/
would suggest the one with PHP-7.3 but they all will serve your requirements.
Thanks so much will organise that now. I have learned one thing, Once you get in to this you can not leave it alone I look at the clock sometimes at its 1 am . and as many I have work . But it is the only way to learn Cheers
Simon
Yes I can totally relate to that! I often find myself thinking about something programming related when I shouldn't be. Sometimes I even dream about it. Now that is really really sad. What is worst I wake up and try what I can remember!
Its very addictive and the more you learn the wider you horizon becomes and it gets worse!
Dam large error log has just come back. I have placed a new htaccess file I have cleared cache here we go its a 8 line error log going to have to look deeper now
[14-Oct-2019 07:02:28 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/gd.so' - libX11.so.6: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 07:02:28 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/gd.so' - libX11.so.6: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 07:53:47 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 08:53:54 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 12:00:39 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 12:24:36 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 13:25:03 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/imap.so' - libaudit.so.1: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:02 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/ldap.so' - libplc4.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/intl.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/intl.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/mbstring.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/mbstring.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/json.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/json.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 18:57:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/enchant.so' - libenchant.so.1: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [15-Oct-2019 02:01:14 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/bcmath.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/bcmath.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [15-Oct-2019 19:40:04 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152
On Tue, 15 Oct 2019 at 20:46, Undefined-Variables notifications@github.com wrote:
Yes I can totally relate to that! I often find myself thinking about something programming related when I shouldn't be. Sometimes I even dream about it. Now that is really really sad. What is worst I wake up and try what I can remember!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6SOEOPUFJXMVVFKUDLQOYMYVA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJ7W5Y#issuecomment-542374775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6VXFXSD4SHHLZICSX3QOYMYVANCNFSM4I7QX6QQ .
Something to work on for me
SIMON
On Tue, 15 Oct 2019 at 21:12, simon Boothman clubhouseuk@gmail.com wrote:
Dam large error log has just come back. I have placed a new htaccess file I have cleared cache here we go its a 8 line error log going to have to look deeper now
[14-Oct-2019 07:02:28 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/gd.so' - libX11.so.6: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 07:02:28 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/gd.so' - libX11.so.6: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 07:53:47 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 08:53:54 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 12:00:39 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 12:24:36 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152 [14-Oct-2019 13:25:03 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/imap.so' - libaudit.so.1: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:02 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/ldap.so' - libplc4.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/intl.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/intl.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:09 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/mbstring.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/mbstring.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 13:25:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/json.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/json.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [14-Oct-2019 18:57:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/enchant.so' - libenchant.so.1: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [15-Oct-2019 02:01:14 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php70/root/usr/lib64/php/modules/bcmath.so' - /opt/cpanel/ea-php70/root/usr/lib64/php/modules/bcmath.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 [15-Oct-2019 19:40:04 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes) in /home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php on line 152
On Tue, 15 Oct 2019 at 20:46, Undefined-Variables < notifications@github.com> wrote:
Yes I can totally relate to that! I often find myself thinking about something programming related when I shouldn't be. Sometimes I even dream about it. Now that is really really sad. What is worst I wake up and try what I can remember!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6SOEOPUFJXMVVFKUDLQOYMYVA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJ7W5Y#issuecomment-542374775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6VXFXSD4SHHLZICSX3QOYMYVANCNFSM4I7QX6QQ .
@simon1967 First thing, don't start an issue and go with something else. You make the title useless and searching the issues problematic. We call that being off topic.
2nd This ain't a general support to everything related to web hosting. And for this it's your server running out of resources.
Misconfiguration is more likely 4096mb is a ridiculous amount of memory.
The answers are found in you php.ini file.
You have not even included the extensions required.
Woops Sorry Simon
On Tue, 15 Oct 2019 at 21:23, Polyna-Maude R.-Summerside < notifications@github.com> wrote:
@simon1967 https://github.com/simon1967 First thing, don't start an issue and go with something else. You make the title useless and searching the issues problematic. We call that being off topic.
2nd This ain't a general support to everything related to web hosting. And for this it's your server running out of resources.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/649?email_source=notifications&email_token=AMRMA6S6CEGEYV6V6IUS2VTQOYRDFA5CNFSM4I7QX6Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKDBLQ#issuecomment-542388398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRMA6RV73U4FB5ILAFP3EDQOYRDFANCNFSM4I7QX6QQ .
@Undefined-Variables When you run out of resources, individual allocation fail so 4096 bytes is the size of one variable not the whole PHP
I will give you a hint...
gd.so
All of the above with .so are missing extensions, some are included with php (these are regarded to as the common group) Others are not and are installed using
apt-get install php7.3-json (json is one ext not in the common group, you can add as many as you like separate with a space)
Have you installed and ran composer?
@Undefined-Variables Nothing to do with Composer
@polynamaude I see, I have never even come close to running out of resources. That sucks!
@simon1967 How much ram does your vps have included in the deal?
@polynamaude Yeah I know I was asking cos I can see
/home/clubhou1/public_html/_protected/vendor/composer/autoload_static.php
Everywhere.
Oh I understand the cache is controlled by third party software so clearing it triggered the autoload and there is no memory available for it. Sorry I didn't think about it.
@simon1967 I have to agree with @polynamaude you are asking us questions that are not related to the software. Also this is not something I fully understand myself.
So for those reasons im out!
Cheers thanks I have found my php.ini file is empty 0
Simon ps bought some books today
Now closing this . I have I think resolved the issues. Guys thanks for the ponters in the direction I needed to look. Thanks for all your support simon
Hi there, I locked the thread since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Thank you, Pierre-Henry Soria 🤖
Ok I am say thanks first, Please be aware I am learning code slowly, I have spent a week reading various articles trying to help my self first. I am a patreon of ph7 cms . I am willing to pay for help as I love the software and the skill set that has been applied. I host with TMDhosting The site will run a couple of days perfect but then starts breaking up If i go to admin and clear the cache i can keep it going longer but then it will break up and read page not found but display as a text like page no background all text down the left had side then it will http 5000 error. I keep restoring and loosing my Data base this has been going on for a while, I have attached a screen shot of how it looks seconds before it falls over. Greatful for your help and support with this. also I will pay to have it running perfect if need be. Simon
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.