• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

<button aria-describedby="--stacks-s-tooltip-osmujzcd" aria-label="Bookmark" aria-pressed="false" class="js-bookmark-btn s-btn s-btn__unset c-pointer py4 js-gps-track" data-controller="s-tooltip" data-gps-track="post.click({ item: 1, priv: 0, post_type: 1 })" data-s-tooltip-placement="right" data-selected-classes="fc-yellow-600"></button><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" height="18" viewbox="0 0 19 18" width="19"></svg>

 

I have already read the suggestions of the previous posts regarding this problem but they do not solve my case. I have to move the listening port of nginx or apache 2.4 web servers to port 8080 because I can't run a php json file (it work in other web host like altervista).
I also installed nodeJs which does not link with port 80 of web servers (nginx and apache). If I move the nodejs port to 80, I know it's not a nice thing to do. But on my synology nas I have already tried to migrate the web server ports from 80 to 8080 but I can't view the site anymore.
On my Synology nas I have set the reverse proxy to not write the port number on the address:
source: https://hostname.synology.me:443
destination: http://192.168.1.217:80
so when i type https://hostname.synology.me i have my index web page!!!

The following is the map of the configuration files (different from that of the other linux distributions)

on apache2.4:
/usr/local/etc/apache24/conf/ file: httpd24.conf Listen 127.0.0.1:915 (change here port to 8080)

/usr/local/etc/apache24/conf/extra/ file: httpd-vhosts.conf (change here port to 8080)

restart pkgctl-WebStation
status pkgctl-WebStation

On Nginx:

/etc/nginx/ file: nginx.conf and file: nginx.conf.default linten 8080; and listen [::]:8080;

/usr/bin/iptables/ file: iptables
add line:-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT /usr/sbin/iptables/ file: iptables
and insert follow line: -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

vi /etc/sysconfig/iptables
and insert follow line: -A INPUT -m state --state NEW -m tcp -p tcp --dport 81 -j ACCEPT

restart nginx netstat -tlpn| grep nginx (system see me restart: invalid option: -t)

Follow solutions not work:
A)For ngincs if i modify nginx.conf and restart webserver, the system delete my modifinations in nginx.conf (owerwrite file to original status)
B)For apache if i change httpd24.conf and set 8080; and change httpd-vhosts.conf to 8080 port, website in NOT displayed

Thank you for Your help and I invite you to suggest solutions to edit file and folder names that really exist in Synology's linux system,indicating exactly the configurations to be made otherwise we can't solve the problem!
Leo.