dannygoh said:Hello,
Can i create index.php into default 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
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
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 ???