OJS XAMPP installation problem

Hi Alec,

After reading through the discussion forums I am still unable to resolve the issue of installing OJS 3.0.2 on my XAMPP test server. Below is the Apache error log. Thanks in advance.

David Williams

[Thu Apr 06 16:53:48.986854 2017] [ssl:warn] [pid 12036:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Apr 06 16:53:49.192866 2017] [core:warn] [pid 12036:tid 564] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
[Thu Apr 06 16:53:49.457882 2017] [ssl:warn] [pid 12036:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Apr 06 16:53:49.569888 2017] [mpm_winnt:notice] [pid 12036:tid 564] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/7.1.1 configured – resuming normal operations
[Thu Apr 06 16:53:49.569888 2017] [mpm_winnt:notice] [pid 12036:tid 564] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52
[Thu Apr 06 16:53:49.569888 2017] [core:notice] [pid 12036:tid 564] AH00094: Command line: ‘c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache’
[Thu Apr 06 16:53:49.574889 2017] [mpm_winnt:notice] [pid 12036:tid 564] AH00418: Parent: Created child process 12744
[Thu Apr 06 16:53:51.629004 2017] [ssl:warn] [pid 12744:tid 600] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Apr 06 16:53:52.065030 2017] [ssl:warn] [pid 12744:tid 600] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Apr 06 16:53:52.144032 2017] [mpm_winnt:notice] [pid 12744:tid 600] AH00354: Child: Starting 150 worker threads.
[Thu Apr 06 16:54:10.713081 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of ValidatorUrl::getRegexp() should be compatible with ValidatorUri::getRegexp($allowedSchemes = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\validation\ValidatorUrl.inc.php on line 19
[Thu Apr 06 16:54:10.876091 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of InstallForm::execute() should be compatible with Form::execute($object = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\install\form\InstallForm.inc.php on line 20
[Thu Apr 06 16:54:10.941095 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute($object = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\install\form\UpgradeForm.inc.php on line 63
[Thu Apr 06 16:54:11.105107 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\xampp\htdocs\journal\lib\pkp\pages\install\InstallHandler.inc.php on line 20
[Thu Apr 06 16:54:12.083160 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20
[Thu Apr 06 16:54:12.084160 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20
[Thu Apr 06 16:54:12.084160 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62012] PHP Warning: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20
[Thu Apr 06 16:54:14.757312 2017] [php7:warn] [pid 12744:tid 1872] [client ::1:62028] PHP Warning: Declaration of PageHandler::authorize($request, &$args, $roleAssignments) should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in C:\xampp\htdocs\journal\lib\pkp\controllers\page\PageHandler.inc.php on line 19, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:54:15.302342 2017] [php7:warn] [pid 12744:tid 1872] [client ::1:62028] PHP Warning: Declaration of DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:54:15.303342 2017] [php7:warn] [pid 12744:tid 1872] [client ::1:62028] PHP Warning: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:54:15.305343 2017] [php7:warn] [pid 12744:tid 1872] [client ::1:62028] PHP Warning: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.087450 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of ValidatorUrl::getRegexp() should be compatible with ValidatorUri::getRegexp($allowedSchemes = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\validation\ValidatorUrl.inc.php on line 19, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.094452 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of InstallForm::execute() should be compatible with Form::execute($object = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\install\form\InstallForm.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.096450 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of UpgradeForm::execute() should be compatible with Form::execute($object = NULL) in C:\xampp\htdocs\journal\lib\pkp\classes\install\form\UpgradeForm.inc.php on line 63, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.108453 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\xampp\htdocs\journal\lib\pkp\pages\install\InstallHandler.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.167454 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.168453 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.168453 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in C:\xampp\htdocs\journal\plugins\blocks\developedBy\DevelopedByBlockPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.680483 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of AbntCitationPlugin::fetchCitation(&$article, &$issue, &$journal) should be compatible with CitationPlugin::fetchCitation($article, $issue, $journal) in C:\xampp\htdocs\journal\plugins\citationFormats\abnt\AbntCitationPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:21.680483 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of AbntCitationPlugin::manage($verb, $args, &$message, &$messageParams, &$pluginModalContent = NULL) should be compatible with Plugin::manage($args, $request) in C:\xampp\htdocs\journal\plugins\citationFormats\abnt\AbntCitationPlugin.inc.php on line 20, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:23.714597 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of PubIdImportExportPlugin::display(&$args, $request) should be compatible with ImportExportPlugin::display($args, $request) in C:\xampp\htdocs\journal\plugins\importexport\pubIds\PubIdImportExportPlugin.inc.php on line 433, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:24.486642 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of PKPOAIMetadataFormat_DC::toXml(&$dataObject, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in C:\xampp\htdocs\journal\lib\pkp\plugins\oaiMetadataFormats\dc\PKPOAIMetadataFormat_DC.inc.php on line 80, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:24.596647 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of OAIMetadataFormat_MARC::toXml(&$record, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in C:\xampp\htdocs\journal\plugins\oaiMetadataFormats\marc\OAIMetadataFormat_MARC.inc.php on line 46, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:24.691653 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of OAIMetadataFormat_MARC21::toXml(&$record, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in C:\xampp\htdocs\journal\plugins\oaiMetadataFormats\marcxml\OAIMetadataFormat_MARC21.inc.php on line 46, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:24.801659 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of OAIMetadataFormat_NLM::toXml(&$record, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in C:\xampp\htdocs\journal\plugins\oaiMetadataFormats\nlm\OAIMetadataFormat_NLM.inc.php on line 277, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:24.936669 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of OAIMetadataFormat_RFC1807::toXml(&$record, $format = NULL) should be compatible with OAIMetadataFormat::toXml($record, $format = NULL) in C:\xampp\htdocs\journal\plugins\oaiMetadataFormats\rfc1807\OAIMetadataFormat_RFC1807.inc.php on line 107, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:25.174680 2017] [php7:warn] [pid 12744:tid 1884] [client ::1:62103] PHP Warning: Declaration of PayPalPlugin::displayPaymentSettingsForm(&$params, &$smarty) should be compatible with PKPPaymethodPlugin::displayPaymentSettingsForm(&$params, $smarty) in C:\xampp\htdocs\journal\plugins\paymethod\paypal\PayPalPlugin.inc.php on line 354, referer: http://localhost:8080/journal/index.php/index/install
[Thu Apr 06 16:56:25.733711 2017] [php7:error] [pid 12744:tid 1884] [client ::1:62103] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\journal\lib\pkp\lib\adodb\drivers\adodb-mysql.inc.php:456\nStack trace:\n#0 C:\xampp\htdocs\journal\lib\pkp\lib\adodb\adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘ojs2’, ‘’, ‘’)\n#1 C:\xampp\htdocs\journal\lib\pkp\classes\db\DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘ojs2’, ‘’, NULL, false)\n#2 C:\xampp\htdocs\journal\lib\pkp\classes\db\DBConnection.inc.php(119): DBConnection->connect()\n#3 C:\xampp\htdocs\journal\lib\pkp\classes\db\DBConnection.inc.php(106): DBConnection->initConn()\n#4 C:\xampp\htdocs\journal\lib\pkp\classes\db\DBConnection.inc.php(55): DBConnection->initCustomDBConnection(‘mysql’, ‘localhost’, ‘ojs2’, ‘’, NULL, false, ‘utf8’)\n#5 C:\xampp\htdocs\journal\lib\pkp\classes\install\PKPInstall.inc.php(76): DBConnection->__construct(‘mysql’, ‘localhost’, ‘ojs2’, ‘’, NULL, false, ‘utf8’)\n#6 C:\xampp\htdocs\journal\lib\pkp\classes\install\Installer.inc.php(178): PKPInstall->preInstall()\n#7 C:\xamp in C:\xampp\htdocs\journal\lib\pkp\lib\adodb\drivers\adodb-mysql.inc.php on line 456, referer: http://localhost:8080/journal/index.php/index/install

Hi @iieta,

The relevant message is Call to undefined function mysql_connect(). See e.g. Installation problem - #11 by Sokonosako.

Regards,
Alec Smecher
Public Knowledge Project Team

Does that mean I should use mysqli instead of mysql? We tried to upgrade from 2.4.8 to 3.0.2 on our live server which uses MySQL, but the installation was incomplete. Hence, my reason for wanting to build a fully operational test site offline first.

Hi @iieta,

You’ll need to use whichever your PHP server supports – it looks like your server doesn’t support mysql, so you can either install mysql support, or use mysqli.

Regards,
Alec Smecher
Public Knowledge Project Team