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.