{"id":4980,"date":"2019-10-10T01:50:08","date_gmt":"2019-10-10T01:50:08","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=4980"},"modified":"2021-09-02T04:43:06","modified_gmt":"2021-09-02T04:43:06","slug":"install-open-journal-system-ojs-3-1-1-4-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/10\/10\/install-open-journal-system-ojs-3-1-1-4-on-ubuntu-16-04\/","title":{"rendered":"Install Open Journal System (OJS) 3.1.1.4 On Ubuntu 16.04"},"content":{"rendered":"<p>Download from https:\/\/pkp.sfu.ca\/ojs\/ojs_download\/<br \/>\nExtract then run PHP Server to Install.<br \/>\nMake sure all the requirements is fulfilled (PHP, MySQL, Apache, etc)<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/works\/ojs-3.1.1-4$ php -S localhost:8089<\/pre>\n<p>Fill Administrator Account<br \/>\nusername: admin<br \/>\npassword: Admin@123<\/p>\n<p>Directory for uploads:\/home\/teddy\/Documents\/works\/ojs_files<br \/>\nCreate the dir : \/home\/teddy\/Documents\/works\/ojs_files<\/p>\n<p>MySQL Settings<br \/>\ndb driver: MySQLi (NOT MySQL)<br \/>\nusername: root<br \/>\npassword: teddy<br \/>\ndbname: ojs3114<\/p>\n<p>NOTE: Must use db driver MySQLi NOT MySQL. if not I&#8217;d get this error:<\/p>\n<pre class=\"lang:default decode:true \">[Thu Oct 10 08:54:59 2019] 127.0.0.1:37826 [500]: \/index.php\/index\/install\/install - Uncaught Error: Call to undefined function mysql_connect() in \/home\/teddy\/Documents\/works\/ojs-3.1.1-4\/lib\/pkp\/lib\/adodb\/drivers\/adodb-mysql.inc.php:456<\/pre>\n<p>Install success!<br \/>\nOpen http:\/\/localhost:8089\/index.php\/index<br \/>\nor login in http:\/\/localhost:8089\/index.php\/index\/login<br \/>\nSystem info: http:\/\/localhost:8089\/index.php\/index\/admin\/systemInfo<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/System-Information2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-4990\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/System-Information2-290x1024.jpg\" alt=\"\" width=\"290\" height=\"1024\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/System-Information2-290x1024.jpg 290w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/System-Information2-85x300.jpg 85w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/System-Information2.jpg 683w\" sizes=\"auto, (max-width: 290px) 85vw, 290px\" \/><\/a>To upgrade OJS to version 3.1.2.1, pls read https:\/\/openjournaltheme.com\/how-to-upgrade-ojs-version-3-1-1-to-3-1-2\/ then implement its.<br \/>\nHere is the upgraded OJS<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-4992\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded-1024x431.png\" alt=\"\" width=\"840\" height=\"354\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded-1024x431.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded-300x126.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded-768x323.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded-1200x505.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/10\/sysinfo_upgraded.png 1268w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>User<br \/>\nusername: advcha<br \/>\npassword: Teddy@123<\/p>\n<p>&lt;FAILED&gt;<br \/>\nNGINX SETUP:<\/p>\n<pre class=\"lang:default decode:true\">sudo gedit \/etc\/nginx\/sites-available\/ojs-3121.test<\/pre>\n<p>CONTENT:<\/p>\n<pre class=\"lang:default decode:true\">server {\n    listen 80; \n    listen [::]:80;\n    root \/home\/teddy\/Documents\/works\/ojs-3.1.2-1; #your document root\n    server_name www.ojs-3121.test ojs-3121.test ;  # Your server name\n    index index.php index.html index.htm ;\n\n    # Webfonts,fonts\n    location ~* \\.(?:ttf|ttc|otf|eot|woff|woff2)$ {\n        add_header \"Access-Control-Allow-Origin\" \"*\";\n        expires 1y;\n        access_log off;\n        add_header Cache-Control \"public\";\n    }\n\n    # Media: images, icons, video, audio, HTC\n    location ~* \\.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {\n        expires 1y;\n        access_log off;\n        add_header Cache-Control \"public\";\n    }\n\n    # Js, Css\n    location ~* \\.(?:css|js)$ {\n        expires 1y;\n        access_log off;\n        add_header Cache-Control \"public\";\n    }\n\n    # Serve static files without touching php\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$args;\n    } \n    # pass requests for dynamic content to site\n    location ~ [^\/]\\.php(\/|$) {\n        try_files $uri \/index.php; \n        fastcgi_pass unix:\/run\/php\/php7.2-fpm.sock;\n        \n        fastcgi_buffers 1024 4k;\n\n        fastcgi_read_timeout 600s;\n        fastcgi_connect_timeout 600s;\n\n        fastcgi_index index.php;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        #include fastcgi_params;\n        #FOR DEVELOPMENT MODE ONLY - BEGIN\n        fastcgi_param MAGE_IS_DEVELOPER_MODE true;\n        fastcgi_param PHP_VALUE  display_startup_errors=on;\n        fastcgi_param PHP_VALUE  display_errors=on;\n        fastcgi_param PHP_VALUE  html_errors=on;\n        fastcgi_param PHP_VALUE  log_errors=on;\n        fastcgi_param PHP_VALUE  error_log=\/home\/teddy\/Documents\/works\/ojs-3.1.2-1\/var\/log\/system.log;\n        #FOR DEVELOPMENT MODE ONLY - END\n        include fastcgi_params;\n    }\n\n    gzip on;\n    gzip_disable \"msie6\";\n\n    gzip_comp_level 6;\n    gzip_min_length 1100;\n    gzip_buffers 16 8k;\n    gzip_proxied any;\n    gzip_types\n    text\/plain\n    text\/css\n    text\/js\n    text\/xml\n    text\/javascript\n    application\/javascript\n    application\/x-javascript\n    application\/json\n    application\/xml\n    application\/xml+rss\n    image\/svg+xml;\n    gzip_vary on;\n\n    # Banned locations (only reached if the earlier PHP entry point regexes don't match)\n    location ~* (\\.php$|\\.htaccess$|\\.git) {\n        deny all;\n    }\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>Enable file config<\/p>\n<pre class=\"lang:default decode:true\">sudo ln -s \/etc\/nginx\/sites-available\/ojs-3121.test \/etc\/nginx\/sites-enabled\/ojs-3121.test<\/pre>\n<p>&nbsp;<\/p>\n<p>Register the host on my system<\/p>\n<pre class=\"lang:default decode:true\">sudo gedit \/etc\/hosts<\/pre>\n<p>Like this:<\/p>\n<pre class=\"lang:default decode:true\">...\n127.0.0.1 ojs-3121.test\n...<\/pre>\n<p>&nbsp;<\/p>\n<p>CHECK THE NGINX SETTING AND RESTART IT:<\/p>\n<pre class=\"lang:default decode:true\">sudo nginx -t\n\nsudo service nginx restart<\/pre>\n<p>Open it on your browser : http:\/\/ojs-3121.test<br \/>\nAdmin: http:\/\/ojs-3121.test\/wp-admin<br \/>\nusername: admin<br \/>\npassword: LF3#F@OPz8<br \/>\n&lt;\/FAILED&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download from https:\/\/pkp.sfu.ca\/ojs\/ojs_download\/ Extract then run PHP Server to Install. Make sure all the requirements is fulfilled (PHP, MySQL, Apache, etc) teddy@teddy:~\/Documents\/works\/ojs-3.1.1-4$ php -S localhost:8089 Fill Administrator Account username: admin password: Admin@123 Directory for uploads:\/home\/teddy\/Documents\/works\/ojs_files Create the dir : \/home\/teddy\/Documents\/works\/ojs_files MySQL Settings db driver: MySQLi (NOT MySQL) username: root password: teddy dbname: ojs3114 NOTE: Must &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/10\/10\/install-open-journal-system-ojs-3-1-1-4-on-ubuntu-16-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Open Journal System (OJS) 3.1.1.4 On Ubuntu 16.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[109],"tags":[],"class_list":["post-4980","post","type-post","status-publish","format-standard","hentry","category-ojs"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=4980"}],"version-history":[{"count":12,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4980\/revisions"}],"predecessor-version":[{"id":8389,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/4980\/revisions\/8389"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=4980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=4980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=4980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}