[tool] Change default placeholder

Exaweb

Verified User
Joined
Nov 6, 2009
Messages
17
Location
Gram, Denmark
Are you also tired of the standard DA-placeholders? Change it with this bash-script. Quick and safe.

What does it?
The tool will extract some files from a .tar file and copy it to the right directories. You need to make a .tar archive with your own custom index.html, stylesheets and images.

Options
When installing, the script will ask you a few questions. It will ask you if you want to clean the directories from existing placeholders (highly recommended, prevents unused logo-files etc from being copied again and again)
It also asks you if you want to copy the files to another directory. This could for example be the /var/www/html directory. Get rid of that standard "Apache is functioning normally" page!!

Download
Download the script from http://www.exaweb.dk/external/tools/splash-pages.sh

Installation
Code:
wget http://www.exaweb.dk/external/tools/splash-pages.sh
chmod 755 splash-pages.sh
./splash-pages.sh

Make sure you have an .tar archive ready before running this tool. Upload it somewhere. It asks you to provide the http-link when installing. This archive may NOT contain any subdirectory. So don't place stylesheets or images in a subdirectory.

Script was tested on CentOS 5.4 / Debian 4 and should work on any distribution with tar, wget and DirectAdmin installed.

Please report any error you may encounter. Suggestions are also welcome. Thanks.
 
Last edited:
The only reason you would see an apache is functioning page is because you do not have dns pointed to the right ip or have not added the domain to directadmin. Or else you would see the regular directadmin holding page. This is totally not needed. Script looks poorly written and there are miss-spellings as well in it.
 
Last edited:
The only reason you would see an apache is functioning page is because you do not have dns pointed to the right ip or have not added the domain to directadmin. Or else you would see the regular directadmin holding page. This is totally not needed. Script looks poorly written and there are miss-spellings as well in it.

Thank you for your feedback.

Yes, or if you enter the IP-address or hostname.
Our clients sometimes use there own dns and are pointing the domain to our cluster before they add there domain.
Totally not needed to show a "apache is functioning normally" there.

Yes thank you.. This is my first bash script, that was the reason i said that suggestions are welcome. Do you miss the regular expressions?
 
Back
Top