View previous topic :: View next topic |
Author |
Message |
Synapsis n00b

Joined: 24 Aug 2003 Posts: 11
|
Posted: Mon Oct 03, 2005 9:09 am Post subject: PHP5 & Apache2 Problems |
|
|
Hi,
I emerged the php5 ebuild:
developer ~ # php --version
PHP 5.0.5 (cli) (built: Sep 30 2005 22:07:41)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
and as you can see the ebuild worked without problems, the I edited the /etc/conf.d/apache
and added -D PHP5 (/usr/sbin/apache2 -D PHP5 -D DEFAULT_VHOST)
to it, restarted apache2 without errors, but the PHP don't work :/ and
i don't know why, because the mod_php is being loaded but the server still don't process
the .php files, any suggestions? _________________ // TheMany sings to US // |
|
Back to top |
|
 |
Cpt_McLane Tux's lil' helper


Joined: 08 Apr 2005 Posts: 133 Location: /home/mclane
|
Posted: Mon Oct 03, 2005 11:31 am Post subject: |
|
|
tried defining -D PHP instead of -D PHP5? |
|
Back to top |
|
 |
Synapsis n00b

Joined: 24 Aug 2003 Posts: 11
|
Posted: Mon Oct 03, 2005 11:42 am Post subject: |
|
|
I actually found out, that PHP works, but I can't bring phpMyAdmin to work :/ with that ebuild of php5.
I get the proper PHP info output, but when i try to start phpMyAdmin i get errors. I think that the ebuild configuration
miss some support for phpMyAdmin. Anybody runned in that problem? _________________ // TheMany sings to US // |
|
Back to top |
|
 |
Synapsis n00b

Joined: 24 Aug 2003 Posts: 11
|
Posted: Mon Oct 03, 2005 11:46 am Post subject: |
|
|
That is what i get when i try to start myphpadmin:
Fatal error: Call to undefined function preg_match() in /var/www/localhost/htdocs/phpmyadmin/libraries/defines.lib.php on line 36
this is my configure settings for the ebuild:
'./configure' '--prefix=/usr/lib/php5' '--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--disable-ctype' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filepro' '--disable-ftp' '--with-gettext' '--without-gmp' '--without-hwapi' '--without-iconv' '--without-informix' '--with-jpeg-dir=/usr' '--without-kerberos' '--enable-mbstring' '--with-mcrypt' '--without-mcve' '--disable-memory-limit' '--without-mhash' '--without-ming' '--without-msql' '--without-mssql' '--with-ncurses' '--without-oci8' '--without-oracle' '--with-openssl' '--with-openssl-dir=/usr' '--without-ovrimos' '--disable-pcntl' '--without-pcre-regex' '--without-pfpro' '--without-pgsql' '--disable-posix' '--with-pspell' '--without-recode' '--disable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--enable-sockets' '--disable-spl' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--without-xmlrpc' '--without-xsl' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-gd-jis-conv' '--enable-gd-native-ttf' '--with-png-dir=/usr' '--without-tiff-dir' '--without-xpm-dir' '--with-gd' '--with-mysql=/usr/lib/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli' '--with-readline' '--without-libedit' '--disable-session' '--without-sqlite' _________________ // TheMany sings to US // |
|
Back to top |
|
 |
tomk Bodhisattva


Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Mon Oct 03, 2005 11:55 am Post subject: |
|
|
You need the pcre USE flag enabled for the preg_* functions. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
 |
Synapsis n00b

Joined: 24 Aug 2003 Posts: 11
|
Posted: Mon Oct 03, 2005 12:59 pm Post subject: |
|
|
thanks, it worked perfect, but my developerteam needs an SESSION enabled or something like that :]
Anybody knows hot to enable this in ebuild? '--disable-session' is currently in my configure command but i don't know
how can i alter this configuration _________________ // TheMany sings to US // |
|
Back to top |
|
 |
Synapsis n00b

Joined: 24 Aug 2003 Posts: 11
|
Posted: Mon Oct 03, 2005 1:01 pm Post subject: |
|
|
In the USE Variable description I found this one:
session Adds persistent session support
is that the right thing to enable? Gotta give it a try ;] _________________ // TheMany sings to US // |
|
Back to top |
|
 |
llongi Retired Dev


Joined: 15 Apr 2004 Posts: 459 Location: Switzerland
|
Posted: Mon Oct 03, 2005 2:39 pm Post subject: |
|
|
Synapsis wrote: | In the USE Variable description I found this one:
session Adds persistent session support
is that the right thing to enable? Gotta give it a try ;] |
Yeah that is the right one for session support.
Take a look at the following site for more informations on the new USE flags, it's not 100% up-to-date, but close:
http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/NewUseFlags
Best regards, CHTEKK. _________________ Best regards, Luca. |
|
Back to top |
|
 |
|