Web based app stopped working after updates

Questions about hosting a Website, using MySQL, PhP or MariaDB may be posted here.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
User avatar
eaz
Skilled
Skilled
Posts: 656
Joined: Sun Mar 04, 2007 9:04 pm

Web based app stopped working after updates

Postby eaz » Fri Oct 06, 2017 6:19 pm

Yesterday, the 14 updates were done, including php, mysql and web server.

My web based applications do not work anymore:
An error occured:
Call to undefined function mysql_connect() in /volume2/web/######/libraries/adodb/drivers/adodb-mysql.inc.php line 363
update: by selecting PHP 7 as default, the error disappears, but the website does not start.


And idrive (2.03.32) Now solved by setting PHP 7 as default
"No input file specified."


Any help is appreciated. I am pretty confused about this unannounced upgrade that comes with no instruction whatsoever.....
Please share if a reply was useful or how the issue was solved, it helps other DS users.

DS415+ (2*4TB HD raid1 + 2*480GB SSD raid1), DS212+ (2*WD red 2TB), previous DS411J, DS106
User avatar
slavikf
Sharp
Sharp
Posts: 179
Joined: Fri Dec 10, 2010 7:37 am
Location: Seattle, WA

Re: Web based app stopped working after updates

Postby slavikf » Fri Oct 06, 2017 7:04 pm

Same issue after apps upgrade on my DS412+:

Code: Select all

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /volume1/web/music/config/config.php:80 Stack trace: #0 /volume1/web/music/index.php(18): require_once() #1 {main} thrown in /volume1/web/music/config/config.php on line 80
owner of DS412+
stromgren
Novice
Novice
Posts: 51
Joined: Sun Jun 08, 2008 1:23 pm
Location: Denmark

Re: Web based app stopped working after updates

Postby stromgren » Sat Oct 07, 2017 12:50 pm

This update (2.1.0-0126) of Web Station is a BETA version with some new functions.

You have to crate at least 1 PHP profile and then apply this/these settings to every virtual host. Took me some time to figure that out.

Btw: Betas does not show up in package-center, unless you have told your package-center to do so.
User avatar
eaz
Skilled
Skilled
Posts: 656
Joined: Sun Mar 04, 2007 9:04 pm

Re: Web based app stopped working after updates

Postby eaz » Sat Oct 07, 2017 1:04 pm

Thanks for the reply, You are right, I accidently left "view beta versions on" and am now unintended on the beta version....
Let us see how to solve this....

My web application is still not functional, even after the setup of the profiles, think there must be a reference to some PHP setting in an ini file.
Please share if a reply was useful or how the issue was solved, it helps other DS users.

DS415+ (2*4TB HD raid1 + 2*480GB SSD raid1), DS212+ (2*WD red 2TB), previous DS411J, DS106
laurentm
I'm New!
I'm New!
Posts: 3
Joined: Sun Sep 20, 2015 7:07 pm

Re: Web based app stopped working after updates

Postby laurentm » Sat Oct 07, 2017 4:37 pm

Baikal (CalDav and CardDav server) was running fine for years on my RS3412XS.

After performing several updates (including Apache and PHP), this web app is no more running. For the admin page, a plain text code page is displayed instead of the PHP interpreted page.

I found the old versions (PHP 5.56-30-052 and Apache 2.2-34-018) and installed them but still no success for running my app.

I do not understand why this does not solve the issue. There is no MariaDb database involved, Baikal has its own light database.

Fortunately, an old spare RS411 was not updated and I could copy the folder "specific" (containing the Baikal database) on it and it is running without trouble.

While Synology NAs are great for sharing files and backups, I'm unhappy with webapps. VM's running on XenServer are a safer option for corporate use.
gglanzer
I'm New!
I'm New!
Posts: 6
Joined: Sun Jul 22, 2012 2:26 pm

Re: Web based app stopped working after updates

Postby gglanzer » Sun Oct 08, 2017 9:13 am

Here the same :-((

For the admin page, a plain text code page is displayed instead of the PHP interpreted page.

How can i UNDO the latest Updates ??

In the /var/log/messages you can read:

2017-10-05T19:17:31+02:00 TERA2 synowebstation: php_profile.cpp:47 missing enable_xdebug field.
2017-10-05T19:17:31+02:00 TERA2 synowebstation: php_profile.cpp:233 invalid profile.
2017-10-05T19:17:31+02:00 TERA2 synowebstation: synowebstation.cpp:137 migration failed.
gom59
Trainee
Trainee
Posts: 12
Joined: Tue Oct 18, 2011 3:55 pm

Re: Web based app stopped working after updates

Postby gom59 » Tue Oct 10, 2017 7:32 am

Same here, Baikal is broken, and the admin page doesn't display properly....
tsvetnoff
I'm New!
I'm New!
Posts: 2
Joined: Sat Jan 14, 2017 11:32 am

Re: Web based app stopped working after updates

Postby tsvetnoff » Tue Oct 10, 2017 10:50 am

It happened with me too! Tree sites doesn't work after last updates!! It's terrible! How to solve the problem?! Or how to cancel updates!
I use:
DS716+II
DSM 6.1.3-15152 Update 6 (after destructive update)
Apache 2.4
PHP 5.6
MariaDB 5

HELP!!! I'm no fire!

UPD: FIXED!!! Check back MYSQL access in extensions of PHP in Web Station. It helped me in my case. :o
https://yadi.sk/i/v_dLMqBh3NdNSi - There are two similar items for some reason, check оnly the second one.
Ole
Beginner
Beginner
Posts: 26
Joined: Wed Feb 06, 2008 11:41 am

Re: Web based app stopped working after updates

Postby Ole » Thu Oct 12, 2017 10:38 am

I contacted Synology support and got this reply:

]Thank you for your reply and the information provided.

This is a currently known issue and will be fixed in the next release of web station.
stromgren
Novice
Novice
Posts: 51
Joined: Sun Jun 08, 2008 1:23 pm
Location: Denmark

Re: Web based app stopped working after updates

Postby stromgren » Thu Oct 12, 2017 11:37 am

Ole wrote:I contacted Synology support and got this reply:

]Thank you for your reply and the information provided.

This is a currently known issue and will be fixed in the next release of web station.

-and this "next release" (2.1.0-128) was released more than 24 hours ago.
It's still a BETA, so you have to allow betas in package-center or install it manually.
http://usdl.synology.com/download/Packa ... .1.0-0128/
User avatar
eaz
Skilled
Skilled
Posts: 656
Joined: Sun Mar 04, 2007 9:04 pm

Re: Web based app stopped working after updates

Postby eaz » Thu Oct 12, 2017 7:58 pm

That is good news, thanks for the update. My web application does work, under PHP 5.6.

Could anyone tell me how to operate this?
- Idrive only works if the default is set to PHP7
- My web application only works if default is set to php5.6

Is it possible to "assign" either of the applications to one of the pHP versions?
eg. \\myds:5000\mywebapp should use pHP 5.6, and idrive should use pHP 7?
Please share if a reply was useful or how the issue was solved, it helps other DS users.

DS415+ (2*4TB HD raid1 + 2*480GB SSD raid1), DS212+ (2*WD red 2TB), previous DS411J, DS106
MrMaestro
I'm New!
I'm New!
Posts: 1
Joined: Thu Oct 12, 2017 8:44 pm

webstation 2.1.0-0128 - php not being rendered

Postby MrMaestro » Thu Oct 12, 2017 9:05 pm

After installing the beta version of webstation, my webpages are no longer being processed by php. Instead, the index-php files are just being served as text. When specifically asking for the index-file, an error 500 is being returned.

It seems this might have got something to do with the settings in web station; at this moment the status of apache (both 2.2 and 2.4) is "--". The same goes for php (5.6 and 7):
Image

On the "general settings"-tab I am not able to select any server or php-version:
Image

According to the package manager, all these packages are installed and working fine:
Image

Of course I have already reinstalled both apaches and even did a reboot of the nas (ds213+).

Any ideas on how to fix this problem?
cgrunge
I'm New!
I'm New!
Posts: 1
Joined: Thu Oct 12, 2017 7:02 am

Re: Web based app stopped working after updates

Postby cgrunge » Fri Oct 13, 2017 7:07 am

Exactly the same problem for me since the last beta :-(

I know ... beta is beta with bugs ...
neooo
Trainee
Trainee
Posts: 10
Joined: Tue Jan 10, 2017 6:04 pm

Re: Web based app stopped working after updates

Postby neooo » Fri Oct 13, 2017 11:25 am

i have the same problems after update. my websites dont work :(
karo2204
Trainee
Trainee
Posts: 12
Joined: Thu Jan 19, 2012 10:07 am

Re: Web based app stopped working after updates

Postby karo2204 » Fri Oct 13, 2017 11:53 am

Same problem here. I updated everything and didn't see that it was a beta. I even deinstalled webstation, unchecked the beta in settings and installed the normal package again.
But it didn't work either. No database connection.

Return to “Web Server + PHP / MySQL + MariaDB”

Who is online

Users browsing this forum: No registered users and 3 guests