Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

php.ini

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
nightstryke
Posts: 83
Joined: Tue Jan 14, 2014 6:43 am

Re: php.ini
  • Quote

Post by nightstryke » Fri May 23, 2014 4:08 pm

Actually I found this out and if you're using the hosting options you need to edit this file:
/home/username/conf/web/apache2.conf

Find this:

Code: Select all

    <Directory /home/user/web/users.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        php_admin_value upload_tmp_dir /home/user/tmp
        php_admin_value upload_max_filesize 2M
        php_admin_value max_execution_time 120
        php_admin_value post_max_size  2M
        php_admin_value memory_limit 32M
        php_admin_flag mysql.allow_persistent  off
        php_admin_flag safe_mode off
        php_admin_value session.save_path /home/user/tmp
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f info@user$
    </Directory>
Replace with:

Code: Select all

    <Directory /home/user/web/users.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        php_admin_value upload_tmp_dir /home/user/tmp
        php_admin_value upload_max_filesize 50M
        php_admin_value max_execution_time 120
        php_admin_value post_max_size  50M
        php_admin_value memory_limit 64M
        php_admin_flag mysql.allow_persistent  off
        php_admin_flag safe_mode off
        php_admin_value session.save_path /home/user/tmp
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f info@user$
    </Directory>
Then Restart apache:

Code: Select all

service apache2 restart
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: php.ini
  • Quote

Post by drMacFaulty » Sat May 24, 2014 10:54 pm

enterpr1se wrote:Is there any per-user php.ini in Vesta?
If you choose apache hosting template then in that vhost, some php values get overridden (like max_filesize). So, you might also define other options on a per vhost basis. But, Afaik there is no php.ini per user.

Hope this helps.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Fri Jun 27, 2014 2:19 pm

Hi,
Is there any per-user php.ini in Vesta?
this function is not supported by vestacp
this is possible in php-cgi or FastCGI
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Mon Nov 17, 2014 6:22 pm

Hi,
I have added this:

Code: Select all

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.5.so
zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.5_ts.so  
on top of the php.ini in /etc/php5/apache2/php.ini as per instruction from this forum.
But the ioncube loader resists to load.
Do I have to use it in any other location?

I also tried

Code: Select all

    <Directory /home/admin/web/domain.com/public_html>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.5.so
        zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.5_ts.so
    </Directory>
Which of course caused an error. But I cannot help it.

Apache restarted also.
Its a an Ubuntu 14.04 64bit.

Thanks upfront.
Andre
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Tue Nov 18, 2014 2:04 pm

Show result:

Code: Select all

php -v
php -m
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Tue Nov 18, 2014 2:09 pm

Its is not there, I checked it per instrucitons also.
See:

Code: Select all

php -v
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
 

Code: Select all

php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
 
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Fri Nov 28, 2014 6:03 pm

Hi,
nobody any idea why tha ioncube doesnt show up?
Top

RouterRat
Posts: 23
Joined: Sat Dec 06, 2014 12:20 am

Re: php.ini
  • Quote

Post by RouterRat » Sat Dec 06, 2014 6:47 am

I have two domains and this is what I have:

root@web1:~# find / -name php.ini
/etc/php5/cgi/php.ini
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
/usr/local/vesta/src/rpm/conf/php.ini
/usr/local/vesta/php/lib/php.ini

So good luck with finding which one.. :)
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Sat Dec 06, 2014 5:36 pm

Mine looks like this:

Code: Select all

find / -name php.ini
/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini
/usr/local/vesta/php/lib/php.ini
/usr/local/vesta/src/rpm/conf/php.ini 
So, I will add the code one by one to all.
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: php.ini
  • Quote

Post by webass » Sat Dec 06, 2014 5:45 pm

This was a good way to find out more.
I added it to

Code: Select all

/etc/php5/cli/php.ini 
and it came to an error whil performing php -m
which was:

Code: Select all

Failed loading /usr/local/ioncube/ioncube_loader_lin_5.5.so:  /usr/local/ioncube/ioncube_loader_lin_5.5.so: wrong ELF class: ELFCLASS32
Now a little research on "wrong ELF class: ELFCLASS32" implements, that I installed a 32 bit version of the library and try to get it to run on a 64 bit seystem. But I definetely downloaded the 64bit version...

On all other php.ini files it has no effect at all.
So, I suppose that the /etc/php5/cli/php.ini is the right one to add it, while I have no clue why this should be...

Anyway. the 64bit files of iconcube I downloaded and installed cannot be really the problem can they?
Top


Post Reply
  • Print view

49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password