Page 3 of 5

Re: php.ini

Posted: Fri May 23, 2014 4:08 pm
by nightstryke
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

Re: php.ini

Posted: Sat May 24, 2014 10:54 pm
by drMacFaulty
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.

Re: php.ini

Posted: Fri Jun 27, 2014 2:19 pm
by imperio
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

Re: php.ini

Posted: Mon Nov 17, 2014 6:22 pm
by webass
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

Re: php.ini

Posted: Tue Nov 18, 2014 2:04 pm
by imperio
Show result:

Code: Select all

php -v
php -m

Re: php.ini

Posted: Tue Nov 18, 2014 2:09 pm
by webass
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
 

Re: php.ini

Posted: Fri Nov 28, 2014 6:03 pm
by webass
Hi,
nobody any idea why tha ioncube doesnt show up?

Re: php.ini

Posted: Sat Dec 06, 2014 6:47 am
by RouterRat
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.. :)

Re: php.ini

Posted: Sat Dec 06, 2014 5:36 pm
by webass
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.

Re: php.ini

Posted: Sat Dec 06, 2014 5:45 pm
by webass
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?