I'm trying to setup legacy PHP project which uses PHP5 in WSL(Ubuntu 20.04). I'm facing some difficulties while installing PHP5 and MySQL module. I've configured the PHP5 environment but couldn't install a MySQL module. I'm facing error message as Call to undefined function mysql_connect()
. I used this answer to setup PHP5.
I know there are some security vulnerabilities in older PHP version and I'm not going to run this legacy app in production.
Could anyone point to ppa which has PHP5 MySQL modules? Any help would be much appreciated.
ppa:sergey-dryabzhinsky/php53
repo – Mdumanoj Sep 15 '22 at 13:26--with-mysql
flag in the./configure
command? – Jos Sep 15 '22 at 13:30./configure
command without any flags. How can I enable mysql now? Should I remove php and install it from scratch again? – Mdumanoj Sep 15 '22 at 13:47sudo apt-get install php53-mod-mysql
– Cagri Sep 15 '22 at 15:05php53-mod-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not installable
– Mdumanoj Sep 16 '22 at 06:02