Set up an Affiliate Account or Set up a Small Business account.
Posted on November 12, 2017 byunder
I had to spend a bit of time figuring out how to change the logo in ispconfig. Thanks to the folks at howtoforge for the ISP Config 3.1 custom logo post.
- Create your new ispconfig logo using your favorite editor. The image should be 200×65 pixels.
- You need to convert this image into base64 encoded data. I do this on a Linux server with the base64 utility, so I ftp the new image to the system and run base64 -w 0 < /path/to/image which will output the base64 data. The -w 0 option is important as the default for base64 is a fixed width string, but for some reason here we need the data in binary format. If you don’t have access to a Linux system, do a quick google search on base64 converter and you will find freely available options.
- Now the tricky part, and you can do this several ways.
- Copy the base64 data to an editor
- prepend the string “data:image/png;base64,” without the quotes but including the comma. (remember prepend means at the beginning of the data.)
- Copy all data in the editor.
- Logon to your sql database as root. You should be able to do this using the phpMyAdmin for your ispconfig server.
- Select the ispconfig database, dbispconfig. This will display a list of tables in the window, locate the sys_ini table. (Note: This one got me at first…if you only look on the left had window be expanding the dbispconfig table, you will likely not find the sys_ini table.
- Once you select the sys_ini table, edit the only entry in the list.This record has a column called custom_logo. This is the field we will use to store our image data we copied in step 3 above.
- Place the data from step 3 above by right clicking in the custom_logo data field and select paste.
- Save the record by selecting the Go button.