You are not logged in.

#1 2009-09-28 09:41:53

skazhy
Member
From: Riga, Latvia
Registered: 2009-07-01
Posts: 46

php extensions not working!

Hi!

PHP extensions (mysql, gd and others) were working, but now they don't! When I run a php script, that has mysql or gd functions I get following errors:

Fatal error: Call to undefined function mysql_connect()

or

Fatal error: Call to undefined function imagecreatefromjpeg()

Both gd and mysql are uncommented in php.ini file. I have reinstalled all packages (php, php-apache, mysql, php-gd, gd (and dependencies too)), and `LoadModule` and `Include` lines for php are in httpd.conf file. Mysqld and httpd starts succesfully, What could be the problem?
I have apache 2.2.13-2 and php 5.3.0-3.

Thanks in advance,

-skazhy

Offline

#2 2009-09-28 12:24:04

faya972
Member
Registered: 2009-09-28
Posts: 4

Re: php extensions not working!

Hi, I've juste got the same messages. Look in /etc/php/ if there is a "php.ini.pacnew" file.
If there is, rename it "php.ini" (you should move your original php.ini to php.ini.old just in case)
and uncomment the lines you need. Then restart apache.

During the last update of php with pacman, there was a line saying be carefull to new php.ini renamed php.ini.pacnew.

Sorry for my english, i'm french (speaking)

Offline

Board footer

Powered by FluxBB