Wordpress , newest version OC and firmware 16.1 release date

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 7:44 pm

The patch installed correctly. I now have PHP ver 5.6.6 (as in information page) Rebooted the nas.

I looked my php.ini file and it's the same. My lines extension=msql.so and extension=mysql.so are both there. (I added mysql and msql because i don't know wich one I have to use :doh ...

restarted the mysql server.

Wordpress alway said that the php mysql extention are missing! I think I will wait for the 16.1 firmware!

Maybe making mysql built in the firmware would be the way to go but I assume it's a lot of work... This will allow na easy way to stat the service on reboot , view the service stat in the Status in the information page, uninstall the service easyly and so on....

I don't quite understant "You will need to modify your php.ini file to use load it and reboot"
If it's to enable the exensions as the php.ini was untouched by the update , the line where already in. Maybe I did'nt undertood something else? :thinking
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby Jocko » Tue Sep 22, 2015 7:54 pm

Can you post a link where you downloaded the php wordpress package: to see what check it is done

and see if mysql extension in the phpinfo are listed (View PHP and apache information)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 8:04 pm

Jocko wrote:Can you post a link where you downloaded the php wordpress package: to see what check it is done



Hi jocko

here is the link:

https://wordpress.org/download/

just click download in the upper right corner, extract the zip file, put all the file in the root of your web server (I did a symlink)

after that go to the webpage {yournas}/{yourwebdirectory}/wp-admin/install.php
Then install.php will make a wp-config.php from the template wp-config-sample.php (located in the root)

You need the to edit the wp-config.php to add your server database name and credentials.

Hope it helps!
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 8:10 pm

MySql dosn't seem to be installed as an extention on the PHP / Appache information page...

Maybe I forgot the edit something else in the php.ini... I juste add the 2 extension=msql.so and mysql.so line at the end of the php.ini files... I saw that extension are also written there. I rebbot and take a look...
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby Jocko » Tue Sep 22, 2015 8:21 pm

Indeed it seems that you made a mistake somewhere as on my side I got :
mysql.jpg


What I did :
- install mysql in fvdw/addons and untar mysql.tar file.
- initialize mysql and start mysql

- I added manually mysql.so in extensions folder (you get it automatically by uploading fvdw's patch)

- I added the line extension=mysql.so in /etc/php.ini after openssl extension

- stop and start apache
Code: Select all
/usr/bin/httpd -f httpd.conf -d /etc -k graceful-stop
/usr/bin/httpd -f httpd.conf -d /etc


and I got the mysql module
Code: Select all
root@Acrab:/ # php -m |grep mysql -C 2
libxml
mbstring
mysql
openssl
pcre


--edit--
no need mysql is running when you restart apache server
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 8:35 pm

maybe it's in the way I had it installed.

What I did:

1- installed the mysql add-on via the patch menu (this is working as I created a database and so on.... I did this some days ago)
--ok--
2- modified the php.ini to add the line extension-mysql.so (edited: removed the extension=msql.so to only keep extension=mysql.so)check your php.ini (some time you wrote extension-mysql.so and later extension=mysql.so) the first syntax is wrong

3- installed the FVDW extension patch he just gave me via the patch menu and rebooted.... I used the "unzip" control code as the file provided was a zip file... there is no difference I already have php 5.6.6 so I just installed mysql.so from the patch
check if you have the file:
Code: Select all
root@Acrab:/proc/6273 # ls -l /usr/lib/php/extensions/mysql.so
-rwxr-xr-x  1 root root 42136 2015-09-22 20:31 /usr/lib/php/extensions/mysql.so


You seems to have installed it in another way?

BTW thanks for the command line for listing installed extensions...
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby Jocko » Tue Sep 22, 2015 8:50 pm

I edited your post.

can you try this sequence
Code: Select all
/usr/bin/httpd -f httpd.conf -d /etc -k graceful-stop
/usr/bin/httpd -f httpd.conf -d /etc
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 8:52 pm

oups when I do this command: php -m |grep mysql -C 2

I got a lot of
"PHP warning unable to initialize module...
Module compiled with module API=20121212
PHP compiled with module API=20131226
...These options need to match"

maybe I should just reaply the myphp mysql addon patch? (API seems to be date stamps of both PHP modules)

I did the apache restart as you did.

edited: It seems all module are now brocken. openssl , Don't worry it's a test nas with nothing on it, it's for fun and learning and I would loke to have wordpress installed to host a personnal website...
Also my nas seems to take much longer to boot

P.S. sorry for my bad english , i'm native french and I make a lot of mistakes when trying to type fast... :-D
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby raidsm » Tue Sep 22, 2015 8:59 pm

I do have the file mysql.so in the extensions folder (checked with the command you instructed me to use)

I did restarted the apache server like you said.

doubled check php.ini thaht the syntax is good: " extension=mysql.so " located juste under extension=openssl.so

maybe I should just wipe the 16.0 firmware wait and make a clean install of the 16.1 firmware , and install the extension / mysql addon after that?
raidsm
Donator VIP
Donator VIP
 
Posts: 153
Joined: Wed May 13, 2015 11:40 pm

Re: Wordpress , newest version OC and firmware 16.1 release

Postby Jocko » Tue Sep 22, 2015 9:11 pm

Can you post your php.ini file and the content of the folder extensions
Code: Select all
ls -l /usr/lib/php/extensions
maybe you load some obsolete modules with php 5.6.6 but compiled for version 5.5.7.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 7 guests