Dear Developers!
I recently tried to Install Script WordPress 2.8.2, but the installer script always stops with the following messages. I never installed WordPress by Install Script before.
Downloading http://scripts.virtualmin.com:80/wordpress-2.8.2.zip (2355394 bytes) .. Received 1024 bytes (0 %) Received 236544 bytes (10 %) Received 472064 bytes (20 %) Received 707584 bytes (30 %) Received 943104 bytes (40 %) Received 1178624 bytes (50 %) Received 1414144 bytes (60 %) Received 1649664 bytes (70 %) Received 1885184 bytes (80 %) Received 2120704 bytes (90 %) Received 2355394 bytes (100 %) .. download complete.
PHP module mysql is required ..
Installing package php4-mysql .. Installing package(s) with command apt-get -y --force-yes -f install php4-mysql ..
Reading package lists... Building dependency tree... Reading state information... Package php4-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package php4-mysql has no installation candidate
.. install failed! Installing package php-mysql .. Installing package(s) with command apt-get -y --force-yes -f install php-mysql ..
Reading package lists... Building dependency tree... Reading state information... E: Couldn't find package php-mysql
.. install failed!
.. failed to install!
My /etc/apt/sources.list is the following
deb http://ftp.hu.debian.org/debian/ lenny maindeb http://ftp.hu.debian.org/debian/ lenny main deb-src http://ftp.hu.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main deb-src http://security.debian.org/ lenny/updates main deb http://:@software.virtualmin.com/debian/ virtualmin-lenny main deb http://:@software.virtualmin.com/debian/ virtualmin-universal main
ClamAVdeb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
DoveCotdeb http://www.backports.org/debian lenny-backports main contrib non-free
The OS is Debian 5 Lenny and has not any other problems to access MySQL by PHP. Maybe this installer script is for older configurations and not for Lenny I don't know.
Please help me in this case.
Many thanks and keep up the good work.
Gergo Giczy Hungary/EU
Comments
Submitted by andreychek on Sun, 08/09/2009 - 15:44 Comment #1
Howdy -- yeah, it looks as if it may be trying to pull in the wrong dependency. Try typing this on the command line:
apt-get install php5-mysql
And then try the Install Script again -- does it install cleanly this time?
Submitted by JamieCameron on Sun, 08/09/2009 - 19:26 Comment #2
Also, it looks like you have PHP 4 enabled as the default version for your domain. Go to Server Configuration -> PHP Versions, and change the default (first) version to 5. Then re-try the Wordpress install.
Submitted by IS-V on Mon, 08/10/2009 - 04:16 Comment #3
The PHP version was the secret. Now it works.
It seems the first few domains had the PHP4 set up in 2008 by deafult. Maybe there was no PHP5 on the server at that time when installed Virtualmin. Now to make sure for all domains I ran the '/modify-web.pl --all-domains --php-version 5' command.
Many thanks.
Gergo
Submitted by JamieCameron on Mon, 08/10/2009 - 11:30 Comment #4
Cool, that would explain it.
Submitted by Issues on Mon, 08/24/2009 - 12:18 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.