On Fri, 06 May 2011 14:00:52 +0200
Tobias Gasser <[email protected]> wrote:

> even without mysql/maria the php-applications segfault, where as i
> expected an error like 'mysql missing'.

I  have just installed mysql, php and phpMyAdmin, according to the book and 
without any problems ( but I also had "mysql missing" ).

I would sugest, for the first time to forget all about  joomla or mariadb and 
just try to put mysql and php in operation.

Some hints:

1.) qt needs to be build with mysql plugins. Configure with 
-plugin-sql-mysql -I/usr/include/mysql  -plugin-sql-sqlite -I/usr/include

2.) Apache: same thing. configure with  --with-mysql

3.) MySQL: You need to configure more or less as follows:
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --libexecdir=/usr/sbin \
            --localstatedir=/srv/mysql \
            --enable-thread-safe-client \
            --enable-assembler \
            --enable-local-infile \
            --with-unix-socket-path=/var/run/mysql/mysql.sock \
            --without-debug \
            --without-readline \
            --with-plugins=innobase,myisam \
            --with-extra-charsets=all \
            --with-ssl=/usr \
            --with-embedded-server

4.) php: configure along the example of 
http://anduin.linuxfromscratch.org/files/BLFS/svn/php_configure.txt.
I used 
--with-mysql \
            --with-mysql-sock=/var/run/mysql \
            --with-ldap \
            --with-ldap-sasl \
            --enable-sockets \
            --with-xsl \
            --with-iconv \
            --with-mcrypt=/usr/bin/ \
            --with-mhash
You will need to build mcrypt and mhash, but there are not problems at all

5.) phpMyAdmin-3.3.10. You need to unpack in your Web directory, in my case 
/srv/www/htdocs.
In order to get Apache and php working together, you need to include in 
/etc/apache/httpd.conf 
"AddType application/x-httpd-php .php"

After doing all this, you very probably will be succesfull in calling mysql 
through php in a browser. After that, you may consider working with Marias and 
so on.

Basically,  what I wrote is nothing else than that what is included in the book 
instructions.
Hope you will be succesfull

Edgar






-- 
Dr.-Ing. Edgar Alwers <[email protected]>
GPG Key ID:AD5C6F70
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to