Koozali.org: home of the SME Server

Website won't load in primary ibay, blank homepage

Offline smeghead

  • *
  • 557
  • +0/-0
Website won't load in primary ibay, blank homepage
« on: October 07, 2022, 05:59:13 AM »
Howdy all

I've just migrated a friend from a very old v8.2 SME to a 10.1.

Their old server had a very old flash based webite that I've copied in it's entirety to the 10.1 server .. it was fully contained in the html folder.

When I connect to the homepage I just get a blank page; if I reinstate the orig index.html file that loads fine.  This behavior is consistent if using a different ibay other than the primary.

I suspected that the httpd.conf file didn't know to use an index.php file but the templates are there & the httpd.conf file  in the /etc/httpd/conf folder has the following lines:

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.

DirectoryIndex index.htm index.html index.shtml index.cgi

DirectoryIndex index.htm index.html index.shtml index.cgi index.php index.phtml

.. and ..

#------------------------------------------------------------
# Primary ibay directories (Primary i-bay)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/Primary/html>
    Options None
    Options +Indexes
    Options +Includes
    AllowOverride None
    Require all granted
</Directory>

<Directory /home/e-smith/files/ibays/Primary/cgi-bin>
    Options ExecCGI
    AllowOverride None
    Require all granted
</Directory>

<Directory /home/e-smith/files/ibays/Primary/files>
    AllowOverride None
    Require all granted
</Directory>

I did ponder if the multiple directoryindex lines were the issue as if the system find the first one without the php info does it also read the line with the php info.

So, what am I missing, hopefully something simple but if not I'm happy post a bug report.

Cheers
..................

Offline bunkobugsy

  • *
  • 279
  • +4/-0
Re: Website won't load in primary ibay, blank homepage
« Reply #1 on: October 07, 2022, 06:25:14 AM »
What says httpd error log?

Offline smeghead

  • *
  • 557
  • +0/-0
Re: Website won't load in primary ibay, blank homepage
« Reply #2 on: October 07, 2022, 07:45:26 AM »
What says httpd error log?

No errors anywhere in any logs related to this issue.

I've checked messages, plus httpd access & error logs

Also tried explcitly nominating the index.php file in the browser, that doesn't work either.

It seems like execution of dynamic content isn't enabled when I know it is.

Hold the phone, looks like I missed a coupla entries in the error log, tho they're prob phishing attempts the entries shed a bit more light:

[cgi:error] [pid 6056] [client 193.118.53.194:56852] script not found or unable to stat: /home/e-smith/files/ibays/Primary/cgi-bin/config.exp

.. and..

[cgi:error] [pid 29096] [client 178.72.75.12:8869] Options ExecCGI is off in this directory: /home/e-smith/files/ibays/Primary/html/setup.cgi

I always thought CGI scripting was on by default, meh, loading the website into a test ibay & explcitly turning CGI on doesn't allow the index.php to run either.

Sugestions on what to look into welcome.
« Last Edit: October 07, 2022, 07:28:00 PM by smeghead »
..................

Offline brianr

  • *
  • 988
  • +2/-0
Re: Website won't load in primary ibay, blank homepage
« Reply #3 on: October 07, 2022, 03:07:48 PM »
Is your SME10 up to date?

There has been some changes to the http.conf since the original SME10 to accomodate Apache 2.4.

Make sure a `yum update` does not have anything to do, and as a check, do a `signal-event post-upgrade; signal-event reboot` anyway.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline smeghead

  • *
  • 557
  • +0/-0
Re: Website won't load in primary ibay, blank homepage
« Reply #4 on: October 07, 2022, 07:30:23 PM »
Is your SME10 up to date?

There has been some changes to the http.conf since the original SME10 to accomodate Apache 2.4.

Make sure a `yum update` does not have anything to do, and as a check, do a `signal-event post-upgrade; signal-event reboot` anyway.

Fully yum'd to 10.1 as of the 7th Oct
..................

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Website won't load in primary ibay, blank homepage
« Reply #5 on: October 07, 2022, 09:04:03 PM »
your friend SME8 was running on a very old php 5.3.3.
This is not available anymore on SME10. Older available is 5.4.16 and even that might not be able to run some older command.

by default SME runs php74, which is about to get EOL.

you should see php errors in
Code: [Select]
tail -f /var/log/php/Primary/error.log
Ideally, you should update the website to use php80 or higher, and discard Flash which has been EOL on January 12, 2021.
However if you really need a transition, install smeserver-webhosting and set your Primary ibay on php 5.4... this is the closest you can be from having this old script to run....

also if you have httaccess, they won't work with newest httpd 2.4 access rules. The result could either one could see something the httaccess was preventing or the opposite. Please review all of them  in every subdir.

Same thing for any template custom for httpd.