Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Running Apache under Open Suse

  1. #1

    Default Running Apache under Open Suse

    I have been running an Ubuntu Web Server. A friend convinced me to come over to Open Suse. I have open Suse 11.4 setup. I have installed Apache 2 for use for the Web Server like I had before. I need to get it to start now when I boot the server which I haven't been able to figure out how to get it to do that. Also want to get Proftp going. I tried to download Webmin and could not find it with Software Manager. Any help with this appreciated.

    Mike Hughes

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,079

    Default Re: Running Apache under Open Suse

    On Wed, 09 Nov 2011 19:56:10 +0000, macmikeal wrote:

    > I have been running an Ubuntu Web Server. A friend convinced me to come
    > over to Open Suse. I have open Suse 11.4 setup. I have installed Apache
    > 2 for use for the Web Server like I had before. I need to get it to
    > start now when I boot the server which I haven't been able to figure out
    > how to get it to do that. Also want to get Proftp going. I tried to
    > download Webmin and could not find it with Software Manager. Any help
    > with this appreciated.


    Have a look at YaST - specifically, the runlevel editor will get you
    started on automatically starting services.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,043
    Blog Entries
    14

    Default Re: Running Apache under Open Suse

    To add to Jim's post:

    Install yast-http-server through the software installer. Now (re)start Yast and you will see a new module in Network services to configure the apache server. In Yast - System - Runlevel editor set apache to start at boot. Opening 127.0.0.1 in a browser should show "It works !!".
    If your webserver should be a LAMP server, select the pattern view in the software installer and install the LAMP pattern.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4

    Default Re: Running Apache under Open Suse

    I might wish I hadn't taken it off of Ubuntu before it is configured again. I am trying to run the new Host information. IOt is asking for Server name and Server contents Root. I thought the root might be the directory it is in. Don't know what the server Resolution is either. Any help appreciated. Help need to get this server back up.

    What is Certificate File Path and Key File Path for SSL?

    I keep getting an error Cannot adjust "apache2 service.

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,043
    Blog Entries
    14

    Default Re: Running Apache under Open Suse

    First: please notice that we have no crystal ball, and no access to your system. This means that, to be able to help you, we need as much info as you can give. We'll try to help you to get it back to work. But we need info, and feedback on what you do with the advice given. Any output, please put it in "code tags", makes it much more readable. And......don't panic and use your panic as a masterplan .

    Question 1: what is IOt ?
    Question 2: was the server accessible by entering an IP or by entering a domainname?

    And yep. Always backup.


    Default server root on openSUSE is /srv/www/htdocs, that's where you should move the website files too. Default user and group that run the webserver are 'wwwrun' and 'www'. If you need MySQL, that needs to be setup too using the runlevel editor. Leaving the defaults during setup will render a working apache2 install, showing "It works !!" as mentioned above. Next thing will be to get your files in place so that the server is accessible locally. After that we will make it accessible from the outside.

    All this can be configured from yast2-http-server. If you set it up using this tool instead of manually editting config files, it will, for instance, let you open a port in the firewall as well.

    This is an excellent page by our admin swerdna on setting up a webserver on openSUSE : HowTo: Configure a Linux Apache Web Server on Suse/openSUSE for SSI, Includes, CGI, Common Gateway Interface, AddHandler, ExecCGI, AllowOverride, htaccess, DocumentRoot

    BTW: Yast2 should be run with root permissions.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6

    Default Re: Running Apache under Open Suse

    I am not sure What the term IOt means?
    There server was accessible by entering the domain name of www.mikealrhughes.com. I do want to host a couple of other websites. I understand the backup. I had it backed up under Ubuntu that is why I still have the webpages and don't have to reconstruct. I am not sure what config files from that setup I will be able to use in Open SUSE. I do appreciate any help I can get. Here is my email if you want to write me direct. I could even call you tomorrow if there would be time even. mail(at)mikealrhughes(dot)com. This is all a non-profit organization site.
    As always appreciative of all help. Love learning computers. Only way to learn is dive in. I see CGI is mentioned. I had CGI scripts on an older setup would be good to be able to get that going for some forms down the road even.

    I forgot before. I ran the server for the most part headless. I used bash sell from my iMac to get in. I also used Dreamweaver to upload updates to the pages. I ran Webmin for adding hosting and users. Could find Webmin for Open Suse.

    Thanks again.

    Dr. Mike Hughes, Minister
    Manteno church of Christ

  7. #7

    Default Re: Running Apache under Open Suse

    In my opinion you DID NOT make a backup in the sense the previous poster said. I think he/she meant that you keep your old Ubuntu server running or in a backup form (e.g. full hdd image backup) until you have the new server on openSUSE up/tested and running.

    For the case you do not have 2 servers available at least an image of the old Ubuntu server as backup was needed in case the things go wrong with opensuse.

    Now, getting back to your problem, I would suggest you take it step by step and solve it, but as some other person said, we need the info about your specific configuration of the former server:

    You had more than one websites on it - so you need to setup the main server and than add other virtual hosts (if you have only one IP that these are Name based virtualhosts).

    Were the websites - html onl? I.e. did you need mysql with them for some CMS's blogs?



    1. try and configure your apache webserver for the main website
    2. set-up the other virutual hosts
    2. check other things you used before (e.g. I noticed you were using ssh from your macos machine)
    3... try cgi or what ever you want to test, etc.

    Here is a link that might help you in understanding how to set-up your httpd Apache server: Chapter

    Or try and understand swerdna's setup.

    Regarding webmin usage: I do not think you will be able to use it since the directory structure is quite different so in order to use it specific changes need to be done to the "module configuration" - at least that was the case with SLES 9 but I never got a 100% usable interface. Nevertheless the YAST web server configurator is quite easy to use to implement other websites.

    Cheers and good luck.

  8. #8

    Default Re: Running Apache under Open Suse

    I have my whole Ubuntu Server on an external Drive. If I needed to I could use HDclone and put it on a Hard Drive and put that in the Server and be back up without messing up what I have done on the SUSE so far. I only have one Server. I had to get my spare to my daughter for her Internet use. I will print the Apache server chapter you linked. I do appreciate all the help and will work through it more tomorrow. I did need to know where to put my config files and my webpage files.

    Mike

  9. #9

    Default Re: Running Apache under Open Suse

    Hello again macmikeal.

    So you have a backup - that's great, than you do not need to worry if the transition to OS is not successful though everybody will try and help you.

    IMHO you started to fast, and you should have taken some time to read about the new linux distro first but since you do not have where to test it - if you have a good PC you could try a Virtualbox install.

    The path to the default web server root was given to you by Knurpht in the previous post (I think its also mentioned in the doc pages links you were already given)

    /srv/www/htdocs

    but notice that you can edit this path and/or set other paths from the YAST2 control interface.

    I would also suggest that you use YAST2 for configuring the options rather than modifying manually since otherwise some conflicts can appear.

    Cheers.

  10. #10
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,043
    Blog Entries
    14

    Default Re: Running Apache under Open Suse

    To add: on a headless openSUSE, one can still run Yast, albeit in an ncurses version. BTW. Yast means Yet Another Setup Tool. The yast2-http-server module can be added by
    Code:
    su -c 'zypper in yast2-http-server'
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Page 1 of 3 123 LastLast

Posting Permissions

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