Page 8 of 28

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun May 08, 2016 12:12 pm
by baijianpeng
Syeef wrote: To install something additional, do this:

Code: Select all

yum install php55-php-soap --enablerepo=remi
yum install php56-php-soap --enablerepo=remi
yum install php70-php-soap --enablerepo=remi
In my case, I needed soap, which was not installed by default. Just replace "soap" with what you need.
Thank you!

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun May 08, 2016 1:28 pm
by baijianpeng
I just found a new issue about this Multiple PHP script:

On a Virtualbox VM machine, I installed CentOS 7 64-bit as the OS, then installed VestaCP, then installed multi-php with this script. Then I created a website, and installed this website with Joomla 3.5.1.

Now I want to install some extensions on Joomla. And then I noticed that:

If I choose "php 5.4" (default template) , I can "upload and install" on Joomla;
If I choose "php 7.0/5.6/5.5" (new extra templates), any of them, I can not "upload and install" extensions on Joomla. When I click on the "upload and install" button, the page immediately turns blank with following error message:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.

Through this test, I think something is wrong with those PHP versions installed by this script.

Could you please fix this?

Thank you.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun May 08, 2016 4:30 pm
by Syeef
baijianpeng wrote:If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.
Problem might be:
1. You need to increase php file upload limit
2. Maybe the extension you are trying to install doesn't support newer php version?

To increase file upload limit in php7, edit this file:

Code: Select all

nano /etc/opt/remi/php70/php.ini 


Replace the 2M in the following lines with your requirement, I guess 128M would be okay:

Code: Select all

post_max_size = 2M
upload_max_filesize = 2M
Do the same thing for php5.6, edit this file:

Code: Select all

nano /opt/remi/php56/root/etc/php.ini
Then restart httpd server with the following command:

Code: Select all

service httpd restart

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun May 08, 2016 8:25 pm
by skamasle
baijianpeng wrote:I just found a new issue about this Multiple PHP script:

On a Virtualbox VM machine, I installed CentOS 7 64-bit as the OS, then installed VestaCP, then installed multi-php with this script. Then I created a website, and installed this website with Joomla 3.5.1.

Now I want to install some extensions on Joomla. And then I noticed that:

If I choose "php 5.4" (default template) , I can "upload and install" on Joomla;
If I choose "php 7.0/5.6/5.5" (new extra templates), any of them, I can not "upload and install" extensions on Joomla. When I click on the "upload and install" button, the page immediately turns blank with following error message:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.

Through this test, I think something is wrong with those PHP versions installed by this script.

Could you please fix this?

Thank you.
Can you give us error.log ?

Las line when you get error 500 ?

Maybe memory limit or as say Syeef upload limit.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Mon May 09, 2016 12:46 am
by baijianpeng
Where is the file error.log for PHP 7.0 on VestaCP?

PS: Joomla will install extensions without check if it supports PHP7, because installing is not running.

Today I made a new test:

When I trying to install an extension package which is only 86KB, it was installed successfully.
Then another extension 100KB, successfully installed.
Then another extension 137KB, faild, the same error message as before.

I checked the php.ini for PHP7, the upload_max_filesize is 2MB.

There must be something that blocked files larger than 100KB.

But I don't know what to check and what to change.

Thank you.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Mon May 09, 2016 12:58 am
by baijianpeng
Syeef wrote:

To increase file upload limit in php7, edit this file:

Code: Select all

nano /etc/opt/remi/php70/php.ini 


Replace the 2M in the following lines with your requirement, I guess 128M would be okay:

Code: Select all

post_max_size = 2M
upload_max_filesize = 2M
Do the same thing for php5.6, edit this file:

Code: Select all

nano /opt/remi/php56/root/etc/php.ini
Then restart httpd server with the following command:

Code: Select all

service httpd restart
hi @Syeef,

I modified php.ini and increased those limit to 80M and 20M respectively, and then restarted httpd, but I still can not install a zip package only 137KB.

Thank you.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Mon May 09, 2016 1:00 am
by baijianpeng
I find a file named gate.com.error.log:

Code: Select all

[root@localhost log]# cd /var/log/httpd/domains
[root@localhost domains]# ls
gate.com.bytes  gate.com.error.log  gate.com.log  localhost.bytes  localhost.error.log  localhost.log
[root@localhost domains]# tail gate.com.error.log 
[Sun May 08 21:37:42.643734 2016] [fcgid:warn] [pid 6707] [client 192.168.1.3:38345] mod_fcgid: stderr: PHP Notice:  serialize(): "mainbodySchemasCombos" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115, referer: http://www.gate.com/
[Sun May 08 21:37:42.643736 2016] [fcgid:warn] [pid 6707] [client 192.168.1.3:38345] mod_fcgid: stderr: PHP Notice:  serialize(): "pushPullSchemas" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115, referer: http://www.gate.com/
[Sun May 08 21:37:42.643737 2016] [fcgid:warn] [pid 6707] [client 192.168.1.3:38345] mod_fcgid: stderr: PHP Notice:  serialize(): "presets" is returned from __sleep multiple times in /home/admin/web/gate.com/public_html/libraries/gantry/core/utilities/cache/cache.class.php on line 115, referer: http://www.gate.com/
[Sun May 08 21:37:42.643739 2016] [fcgid:warn] [pid 6707] [client 192.168.1.3:38345] mod_fcgid: stderr: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; remosPane has a deprecated constructor in /home/admin/web/gate.com/public_html/components/com_remository/remository.interface.php on line 329, referer: http://www.gate.com/
[Mon May 09 08:44:20.826453 2016] [fcgid:warn] [pid 2748] [client 192.168.1.3:35827] mod_fcgid: HTTP request length 135067 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index.php?option=com_installer
[Mon May 09 08:47:52.587516 2016] [core:error] [pid 2745] (13)Permission denied: [client 192.168.1.3:35832] AH00132: file permissions deny server access: /home/admin/web/gate.com/public_html/gate.com.error.log
[Mon May 09 08:48:07.868447 2016] [core:error] [pid 2746] (13)Permission denied: [client 192.168.1.3:35833] AH00132: file permissions deny server access: /home/admin/web/gate.com/public_html/gate.com.error.log
[Mon May 09 08:50:42.733266 2016] [fcgid:warn] [pid 2745] [client 192.168.1.3:35845] mod_fcgid: HTTP request length 135054 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index.php?option=com_installer&view=install
[Mon May 09 08:51:36.502437 2016] [fcgid:warn] [pid 2749] [client 192.168.1.3:35849] mod_fcgid: HTTP request length 135054 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index.php?option=com_installer&view=install
[Mon May 09 08:55:44.218235 2016] [fcgid:warn] [pid 3844] [client 192.168.1.3:35873] mod_fcgid: HTTP request length 135067 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index.php?option=com_installer
[root@localhost domains]# 
You can ignore those records for May 8th, Only read May 09 records, these records are for today's new test.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Mon May 09, 2016 1:24 am
by baijianpeng
Ok, I solved this issue after some Googling.

My OS is CentOS 7 64-bit, running VestaCP and this multi-php script.

1. modify the conf file:

Code: Select all

[root@localhost]# vim /etc/httpd/conf.d/fcgid.conf

2. insert following to the end of this file:

Code: Select all

FcgidConnectTimeout 20
MaxRequestLen 20000000

3. restart httpd:

Code: Select all

[root@localhost]# systemctl restart httpd
Now I can upload and install big files via the Joomla backend.

Thank you.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue May 10, 2016 8:33 pm
by skamasle
baijianpeng wrote:Ok, I solved this issue after some Googling.

My OS is CentOS 7 64-bit, running VestaCP and this multi-php script.

1. modify the conf file:

Code: Select all

[root@localhost]# vim /etc/httpd/conf.d/fcgid.conf

2. insert following to the end of this file:

Code: Select all

FcgidConnectTimeout 20
MaxRequestLen 20000000

3. restart httpd:

Code: Select all

[root@localhost]# systemctl restart httpd
Now I can upload and install big files via the Joomla backend.

Thank you.

Yes this will work also, there is orther solution in this topic, may be I add to faq this.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue May 10, 2016 9:30 pm
by skamasle
I will upgrade this on this days whit some fixes, and bug reports.