Stuck - Installing MySQL database

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
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

Stuck - Installing MySQL database

Postby sf631 » Wed Aug 08, 2012 11:58 pm

I am trying to create a MySQL database on my DS212+ and am stuck at a pretty early point.

I have installed the appropriate packages (phpMyAdmin) and have activated Web Station and MySQL from within the Web Services icon. The phpMyAdmin icon shows up in my program icon drop down so I know that service is running, and when I go to System Information I can see that Web Services and phpMyAdmin are all enabled. When I click to open either Web Services or phpMyAdmin it launches a browser tab for 192.168.1.136/phpmyadmin/ but just hangs. same for Web Services which also doesn't access any sort of menu, just goes blank.

I've rebooted several times following the config change and no luck. I've also upgraded from 3.2 to 4.0 and the problem is unchanged.

My config is ethernet connected via 5 port switch between the NAS and the workstation so I don't think there should be any port forwarding to be done.

Any ideas? I'm stuck before even getting to the good stuff
sf631
I'm New!
I'm New!
 
Posts: 6
Joined: Fri Jun 15, 2012 7:46 am

Re: Stuck - Installing MySQL database

Postby HarryPotter » Thu Aug 09, 2012 5:07 pm

There is no menu for Web Station. You have to create a valid index.htm or index.php file into the web share. If this file is missing, you should be redirected to the DSM management login page.

Anyway, that doesnt solve the phpmyadmin problem.

It seems that the user apache is not running. You ould try to start it manualy on the command line (telnet/SSH) with the following command:

Code: Select all
/usr/syno/etc/rc.d/S97apache-user.sh start
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12330
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Stuck - Installing MySQL database

Postby sf631 » Fri Aug 17, 2012 11:15 pm

Thanks for the suggestion. I've tried this (admittedly, I'm not familiar with telnet access to the device, so just following instructions) and get the following error msg:

Code: Select all
DiskStation login: XXXXX
Password:
login: can't chdir to home directory '/var/services/homes/admin'

...

BusyBox v1.16.1 (2012-06-06 04:34:01 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

DiskStation> /usr/syno/etc/rc.d/S97apache-user.sh start
mv: can't create '/usr/syno/etc/php.ini.31741': Permission denied
rm: can't remove '/var/spool/php': Permission denied
chmod: /var/spool/php: Operation not permitted
chmod: /var/spool/php/apc: Operation not permitted
chown: /var/services/blog/: Operation not permitted
chown: /var/services/blog/: Operation not permitted
chmod: /var/services/blog/: Operation not permitted
cp: can't create '/usr/syno/apache/conf/httpd.conf': Permission denied
/usr/syno/etc/rc.d/S97apache-user.sh: line 240: can't create /usr/syno/apache/co
nf/httpd.conf: Permission denied
/usr/syno/etc/rc.d/S97apache-user.sh: line 240: can't create /usr/syno/apache/co
nf/httpd.conf: Permission denied
/usr/syno/etc/rc.d/S97apache-user.sh: line 240: can't create /usr/syno/apache/co
nf/extra/httpd-ssl.conf.31741: Permission denied
/usr/syno/etc/rc.d/S97apache-user.sh: line 240: can't create /usr/syno/apache/co
nf/extra/httpd-ssl.conf.31741: Permission denied
/usr/syno/etc/rc.d/S97apache-user.sh: line 240: can't create /usr/syno/apache/co
nf/httpd.conf: Permission denied
Start User Apache Server .....
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
/usr/syno/etc/rc.d/S97apache-user.sh: user httpd could not be started
DiskStation>


Is the user Apache something that needs to be configured? If so, that does not exist in my users directory. I assume it's something included by default?

Thanks for any other ideas or suggestions - I'd REALLY like to move the MySQL database to NAS and away from my workstation
sf631
I'm New!
I'm New!
 
Posts: 6
Joined: Fri Jun 15, 2012 7:46 am

Re: Stuck - Installing MySQL database

Postby HarryPotter » Sat Aug 18, 2012 8:43 am

You have to login as "root" (with same password as "admin") to get permissions to run the script.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12330
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Stuck - Installing MySQL database

Postby sf631 » Sat Aug 18, 2012 6:37 pm

Got it. I think my problem may have actually been that the firewall ports for 80, 8000, and 443 were not open, not sure why. I opened those and have gotten to the authentication screen that says

The server says 192.168.1.136:80 requires a username and password. The server says: phpMyAdmin localhost.


All combinations I can think of (Admin, Guest, root) fail. I've verified the password in Users control panel, no luck. Any suggestions on what credentials *should* work at this authentication step? Thanks for your continued help
sf631
I'm New!
I'm New!
 
Posts: 6
Joined: Fri Jun 15, 2012 7:46 am

Re: Stuck - Installing MySQL database

Postby sf631 » Sat Aug 18, 2012 6:46 pm

Also (and I don't know if this is related) in the "Application Privileges" control, I only have choice of FTP, File Station, Network Backup, and WebDAV as applications to which I can assign privileges. Should phpMyAdmin be there?
sf631
I'm New!
I'm New!
 
Posts: 6
Joined: Fri Jun 15, 2012 7:46 am

Re: Stuck - Installing MySQL database

Postby HarryPotter » Sat Aug 18, 2012 7:21 pm

sf631 wrote:Also (and I don't know if this is related) in the "Application Privileges" control, I only have choice of FTP, File Station, Network Backup, and WebDAV as applications to which I can assign privileges. Should phpMyAdmin be there?

No.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12330
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Stuck - Installing MySQL database

Postby HarryPotter » Sat Aug 18, 2012 7:24 pm

sf631 wrote:All combinations I can think of (Admin, Guest, root) fail. I've verified the password in Users control panel, no luck. Any suggestions on what credentials *should* work at this authentication step? Thanks for your continued help

Synology FAQ: How do I reset the password of MySQL database?
The user is "root"
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12330
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Stuck - Installing MySQL database

Postby sf631 » Sun Aug 19, 2012 5:27 pm

Wow, root + blank was one combo I didn't try - worked like a treat.

Many thanks HarryPotter, that was a great help!
sf631
I'm New!
I'm New!
 
Posts: 6
Joined: Fri Jun 15, 2012 7:46 am


Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 1 guest