Moderator: ago
Code: Select all
emerge -pv php

Code: Select all
<?php phpinfo(); ?>
Code: Select all
KinG-InFeT ~ # emerge phpmyadmin
Calculating dependencies... done!
emerge: there are no ebuilds built with USE flags to satisfy "dev-lang/php[crypt,ctype,filter,session,unicode]".
!!! One of the following packages is required to complete your request:
- dev-lang/php-5.2.13 (Change USE: +ctype +filter)
(dependency required by "dev-db/phpmyadmin-3.3.2" [ebuild])
(dependency required by "phpmyadmin" [argument])
KinG-InFeT ~ # Code: Select all
_NOTSET="-gnome -kde -qt3 -qt4 -nocxx -arts"
_CUSTOM="hal unicode X dbus alsa ipv6 python php apache2 session pam mysql xmlrpc imap exif gd pic odbc soap postgres snmp iconv crypt ctype filter session unicode"
_EDIROT="vim vim-syntax"
_IMAGE="png jpeg gif jpeg2k tiff"
_AUDIO="mp3 vorbis aac timidity flac ogg sid mad misepack sndfile speex opencore-amr gsm cue"
_VIDEO="theora v41 v412 vdpau x264 xvid schroedinger dirac"
USE="${}NOTSET} ${_CUSTOM} ${_EDITOR} ${_IMAGE} ${_AUDIO} ${_VIDEO}"Code: Select all
echo "dev-lang/php ctype filter" >> /etc/portage/package.use
emerge php

Code: Select all
* If you have additional third party PHP extensions (such as
* dev-php5/phpdbg) you may need to recompile them now.
*
* USE="pic" slows down PHP but has to be enabled on setups where TEXTRELs
* are disabled (e.g. when using PaX in the kernel). On hardened profiles this
* USE flag is enabled automatically
Code: Select all
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5"

Code: Select all
KinG-InFeT ~ # emerge dev-lang/php --info|grep pic
USE="berkdb bzip2 cli crypt ctype exif filter gd gdbm iconv imap ipv6 ldap mysqli ncurses nls odbc pcre pic postgres readline reflection session snmp soap spell spl ssl truetype unicode xml xmlrpc zlib -adabas -apache2 -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd-external -gmp -hash -inifile -interbase -iodbc (-java-external) -json -kerberos -kolab -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysql -oci8 -oci8-instant-client -pcntl -pdo -posix -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlwriter -xpm -xsl -yaz -zip"


KinG-InFeT wrote:mi si era bloccato il blocco maiuscolo


Code: Select all
_SERVER = "apache2 mysql php session pam ssl xml xml2 berkdb innodb"Code: Select all
www-servers/apache ldap ssl
dev-db/mysql community perl ssl
dev-lang/php xmlrpc imap exif gd pic odbc soap postgres snmp iconv
puoi postare l'output diKinG-InFeT wrote:ecco le use
Code: Select all
emerge -pv php apache
Code: Select all
KinG-InFeT ~ # emerge -pv php apache
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] www-servers/apache-2.2.15 USE="ldap ssl -debug -doc (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
[ebuild N ] dev-db/mysql-5.1.46 USE="community perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 0 kB
[ebuild N ] virtual/mysql-5.1 0 kB
[ebuild N ] dev-lang/php-5.2.13 USE="apache2 berkdb bzip2 cli crypt exif gdbm iconv ipv6 ldap mysql ncurses nls pcre readline reflection session spell spl ssl truetype unicode xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -imap -inifile -interbase -iodbc (-java-external) -json -kerberos -kolab -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip" 0 kB
Total: 4 packages (4 new), Size of downloads: 0 kB
KinG-InFeT ~ #
allora personalmente posso suggerirti di abilitare due o tre flag in piu' in php che molte applicazioni usano, nelle mie use flag ho:KinG-InFeT wrote:eccole
...
Code: Select all
# grep php /etc/portage/package.use/devel
=dev-lang/php-5* apache2 bzip2 cli -cgi ctype curl -concurrentmodphp force-cgi-redirect filter gd hardenedphp hash memlimit mysql mysqli pdo -soap tokenizer threads tidy xml xmlreader xmlwriter xsl zip unicode truetype iconv -spell suhosin xpm -snmp expat sockets json -force-cgi-redirect simplexmlCode: Select all
lifetree ~ # emerge -vp php
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] dev-lang/php-5.2.13 USE="apache2 berkdb bzip2 cli crypt ctype curl exif filter gd gdbm hash iconv ipv6 json mysql mysqli ncurses nls pcre pdo readline reflection session simplexml sockets spl ssl suhosin threads tidy tokenizer truetype unicode xml xmlreader xmlwriter xpm xsl zip zlib (-adabas) -bcmath (-birdstep) -calendar -cdb -cgi -cjk -concurrentmodphp -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) -fastbuild (-fdftk) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd-external -gmp -imap -inifile -interbase -iodbc (-java-external) -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap (-solid) -spell -sqlite (-sybase) (-sybase-ct) -sysvipc -wddx -xmlrpc -yaz" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kBCode: Select all
# grep servers\/apache /etc/portage/package.use/devel
www-servers/apache suexec -threadsCode: Select all
# grep -i apache /etc/make.conf
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
APACHE2_MPMS="itk"Code: Select all
# emerge -pv apache
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] www-servers/apache-2.2.15 USE="ssl suexec -debug -doc -ldap (-selinux) -static -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -authn_dbm -authz_dbm -authz_owner -cern_meta -charset_lite -dav -dav_fs -dav_lock -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="itk -event -peruser -prefork -worker" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kBCode: Select all
# grep OPT /etc/conf.d/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D LANGUAGE -D PHP5 -D USERDIR"
# /etc/init.d/apache2 restart
* Caching service dependencies ... [ ok ]
* Stopping apache2 ... [ ok ]
* Starting apache2 ... [ ok ]Code: Select all
# cat /var/www/localhost/htdocs/phpinfo.php
<?php phpinfo(); ?>Code: Select all
# cat /etc/hosts
127.0.0.1 myhostname localhostCode: Select all
ServerName 127.0.0.1
<Directory /home/peach/public_html>
Order Allow,Deny
Allow from all
Options +indexes
</Directory>Code: Select all
<VirtualHost *:80>
ServerAdmin peach@localhost
DocumentRoot /home/peach/public_html/project
ServerName project.myhostname
ErrorLog /home/peach/public_html/logs/error_log
CustomLog /home/peach/public_html/logs/access_log common
DirectoryIndex index.htm, index.php
<Directory /home/peach/public_html/project>
Options All
AllowOverride All
Order allow,deny
Allow from All
</Directory>
<IfModule mpm_itk_module>
AssignUserID peach users
</IfModule>
</VirtualHost>Code: Select all
127.0.0.1 myhostname project.myhostname