Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-23, 08:39:08

Author Topic: PHP scripts, error 500  (Read 2955 times)

0 Members and 1 Guest are viewing this topic.

Offline scristi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
PHP scripts, error 500
« on: 2017-05-09, 04:32:57 »
Hello, I'm trying to move Opencart script from a c-panel account to kloxo-MR new fresh server. The problem is when finish the FTP upload, the installed SSL not works any more and the Open Cart pages are in error 500, while other  PHP pages (not related with Open Cart) works without problems.

Can you help me to resolve this issue? Thanks in advance!

A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017050104
   - Web: --uninstalled--
   - PHP: php56s-5.6.30-2.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: s108495.myserver.com
C. Services:
   1. MySQL: --uninstalled--
   2. PHP:
      - Installed:
        - Branch: --uninstalled--
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: --uninstalled--
     - Lighttpd: --uninstalled--
     - Nginx: --uninstalled--
     - Apache: --uninstalled--
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.14-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          7799        739       7060          3         46        311
-/+ buffers/cache:        381       7417
Swap:         7935          0       7935
E. Disk Space:
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/vg-root  450G  2.8G  424G   1% /
« Last Edit: 2017-05-09, 18:04:54 by scristi »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP scripts, error 500
« Reply #1 on: 2017-05-09, 05:05:41 »
Read about OpenCart. Maybe they need special php module like ioncube.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: PHP scripts, error 500
« Reply #2 on: 2017-05-09, 09:47:07 »
 @scristi, is the domain changing with new Kloxo-MR server? Are you using exactly same database password etc?  If so did you change the config files of opencart accordingly?   

Check the logs of that domain in Kloxo-MR, it inside /home/httpd/domain.com/stats/ to get a clue.

EDIT: ok  i found some doc! Take a look at http://docs.opencart.com/administration/moving-server/ and pay attention to the following:
 Edit config.php and admin/config.php. These files contain the filesystem paths to OpenCart folders, URLs to OpenCart frontend and admin, and database access details. The paths and database details will most likely need to be updated, and the URLs will need to be changed only if the OpenCart store's domain has changed.


BTW, it's really great to see another c-panel user migrating to Kloxo-MR. AWESOME!
If you have any another questions, let us know!
« Last Edit: 2017-05-09, 09:49:54 by fossxplorer »
Kloxo-MR!

Offline scristi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: PHP scripts, error 500
« Reply #3 on: 2017-05-09, 14:45:10 »
Thanks fossxplorer and Mustafa, I have checked all these details and the problem persists.

I'll try now making a fresh open cart installation in Kloxo-MR, to see what happens...

I'll comment the results here.

Offline scristi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: PHP scripts, error 500
« Reply #4 on: 2017-05-09, 15:59:24 »
Well, to can install Open Cart, I need GD and mCrypt in Kloxo-MR. I have seen in another post that the solution is change the next: "Select 'php56m' for 'php used' in 'webserver configure'"

But I don't have that option in webserver configure... Attached the image of that screen

¿Any idea?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP scripts, error 500
« Reply #5 on: 2017-05-09, 16:03:50 »
Inform here 'sh /script/sysinfo; dir -l /etc/yum.repos.d/'.
« Last Edit: 2017-05-09, 16:05:33 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scristi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: PHP scripts, error 500
« Reply #6 on: 2017-05-09, 16:08:47 »
Ok, its the next:

A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017050104
   - Web: --uninstalled--
   - PHP: php56s-5.6.30-2.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: s108495.wholesaleinternet.net
C. Services:
   1. MySQL: --uninstalled--
   2. PHP:
      - Installed:
        - Branch: --uninstalled--
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: --uninstalled--
     - Lighttpd: --uninstalled--
     - Nginx: --uninstalled--
     - Apache: --uninstalled--
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.14-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.3-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          7799       1192       6606          3        109        665
-/+ buffers/cache:        418       7380
Swap:         7935          0       7935
E. Disk Space:
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/vg-root  450G  2.9G  424G   1% /


*** Process Time: 00:00:00:32.32848 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

total 48
-rw-r--r-- 1 root root  1991 Mar 28 07:25 CentOS-Base.repo
-rw-r--r-- 1 root root   647 Mar 28 07:25 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root   289 Mar 28 07:25 CentOS-fasttrack.repo
-rw-r--r-- 1 root root   630 Mar 28 07:25 CentOS-Media.repo
-rw-r--r-- 1 root root  7989 Mar 28 07:25 CentOS-Vault.repo
-rw-r--r-- 1 root root 10046 Mar 10 02:27 mratwork.repo
-rw-r--r-- 1 root root  9221 May  8 13:11 mratwork.repo.rpmsave

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP scripts, error 500
« Reply #7 on: 2017-05-09, 16:14:00 »
It's weird for sysinfo informations. Missing some values (like ' MySQL: --uninstalled--').

Ok, give me an access to your ssh dan Kloxo-MR panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP scripts, error 500
« Reply #8 on: 2017-05-09, 16:37:29 »
Your server problem is '/etc/resolv.conf' content with 'nameserver 127.0.0.1' and it's wrong.

And then I change to 'nameserver 8.8.8.8' and 'nameserver 8.8.4.4'. After that, run 'sh /script/cleanup'.

And then look like normal now.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scristi

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: PHP scripts, error 500
« Reply #9 on: 2017-05-09, 18:04:31 »
Mustafa,

Thanks a lot for your time and help, all is working fine now and doing this would not have been possible without your help.

Have an excelent day,

Sebastian

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.031 seconds with 19 queries.

web stats analysis