dil_bert Posted May 10, 2019 Share Posted May 10, 2019 hello dear fellows currently struggle with Webadmin: after creating a new vhost i get this error message Failed to create virtual server : A virtual server with the same name and port already exists but believe it or not - in the list of vhosts it does not appear. how to go on - what to do? Any idea !? Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/ Share on other sites More sharing options...
requinix Posted May 10, 2019 Share Posted May 10, 2019 If you already have one with the same name then you probably don't want to make another one, right? Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566579 Share on other sites More sharing options...
dil_bert Posted May 10, 2019 Author Share Posted May 10, 2019 hello dear requinix many thanks for the quick reply. i am really happy to hear from you. Youre right!! Sure thing! but believe it or not - in the list of the allready existing vhosts it does not appear. how to go on - what to do? Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566584 Share on other sites More sharing options...
requinix Posted May 11, 2019 Share Posted May 11, 2019 The list is wrong? You could also try deleting it manually and re-adding it. Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566599 Share on other sites More sharing options...
dil_bert Posted May 11, 2019 Author Share Posted May 11, 2019 hello dear Requinix - many thanks for the hint - i will try it out. will come back and inform you bout the results. have a great day Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566602 Share on other sites More sharing options...
dil_bert Posted May 11, 2019 Author Share Posted May 11, 2019 first of all - i will update the webmin-tool http://www.webmin.com/changes.html will have a closer look if i get rid of this behaviour Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566607 Share on other sites More sharing options...
dil_bert Posted May 12, 2019 Author Share Posted May 12, 2019 first of all - i will update the webmin-tool http://www.webmin.com/changes.html will have a closer look if i get rid of this behaviour found two great documentations - here : https://doxfer.webmin.com/Webmin/Apache_Webserver and this one here https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 the howTo on digitalocean is very clear and concise: see the steps the guys suggest to do in this set up: Prerequisites Step One — Create the Directory Structure Quote The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors. Step Two — Grant Permissions Quote Quote Now we have the directory structure for our files, but they are owned by our root user. If we want our regular user to be able to modify files in our web directories, we can change the ownership by doing this: sudo chown -R $USER:$USER /var/www/example.com/public_html sudo chown -R $USER:$USER /var/www/test.com/public_html The $USER variable will take the value of the user you are currently logged in as when you press Enter. By doing this, our regular user now owns the public_html subdirectories where we will be storing our content. Step Three — Create Demo Pages for Each Virtual Host Quote We have our directory structure in place. Let's create some content to serve. We're just going for a demonstration, so our pages will be very simple. We're just going to make an index.html page for each site. Let's start with example.com. We can open up an index.html file in our editor by typing: nano /var/www/example.com/public_html/index.html In this file, create a simple HTML document that indicates the site it is connected to. My file looks like this: /var/www/example.com/public_html/index.html <html> <head> <title>Welcome to Example.com!</title> </head> <body> <h1>Success! The example.com virtual host is working!</h1> </body> </html> Step Four — Create New Virtual Host Files Step Five — Enable the New Virtual Host Files Quote Now that we have created our virtual host files, we must enable them. Apache includes some tools that allow us to do this. We can use the a2ensite tool to enable each of our sites like this :Step Six — Set Up Local Hosts File (Optional) Step Seven — Test your Results Quote Now that you have your virtual hosts configured, you can test your setup easily by going to the domains that you configured in your web browser: end of the citation of digitalocean - the great howTo : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 well i will follow these steps and will have a closer look at the results... will come back and report all the findings Quote Link to comment https://forums.phpfreaks.com/topic/308689-webadmin-failed-to-create-virtual-server-a-virtual-server-with-the-same-name-and-port-already-exists/#findComment-1566626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.