We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
php.ini
-
- Posts: 83
- Joined: Tue Jan 14, 2014 6:43 am
Re: php.ini
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:
Replace with:
Then Restart apache:
/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>
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>
Code: Select all
service apache2 restart
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: php.ini
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.enterpr1se wrote:Is there any per-user php.ini in Vesta?
Hope this helps.
Re: php.ini
Hi,
this is possible in php-cgi or FastCGI
this function is not supported by vestacpIs there any per-user php.ini in Vesta?
this is possible in php-cgi or FastCGI
Re: php.ini
Hi,
I have added this:
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
Which of course caused an error. But I cannot help it.
Apache restarted also.
Its a an Ubuntu 14.04 64bit.
Thanks upfront.
Andre
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
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>
Apache restarted also.
Its a an Ubuntu 14.04 64bit.
Thanks upfront.
Andre
Re: php.ini
Show result:
Code: Select all
php -v
php -m
Re: php.ini
Its is not there, I checked it per instrucitons also.
See:
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
Hi,
nobody any idea why tha ioncube doesnt show up?
nobody any idea why tha ioncube doesnt show up?
Re: php.ini
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.. :)
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
Mine looks like this:
So, I will add the code one by one to all.
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
Re: php.ini
This was a good way to find out more.
I added it to and it came to an error whil performing php -m
which was:
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?
I added it to
Code: Select all
/etc/php5/cli/php.ini
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
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?