A
Anonymous
Guest
Hi,
I was wondering if someone could lend me a hand on the issue im having. We currently have an internal web for our users. The website was created by another person using PHP and that person we cannot reach them. The website was hosted using XAMPP on a windows server using ODBC to connect to a windows sql server for that database.
Currently I migrated the htdocs to a ubuntu Server 14.04 running NGINX with php5. I also installed FreeTDS and successfully connected to the sql server using ODBC. When i go to website the front page work, but when i put in the username and password i get a HTTP 500 error . After checking the error log on NGINX
after looking at a while the index2.php file is this
https://pastebin.com/ABmWvsc2
and after looking at it i saw a "require_once" which leads to the barras.php
https://pastebin.com/PKfcaxe9
Now the question is how come its giving a syntax error if the website was working before on XAMPP am i missing a php package?
These are the packages of php i installed
Thank you
https://imgur.com/a/5CJQn----Working connect to ms sql
I was wondering if someone could lend me a hand on the issue im having. We currently have an internal web for our users. The website was created by another person using PHP and that person we cannot reach them. The website was hosted using XAMPP on a windows server using ODBC to connect to a windows sql server for that database.
Currently I migrated the htdocs to a ubuntu Server 14.04 running NGINX with php5. I also installed FreeTDS and successfully connected to the sql server using ODBC. When i go to website the front page work, but when i put in the username and password i get a HTTP 500 error . After checking the error log on NGINX
Code:
2017/11/14 17:50:09 [error] 7482#0: *42 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '}' in /var/www/html/xampp/htdocs/index2.php on line 47" while reading response header from upstream, client: 192.168.40.38, server: 192.168.1.3, request: "POST /index2.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.1.3", referrer: "http://192.168.1.3/"
after looking at a while the index2.php file is this
https://pastebin.com/ABmWvsc2
and after looking at it i saw a "require_once" which leads to the barras.php
https://pastebin.com/PKfcaxe9
Now the question is how come its giving a syntax error if the website was working before on XAMPP am i missing a php package?
These are the packages of php i installed
Code:
apt-get install php5 php5-mysql php5-mcrypt php5-gd php5-fpm
Code:
apt-get install php5-odbc
Thank you
https://imgur.com/a/5CJQn----Working connect to ms sql