hello dear linux-experts, good evening! I am having trouble with a web application;

hello dear linux-experts, good evening!

I am having trouble with a web application;
Which is the localhost directory
and yes; I can’t access localhost/phpmyadmin/

this is all the stuff: i have done a webserver-configuration according this tutorial

Opensuse | mnTechBlog

the configuration was done with the http-wizzard - see the data i have set…


#  netstat -lntp
linux-70ce:/srv # netstat -lntp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:4242          0.0.0.0:*               LISTEN      2517/firefox        
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      2196/cupsd          
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1285/master         
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1035/mysqld         
tcp        0      0 :::80                   :::*                    LISTEN      4556/httpd2-prefork 
tcp        0      0 :::631                  :::*                    LISTEN      1/init              
tcp        0      0 ::1:25                  :::*                    LISTEN      1285/master         
tcp        0      0 :::443                  :::*                    LISTEN      4556/httpd2-prefork 
linux-70ce:/srv # 

btw. if i type localhost - i get back -"it works"

the structure is like this:


martin@linux-70ce:/srv> ls -ld 
drwxr-xr-x 5 root root 4096  6. Mär 2013  .
martin@linux-70ce:/srv> 

see what i have:


./www/perl-lib:
martin@linux-70ce:/srv> find /srv -type d
/srv
/srv/www
/srv/www/htdig
/srv/www/htdig/images
/srv/www/htdig/common
/srv/www/htdocs
/srv/www/htdocs/gif
/srv/www/cgi-bin
/srv/www/perl-lib
/srv/tftpboot

or that:


ls -d /srv/*/
martin@linux-70ce:/srv> ls -d /srv/*/

/srv/ftp/  
/srv/tftpboot/  
/srv/www/

martin@linux-70ce:/srv> ^C
martin@linux-70ce:/srv> 


btw: as mentioned above - I can’t access localhost/phpmyadmin/

a friend of me told me the following:

what you need to do is to add phpmyadmin to the apache configuration:

sudo [my-password] /etc/apache2/apache2.conf 

Add the phpmyadmin config to the file:


Include /etc/phpmyadmin/apache.conf

then restart apache:


sudo service apache2 restart 

what should i do - what is your advice!?

love to hear from you´

greetings

dilbert;)

On 11/05/2013 04:26 PM, dilbertone wrote:
>
> hello dear linux-experts, good evening!
>
> I am having trouble with a web application;
> Which is the localhost directory
> and yes; I can’t access localhost/phpmyadmin/
>
> this is all the stuff: i have done a webserver-configuration according
> this tutorial
>
> ‘Opensuse | mnTechBlog’
> (http://mntechblog.de/category/linux/opensuse-linux/)
>
> the configuration was done with the http-wizzard - see the data i have
> set…
>
>
> Code:
> --------------------
>
> # netstat -lntp
> linux-70ce:/srv # netstat -lntp
> Aktive Internetverbindungen (Nur Server)
> Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
> tcp 0 0 127.0.0.1:4242 0.0.0.0:* LISTEN 2517/firefox
> tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2196/cupsd
> tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1285/master
> tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1035/mysqld
> tcp 0 0 :::80 :::* LISTEN 4556/httpd2-prefork
> tcp 0 0 :::631 :::* LISTEN 1/init
> tcp 0 0 ::1:25 :::* LISTEN 1285/master
> tcp 0 0 :::443 :::* LISTEN 4556/httpd2-prefork
> linux-70ce:/srv #
>
> --------------------

K, the web service is working, but we know that based on your test in the
browser.

> btw. if i type localhost - i get back -“it works”
>
> the structure is like this:
>
>
> Code:
> --------------------
>
> martin@linux-70ce:/srv> ls -ld
> drwxr-xr-x 5 root root 4096 6. Mär 2013 .
> martin@linux-70ce:/srv>
> --------------------

This is not structure. That command is not the one you want to use.

> see what i have:
>
>
> Code:
> --------------------
>
> ./www/perl-lib:
> martin@linux-70ce:/srv> find /srv -type d
> /srv
> /srv/www
> /srv/www/htdig
> /srv/www/htdig/images
> /srv/www/htdig/common
> /srv/www/htdocs
> /srv/www/htdocs/gif
> /srv/www/cgi-bin
> /srv/www/perl-lib
> /srv/tftpboot
>
> --------------------

This is more like it.

> OR THAT:
>
> Code:
> --------------------
>
> ls -d /srv//
> martin@linux-70ce:/srv> ls -d /srv/
/
>
> /srv/ftp/
> /srv/tftpboot/
> /srv/www/
>
> martin@linux-70ce:/srv> ^C
> martin@linux-70ce:/srv>
> --------------------

Your previous command was better.

> btw: as mentioned above - I can’t access localhost/phpmyadmin/

What happens when you try? I assume you get a 404 since you do not have a
‘phpmyadmin’ directory under /srv/www/htdocs from what you posted earlier.

> a friend of me told me the following:
>
> what you need to do is to add phpmyadmin to the apache configuration:
>
>
> Code:
> --------------------
> sudo [my-password] /etc/apache2/apache2.conf
> --------------------
>
>
> Add the phpmyadmin config to the file:
>
> Code:
> --------------------
>
> Include /etc/phpmyadmin/apache.conf
>
> --------------------
>
>
> then restart apache:
>
>
> Code:
> --------------------
>
> sudo service apache2 restart
> --------------------
>
>
>
> what should i do - what is your advice!?

Did you install phpMyAdmin somehow? Where is its directory structure?
What do you see in your /var/log/apache2/ looking specifically at the
access_log and error_log files? Is there any reason to think that your
Apache httpd configuration sees your phpMyAdmin installation, assuming
you’ve installed it at all?


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…