Author Topic: [Wordpress + Apachee + Mysql + php ] php error (solved)  (Read 1016 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
[Wordpress + Apachee + Mysql + php ] php error (solved)
« on: November 27, 2010, 11:52:49 AM »
Hi,

I want to try the "easy" way, and I feel a bit confused knowing that Wordpress requires php, mysql, and several php modules, because the depends are mostly Apachee and not all the php modules and mysql packages I'm used to install along with it.

I did a fast selection, and would want to ask to the people who have done it before, what they think ?

Quote
apache-base (version 2.2.16-1pclos2010) sera installé
apache-mod_php (version 5.3.3-2pclos2010) sera installé
apache-modules (version 2.2.16-1pclos2010) sera installé
apache-mpm-prefork (version 2.2.16-1pclos2010) sera installé
httpd-conf (version 2.2.16-3pclos2010) sera installé
libmbfl1 (version 1.1.0-2pclos2010) sera installé
libmcrypt (version 2.5.8-2pclos2010) sera installé
libmcrypt4 (version 2.5.8-2pclos2010) sera installé
libonig2 (version 5.9.2-1pclos2010) sera installé
libt1lib5 (version 5.1.2-1pclos2010) sera installé
mysql-client (version 5.1.42-4pclos2010) sera installé
mysql-common (version 5.1.42-4pclos2010) sera installé
mysql-common-core (version 5.1.42-4pclos2010) sera installé
perl-DBD-mysql (version 4.013-2pclos2010) sera installé
php-cgi (version 5.3.3-1pclos2010) sera installé
php-gd (version 5.3.3-1pclos2010) sera installé
php-mbstring (version 5.3.3-1pclos2010) sera installé
php-mcrypt (version 5.3.3-1pclos2010) sera installé
php-mysql (version 5.3.3-1pclos2010) sera installé
php-mysqli (version 5.3.3-1pclos2010) sera installé
php-pdo (version 5.3.3-1pclos2010) sera installé
phpMyAdmin (version 3.3.7-1pclos2010) sera installé
t1lib-config (version 5.1.2-1pclos2010) sera installé
wordpress (version 3.0.1-1pclos2010) sera installé


Then I may, or may not, meet with some things to do I don't know about, as I never installed Apachee before (but Lighttpd that I keep the config from one install to another).

I am interested to try Apachee thought, because it might be easier to set up a Wordpress multiblog, than with Lighttpd, which is much less well documented.

Thanks.

« Last Edit: November 27, 2010, 02:58:22 PM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Wordpress + Apachee + Mysql + php ] php error (?)
« Reply #1 on: November 27, 2010, 02:50:47 PM »
Hi,

As I didn't see mysqld, I added mysql and mysql-core, and configured mysql, with the command as root:
Code: [Select]
# /usr/bin/mysql_secure_installation
Now mysql and Apachee are running. I could log  in phpMyAdmin and create create a database. But I can't install wordpress. When I start at http://localhost/wordpress/wp-admin/install.php I get a windows asking if I want to open the php file with my text editor, and when I want to check what is going on, I invoke php in console and get this message:

Quote
$ php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/translit.so' - /usr/lib/php/extensions/translit.so: undefined symbol: php_iconv_string in Unknown on line 0


php-translit is installed, I can see it among the /usr/lib/php/extensions directory, so what does it lack ? what does this message mean ?

Ok, I try installing php-iconv, as I see a package that bears this name in Synaptic... suspense, will it work now ?

Well php doesn't give back error nor the prompt, it's a good sign:
Code: [Select]
$ php


It looks like it works... :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15322
  • ┌∩┐(◕_◕)┌∩┐
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #2 on: December 02, 2010, 05:17:26 AM »
Hi melodie,

You may want to have a look here as it gives some info on an update (to Wordpress 3.0.2)

"This maintenance release fixes a moderate security issue that could allow a malicious Author-level user to gain further access to the site, addresses a handful of bugs, and provides some additional security enhancement"

PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #3 on: December 02, 2010, 08:37:09 AM »
Hi melodie,

You may want to have a look here as it gives some info on an update (to Wordpress 3.0.2)

"This maintenance release fixes a moderate security issue that could allow a malicious Author-level user to gain further access to the site, addresses a handful of bugs, and provides some additional security enhancement"




Hi menotu,

Thanks for the information. I'll update it with the french version as soon as it will be available here : http://www.wordpress-fr.net/telechargements

I might end with multiblog one day, when I will have figured out how to set it up.

Else, in order to get Wordpress installing plugins from within admin gui, I had to change recursively the ownership of the /var/www/html directory to "apache:apache", or it would ask for a ftp password...

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8598
  • Aurum nostrum non est aurum vulgi.
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #4 on: February 24, 2011, 02:57:06 AM »
For those who are not comfortable with the mysql commandline, you can always try mysql-administrator and/or phypMyAdmin for a GUI of the database.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #5 on: February 24, 2011, 03:29:14 AM »
For those who are not comfortable with the mysql commandline, you can always try mysql-administrator and/or phypMyAdmin for a GUI of the database.

Hi, this command line initiates and makes all the configuration for mysql : if you don't do it, you won't have a mysql account created and so on... how could you therefore login to phpMyAdmin ?

for "mysql-administrator", I don't know it.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8598
  • Aurum nostrum non est aurum vulgi.
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #6 on: February 24, 2011, 04:41:24 AM »
Hi Melodie,

The first time you use phpMyAdmin, you have to logon as root without a password. Then you create your users. At least that was how it always was on my localhost mysql.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: [Wordpress + Apachee + Mysql + php ] php error (solved)
« Reply #7 on: February 24, 2011, 06:13:37 AM »
Hi Melodie,

The first time you use phpMyAdmin, you have to logon as root without a password. Then you create your users. At least that was how it always was on my localhost mysql.

Ok, thanks for the tip Archie ! I'll try next time I will have an opportunity.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode