Line 174: |
Line 174: |
| | | |
| | | |
− | 1) SME Server has issues displaying images inside blogs that use Domain mapping, in order for the images to show correctly, we need to create custom template for "hosts" file:
| + | A) SME Server has issues displaying images inside blogs that use Domain mapping, in order for the images to show correctly, we need to create custom template to enable allow_url_fopen and create custom template for "hosts" file: |
| | | |
− | Create directory: | + | |
| + | A1) Allow PHP URL File Open per ibay: |
| + | |
| + | Make custom httpd directory if not exist |
| + | |
| + | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
| + | |
| + | |
| + | Inside that directory create a file |
| + | 99allow_url_fopen |
| + | |
| + | Edit the file 99allow_url_fopen and input the following content: |
| + | |
| + | <Directory /home/e-smith/files/ibays/IBAYNAME/html> |
| + | php_admin_flag allow_url_fopen on |
| + | </Directory> |
| + | |
| + | Save the file |
| + | |
| + | Expand |
| + | |
| + | expand-template /etc/httpd/conf/httpd.conf |
| + | |
| + | Restart httpd. |
| + | |
| + | /etc/init.d/httpd-e-smith restart |
| + | |
| + | |
| + | A2) Create directory: |
| /etc/e-smith/templates-custom/etc/hosts, | | /etc/e-smith/templates-custom/etc/hosts, |
| | | |
Line 187: |
Line 215: |
| 127.0.0.1 *.domain2.com | | 127.0.0.1 *.domain2.com |
| 127.0.0.1 *.domain3.com | | 127.0.0.1 *.domain3.com |
− |
| |
| | | |
− | Finish with:
| + | |
| + | Save the file |
| + | Expand: |
| expand-template /etc/hosts | | expand-template /etc/hosts |
| | | |
− | And restart httpd:
| + | Restart httpd: |
| | | |
| /etc/init.d/httpd-e-smith restart | | /etc/init.d/httpd-e-smith restart |
Line 199: |
Line 228: |
| | | |
| | | |
− | 2) you will need to install Wordpress Domain Mapping plugin.
| + | B) you will need to install Wordpress Domain Mapping plugin. |
| | | |
| Find it here: [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/] | | Find it here: [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/] |
| | | |
− | Just follow instalation instructions from plugin download site. | + | Just follow installation instructions from plugin download site. |
| | | |
| | | |