LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LAMP-Server on OpenSuse 12.3 - issues with the doc-root (https://www.linuxquestions.org/questions/linux-newbie-8/lamp-server-on-opensuse-12-3-issues-with-the-doc-root-4175483510/)

sayhello_to_the_world 11-05-2013 05:20 PM

LAMP-Server on OpenSuse 12.3 - issues with the doc-root
 
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

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 #

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>


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


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>

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:

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!?

love to hear from you´


greetings


say ;)

John VV 11-05-2013 07:24 PM

well novell broke apart the httpd.conf into a few files in /etc/apache

how did you configure them ?

How did you install ...
Apache
php
mysql
phpmyadmin
-- and so on

using the yast "install and remove" gui
and install the "web and lamp server" pattern
or zypper in the terminal and install"patterns-openSUSE-lamp_server"

as to setting up and configuring an apache install
it is like the game "GO" 10 min. to learn but a lifetime to master


i would start with reading and rereading the documentation for installing and setting up


Use the novel http install and set up docs
Because suse is NOT the normal rpm os, they are doing things there own way.
The official docs will be only some help .BUT you will need to know them ( inside and out) to figure out just what novell did to the config files

http://doc.opensuse.org/documentatio...a.apache2.html
http://en.opensuse.org/SDB:LAMP_setup
http://en.opensuse.org/SDB:Linux_Apache_MySQL_PHP
-- OLD--
http://en.opensuse.org/SDB:Apache_installation
then

Apache
http://httpd.apache.org/docs/2.4/
php
http://php.net/docs.php

mysql ??
with suse it might be postgres or mariaDB
http://dev.mysql.com/doc/

phpmyadmin
http://www.phpmyadmin.net/home_page/docs.php

-- a VERY GOOD program and almost should be a requirement
AwStats
http://awstats.sourceforge.net/


then use the novel http install and set up docs
because suse is NOT the normal rpm os but they are doing things there own way

http://en.opensuse.org/SDB:LAMP_setup

sayhello_to_the_world 11-05-2013 08:12 PM

hello dear John

many thanks for the answer;

i was installing the lamp while using the yast "install and remove" gui
and install the "web and lamp server" pattern



i try to digg into your docs and linked manuals.

i come back later the week

greetings
say


Quote:

Originally Posted by John VV (Post 5059009)
well novell broke apart the httpd.conf into a few files in /etc/apache

how did you configure them ?

How did you install ...
Apache
php
mysql
phpmyadmin
-- and so on

using the yast "install and remove" gui
and install the "web and lamp server" pattern
or zypper in the terminal and install"patterns-openSUSE-lamp_server"

as to setting up and configuring an apache install
it is like the game "GO" 10 min. to learn but a lifetime to master


i would start with reading and rereading the documentation for installing and setting up


Use the novel http install and set up docs
Because suse is NOT the normal rpm os, they are doing things there own way.
The official docs will be only some help .BUT you will need to know them ( inside and out) to figure out just what novell did to the config files

http://doc.opensuse.org/documentatio...a.apache2.html
http://en.opensuse.org/SDB:LAMP_setup
http://en.opensuse.org/SDB:Linux_Apache_MySQL_PHP
-- OLD--
http://en.opensuse.org/SDB:Apache_installation
then

Apache
http://httpd.apache.org/docs/2.4/
php
http://php.net/docs.php

mysql ??
with suse it might be postgres or mariaDB
http://dev.mysql.com/doc/

phpmyadmin
http://www.phpmyadmin.net/home_page/docs.php

-- a VERY GOOD program and almost should be a requirement
AwStats
http://awstats.sourceforge.net/


then use the novel http install and set up docs
because suse is NOT the normal rpm os but they are doing things there own way

http://en.opensuse.org/SDB:LAMP_setup



All times are GMT -5. The time now is 06:06 PM.