Browsing articles tagged with " linux"

How to edit php.ini from ssh

Type:

1. “cd /etc”
2. “ls”

Check that there is the php.ini listed if not you will have to ask your hosting provider where it is.

3. “vi php.ini”

Find the bit in php.ini you would like to edit.

4. “i” – This enables you to edit the php.ini file

5. After changing the file, please Esc.

6: “:wq” – (w = saves the file, q = quit)

7. reboot your server and your done.

Getting .htaccess to work on windows apache

Could figure out how to actually write the .htaccess file in windows as when i tried to rename the txt file I created to .htaccess it popped up an error saying “You must type a file name”.

The solution:

1. Open up notepad

2. Write the contents of your .htaccess

3. Save as

4. “.htacess” – Make sure you keep the speech marks.

5. Sorted

Twitter Updates