Adding website in ispconfig

Discussion in 'General' started by faizanelahi09, Apr 29, 2014.

  1. faizanelahi09

    faizanelahi09 New Member

    Hi,

    How to add new website in ispconfig ?

    While am adding server field it is not taking...

    Please give some valuable suggestions.

    Thanks in advance..
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    [by default]: Click on new website, enter the domain name, click on save. [when you manually enabled domain limits]: If you enabled the domain limit restriction, then you have to enter the domain name in the client module first and then select it in the website settings.

    The server field is a select field. you have to select one of your existing ispconfig web servers there. If the system is asingle server, then you select the server were you installed ispconfig. If the server is a cluster with more then 1 web server, then you select the server were the website shall be created.
     
  3. faizanelahi09

    faizanelahi09 New Member

    Thanks for the reply.

    Yes, server is a select field , but no name are showing there.
    And also my system is a single server then how to select the server...
    Will you suggest me by elaborating.

    Thanks in advance.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Is a server listed under System > server services?
     
  5. faizanelahi09

    faizanelahi09 New Member

    No....
    Please find the page attached am getting server.jpg
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The server is listed there, but it has no hostname. Seems as if you did not specify one on your server before you installed ispconfig.

    This can only be fixed in the ispconfig database with phpmyadmin.Login to phpmyadmin as root user, go to the dbispconfig database and there to the server table, edit the record that you find there, enter the hostname of your server in the server_name field and save the changed record.
     
  7. faizanelahi09

    faizanelahi09 New Member

    You mean to give my hostname in the server_name field.

    My hostname is centos.test.com.....
    Should i replace server_name with centos.test.com
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, add your hostname in the server_name field.
     
  9. faizanelahi09

    faizanelahi09 New Member

    Dear Till,

    When i replaced server_name field with centos.test.com (my hostname). and i opened ispconfig home page,whatever field i am opening (website,email) it was showing in sql format.

    FYI, please find the attached page. Error.jpg
     
  10. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Uhm.... You changed the COLUMN NAME to your server name... Kidding, right?
    You have to change the content of column "server_name" to your hostname.
     
  11. faizanelahi09

    faizanelahi09 New Member

    How to change the content of column server_name ????
     
  12. lovendo

    lovendo New Member

    I think they are suggesting you to modify this value directly in the mysql database.

    So either go to phpMyAdmin or directly connect to MySQL via 'mysql -uroot -p', and insert a correct value in the dbispconfig database, server table, server_name column.
     
  13. faizanelahi09

    faizanelahi09 New Member

    Please need sql commands to do so...
     
  14. lovendo

    lovendo New Member

    :eek:

    Code:
    mysql -uroot -p
    use dbispconfig
    UPDATE  `dbispconfig`.`server` SET  `server_name` =  'yourdomain.bz' WHERE  `server`.`server_id` =1;
     
  15. faizanelahi09

    faizanelahi09 New Member

    When i entered following sql command in mysql directly...
    It is showing error 1064 you have error in your sql syntax..

    Please suggest me wat to do next???
     
  16. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    This can only work if your column name is "server_name" so you have to rename it back to this first!
     
  17. faizanelahi09

    faizanelahi09 New Member

    Ok...

    but, in ispconfig website i am unable to select server.as it was showing nothing.
     
  18. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Just rename it back and then do what lovendo told you.
     
  19. faizanelahi09

    faizanelahi09 New Member

    Adding Website

    Dear All,

    I strucked in adding new website in ispconfig...as server_name field is blank.
    Please help me to solve this.
    I tried all the things suggested by u people.
    My deadline to submit this to client is too short. Plz help me


    Thanks in advance.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Just do what Croydon and lovendo suggested to you and it will work. so:

    1) Rename the column back that you accidently renamed.
    2) then change the value of the field, not the name of the column, to the hostname of your server.
     

Share This Page