Default Folder

i create a simple index.php inside the default folder. the file contain simple php command and DA token (|DOMAIN|, |DATECREATED|)

DA do not parse |DOMAIN|, |DATECREATED| when index.php move to the user public_html folder
 
dannygoh said:
i create a simple index.php inside the default folder. the file contain simple php command and DA token (|DOMAIN|, |DATECREATED|)

DA do not parse |DOMAIN|, |DATECREATED| when index.php move to the user public_html folder

DA Tokens are for DA related files, such as Skins etc. Not just php files in your public_html!
 
dannygoh,
When is the index.php file being moved to the user's directory to replace the default index.html?
As far as I know, directadmin only parses the index.html file for tokens. If that's the case the only way your going to be able to achieve what you want is writing your own script that will parse for tokens replacing them with the appropriate values and then moving them. The post domain script might do the trick.
 
Here is the reply from the Support

Code:
cd /usr/local/directadmin/scripts/custom
nano domain_create_post.sh   #or whatever you favorite editor is.
 
#!/bin/sh
pubhtml=/home/$username/domains/$domain/public_html
mv $pubhtml/index.html $pubhtml/index.php
exit 0;
 
Insert the above code, save. Once back in ssh, then type:
 
chmod 755 domain_create_post.sh
 
dannygoh said:
Here is the reply from the Support

Code:
cd /usr/local/directadmin/scripts/custom
nano domain_create_post.sh   #or whatever you favorite editor is.
 
#!/bin/sh
pubhtml=/home/$username/domains/$domain/public_html
mv $pubhtml/index.html $pubhtml/index.php
exit 0;
 
Insert the above code, save. Once back in ssh, then type:
 
chmod 755 domain_create_post.sh

Ok that's something way different!
 
Here is the reply from the Support

Code:
cd /usr/local/directadmin/scripts/custom
nano domain_create_post.sh   #or whatever you favorite editor is.
 
#!/bin/sh
pubhtml=/home/$username/domains/$domain/public_html
mv $pubhtml/index.html $pubhtml/index.php
exit 0;
 
Insert the above code, save. Once back in ssh, then type:
 
chmod 755 domain_create_post.sh

Where is index.html and index.php located ???
 
Back
Top