LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-09-2014, 11:05 PM   #1
cyberdome
Member
 
Registered: Mar 2014
Distribution: Fedora 23 - MariaDB 10.1 -
Posts: 130
Blog Entries: 2

Rep: Reputation: 8
systemctl enable mysqld.service, command not working.


unable to START MySQL server at BOOT "systemctl enable mysqld.service" does not work

I am running FEDORA 20, and just installed MySQL/MariaDB. Okay, so now when I run the command to have Mysqld run at boot automatically. I run the command.

systemctl enable mysqld.service
"failed to issue method call: no such file or directory."



I get a error message saying "failed to issue method call: no such file or directory."

unable to START MySQL server at BOOT "systemctl enable mysqld.service" does not work

I am able to do everything else correcty. Everything else works, except when I run this command. it does not work.

Is this a known issue? Is this a known BUG? Is there a way to fix this?

I am running Fedora 20 MySQL/MariaDB 5.5 version.

Any help is greatly appreciated

Last edited by cyberdome; 03-09-2014 at 11:06 PM.
 
Old 03-09-2014, 11:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
How did you install the Apache server and php and maria on fedora ?
using yum ?
or
did you build and manually install everything ?

If yum then from WHAT repo ?
the fedora or remi

Code:
su -
yum install httpd
or a groupinstall ?
Code:
su -
yum grouplist 
----- and from that list ----
yum groupinstall "Web Server"
did you use the install dvd ?

http://docs.fedoraproject.org/en-US/...TP_Server.html
 
Old 03-09-2014, 11:56 PM   #3
cyberdome
Member
 
Registered: Mar 2014
Distribution: Fedora 23 - MariaDB 10.1 -
Posts: 130

Original Poster
Blog Entries: 2

Rep: Reputation: 8
Quote:
Originally Posted by John VV View Post
How did you install the Apache server and php and maria on fedora ?
using yum ?
or
did you build and manually install everything ?

If yum then from WHAT repo ?
the fedora or remi

Code:
su -
yum install httpd
or a groupinstall ?
Code:
su -
yum grouplist 
----- and from that list ----
yum groupinstall "Web Server"
did you use the install dvd ?

http://docs.fedoraproject.org/en-US/...TP_Server.html

Alright, let's start from the beginning.

1. I downloaded Fedora 20 live CD ISO onto my USB. I used the Live CD USB method to install Fedora 20 on my machine.
http://docs.fedoraproject.org/en-US/...USB_Media.html

2. I used YUM to install LAMP. using the guide below. I did yum install httpd, then yum install mysql, yum install php, yum install phpmyadmin,
https://www.digitalocean.com/communi...-php-on-fedora

Everything else works fine, except when I run this command "systemctl enable mysqld.service" Because I don't want to manually start the mysql service everytime I reboot the Server.

Maybe, It has something to do with installing from the USB media? I did not think that would cause any issues? It could be possible installing from a USB might cause issues?


I was reading online thinking this could be some sort of bug.

Last edited by cyberdome; 03-10-2014 at 12:34 PM.
 
Old 03-10-2014, 01:42 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you did set up "sudo"
it is not set up by default do to it being a HUGE security hole

you as the end user have to open that hole if you decide to .

or use the normal fedora " su " and " su - "
these two commands do two VERY different things .

step 1

now is apache starting ?
as in do you get to the "congratulation Apache server is running "
Default page that is at
http://127.0.0.1
or
http://127.0.0.1:80
or whatever YOU set localhost and localdirectory as in the httpd.conf
something like this
http://www.techotopia.com/images/3/3..._test_page.png


Step 2
then YOU need to make a "phpinfo.php" file and place it in docroot
then run it
you should see the DEFAULT phpinfo page
http://us3.php.net/phpinfo
a page looking like this
http://i.stack.imgur.com/wLha6.png

step 3
Then go on to maria and phpmysql

add the default start up table using the terminal
login to the database using the default
user= user
password = password
reset those

step 4
configure the phpmyadmin config file for the database

Have you read , then REREAD , then reread the rereadding
for the Apache documentation
the php documentation
the maria DB documentation
the phpmyadmin documentation

think of it this way

installing and setting up a RUNNING and WORKING web server is like

a 400 level collage class that is PASS / FAIL
and you 100% MUST !!! get a 4.0 in the class

so treat this as you would for that VERY expensive class

Last edited by John VV; 03-10-2014 at 01:53 AM.
 
Old 03-10-2014, 02:21 AM   #5
cyberdome
Member
 
Registered: Mar 2014
Distribution: Fedora 23 - MariaDB 10.1 -
Posts: 130

Original Poster
Blog Entries: 2

Rep: Reputation: 8
I also used this guide to install.

http://amidstsky.com/apps/install-ap...0-lamp-server/


Quote:
step 1

now is apache starting ?
as in do you get to the "congratulation Apache server is running "
Default page that is at
http://127.0.0.1
or
http://127.0.0.1:80
or whatever YOU set localhost and localdirectory as in the httpd.conf
something like this
http://www.techotopia.com/images/3/3..._test_page.png
Yes, Apache is working perfectly fine. I can hit my website from outside world. I am able to access my site from WAN IP.

Quote:
Step 2
then YOU need to make a "phpinfo.php" file and place it in docroot
then run it
you should see the DEFAULT phpinfo page
http://us3.php.net/phpinfo
a page looking like this
http://i.stack.imgur.com/wLha6.png

PHP is working fine. No issues. I have configured php to my needs.

Quote:
step 3
Then go on to maria and phpmysql

add the default start up table using the terminal
login to the database using the default
user= user
password = password
reset those
I am not sure what you are talking about in this STEP 3. I have configured everything. The only problem is "systemctl enable mysqld.service" command is not working.


Quote:
step 4
configure the phpmyadmin config file for the database

Have you read , then REREAD , then reread the rereadding
for the Apache documentation
the php documentation
the maria DB documentation
the phpmyadmin documentation
I am working on this right now. I am reading the MariaDB documentation as we speak. because I just learned that Fedora has stopped using MYSQL and moved to MariaDB. So, this is confusing and new to me.

I still don't understand why the command is not working? Is there something wrong with my setup?
 
Old 03-10-2014, 12:36 PM   #6
cyberdome
Member
 
Registered: Mar 2014
Distribution: Fedora 23 - MariaDB 10.1 -
Posts: 130

Original Poster
Blog Entries: 2

Rep: Reputation: 8
found the answer, There was a issue with the command structure.

"systemctl enable mariadb.service" is the one should be used to start MySQL at boot.

thanks for the help. I really appreciate the quick response.

Last edited by cyberdome; 03-10-2014 at 12:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to START MySQL server at BOOT "systemctl enable mysqld.service" does not work cyberdome Linux - Newbie 2 03-11-2014 02:35 AM
[SOLVED] mysqld: unrecognized service OtagoHarbour Linux - Software 3 02-19-2014 05:04 PM
systemctl failed to get Dbus connection: No connection to service manager k84834 Linux - Software 2 07-14-2013 08:20 AM
systemctl start php-fpm.service question satimis Linux - Server 2 11-26-2012 07:25 AM
[SOLVED] strange MYSQLD service!!! ashok.g Red Hat 3 01-30-2010 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration