We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it soon. Read more about it: https://vestacp.com/docs/vesta-2-development
VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Thank you!Syeef wrote: To install something additional, do this:In my case, I needed soap, which was not installed by default. Just replace "soap" with what you need.Code: Select all
yum install php55-php-soap --enablerepo=remi yum install php56-php-soap --enablerepo=remi yum install php70-php-soap --enablerepo=remi
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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:
Through this test, I think something is wrong with those PHP versions installed by this script.
Could you please fix this?
Thank you.
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:
If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.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.
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.
Problem might be:baijianpeng wrote:If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.
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
Code: Select all
nano /opt/remi/php56/root/etc/php.ini
Code: Select all
service httpd restart
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Can you give us error.log ?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:
If I switch back to "default template", use PHP 5.4, then I can "upload and install" the SAME extension on Joomla.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.
Through this test, I think something is wrong with those PHP versions installed by this script.
Could you please fix this?
Thank you.
Las line when you get error 500 ?
Maybe memory limit or as say Syeef upload limit.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
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.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
hi @Syeef,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:Do the same thing for php5.6, edit this file:Code: Select all
post_max_size = 2M upload_max_filesize = 2M
Then restart httpd server with the following command:Code: Select all
nano /opt/remi/php56/root/etc/php.ini
Code: Select all
service httpd restart
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.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
I find a file named gate.com.error.log:
You can ignore those records for May 8th, Only read May 09 records, these records are for today's new test.
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]#
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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:
2. insert following to the end of this file:
3. restart httpd:
Now I can upload and install big files via the Joomla backend.
Thank you.
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
Thank you.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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:
Now I can upload and install big files via the Joomla backend.Code: Select all
[root@localhost]# systemctl restart httpd
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.
I will upgrade this on this days whit some fixes, and bug reports.