Results 1 to 6 of 6

Thread: apache runs - but not all services are up... looks very funny

  1. #1

    Default apache runs - but not all services are up... looks very funny

    hello dear Suse-Fans,


    well - i run opensuse 13.2

    i ve set up an apache webserver -

    well - if i type localhost into the browser then i see: it works


    but i want to see also phpmyadmin: the phpmyadmin on apache server - installed but not visible -

    what can i do now. I think that i have to check the running services on the machine!!?

    Which test can be done - with the terminal ?
    Which tests can i run on commandline ?



    love to hear from you



    greetings
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: apache runs - but not all services are up... looks very funny

    If you installed the phpMyAdmin that comes with 13.2, it'll be available via http://localhost/phpMyAdmin

    Notice the capitalization of M and A
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3

    Default Re: apache runs - but not all services are up... looks very funny

    hello dear miuku

    first of all - many thanks for the reply.

    Quote Originally Posted by Miuku View Post
    If you installed the phpMyAdmin that comes with 13.2, it'll be available via http://localhost/phpMyAdmin

    Notice the capitalization of M and A
    tried out to see it with your line ....http://localhost/phpMyAdmin



    but this site is not visible...


    see the information i ve got:

    Code:
    drwxr-xr-x 4 root root 4096  3. Jan 14:24 htdocs
    martin@linux-a9sq:/srv/www> cd htdocs
    martin@linux-a9sq:/srv/www/htdocs> ls -l
    insgesamt 16
    drwxr-xr-x 2 root root 4096 26. Okt 10:23 gif
    -rw-r--r-- 1 root root 2356 25. Sep 18:53 info2html.css
    -rw-r--r-- 1 root root  188  3. Jan 14:24 php_info.php
    drwxr-xr-x 6 root root 4096  3. Jan 11:21 phpMyAdmin
    martin@linux-a9sq:/srv/www/htdocs>
    do we need to have an overview on the services that are running?

    with

    Code:
    ps aux | less

    btw;
    in the file /etc/inetd.conf inetd gets information of the services that are running.


    Code:
    netstat -a
    shows too much

    what i think is important and necessary:

    - to see if Apache service is up and running?
    - to see if subesequently the mysql is up and running? note: this is not mandantory to see phpMyadmin - but i need the mysql server up and running to work with the database.How can i test the both things - apache and mysql via console - i.e. how can i see if they work or not!? Can this be checked with console?
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

  4. #4
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: apache runs - but not all services are up... looks very funny

    To check whether MySQL is running;
    systemctl status mysql

    example output:
    Code:
    zabbix:~ # systemctl status mysql
    mysql.service - MySQL server
       Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled)
       Active: active (running) since Sat 2014-12-06 15:30:11 EET; 1 months 2 days ago
    Says active and running, so it's all fine and dandy.

    To start or stop a service, such as MySQL, if it's not running;
    systemctl start mysql

    To make it start upon rebooting the computer:
    systemctl enable mysql

    To disable startup:
    systemctl disable mysql

    Note that phpMyAdmin, as the name suggests, requires php5 and certain php modules to be installed. Normally you'd install the whole application stack with; zypper in -t pattern lamp_server , this would install Apache, MySQL and PHP5 and configure it all to work together.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  5. #5

    Default Re: apache runs - but not all services are up... looks very funny

    Quote Originally Posted by dilbertone View Post
    tried out to see it with your line ....http://localhost/phpMyAdmin



    but this site is not visible...
    And what does "not visible" mean?
    Do you get an error? Or just a blank page? Or what else?

    What's in /var/log/apache/error_log?

    If your browser wants to save the page as text file, you probably didn't enable PHP.
    In this case, run "sudo a2enmod php5" and restart apache.

    see the information i ve got:

    Code:
    drwxr-xr-x 4 root root 4096  3. Jan 14:24 htdocs
    martin@linux-a9sq:/srv/www> cd htdocs
    martin@linux-a9sq:/srv/www/htdocs> ls -l
    insgesamt 16
    drwxr-xr-x 2 root root 4096 26. Okt 10:23 gif
    -rw-r--r-- 1 root root 2356 25. Sep 18:53 info2html.css
    -rw-r--r-- 1 root root  188  3. Jan 14:24 php_info.php
    drwxr-xr-x 6 root root 4096  3. Jan 11:21 phpMyAdmin
    martin@linux-a9sq:/srv/www/htdocs>
    And what are the permissions of the files inside phpMyAdmin?
    The config file might be the problem as well. (IIRC it's in /etc/phpMyAdmin)

    do we need to have an overview on the services that are running?

    with

    Code:
    ps aux | less
    No. Apache is running, you already verified that. For phpMyAdmin you don't need any additional "services" running.
    Except for mysql of course, but if that is not running, you should get an error message telling you about that.
    But you can check that it is running with "systemctl status mysql".

    btw; in the file /etc/inetd.conf inetd gets information of the services that are running.
    Apache and MySQL are usually not started via (x)inetd, they are running as daemon. And apache is running and working anyway.

    Code:
    netstat -a
    shows too much
    Obviously.
    And it won't help at all, as Apache is running and listening anyway, otherwise you couldn't access http://localhost/.
    And that's all you need.

    what i think is important and necessary:

    - to see if Apache service is up and running?
    It is, if you can reach http://localhost/.

    - to see if subesequently the mysql is up and running? note: this is not mandantory to see phpMyadmin - but i need the mysql server up and running to work with the database.How can i test the both things - apache and mysql via console - i.e. how can i see if they work or not!? Can this be checked with console?
    See above.

  6. #6

    Default Re: apache runs - but not all services are up... looks very funny

    hello dear Miuku and Wolfi

    many thanks for all your hints.

    no it works like a charme - and the database also works correctly.

    again thanks

    this issue and thread is solved


    many greetings
    dilbert ;-)
    Wordpress-development - a Toolset: wpgear.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •