Tag: unix

Installing PHP/mySQL scripts – Tips for Designers

or …
“Just Enough about Unix to get into trouble…”

Determine type of server:
I’ve found that PHP scripts work more reliably on Unix servers than NT. Also, be sure that the server is not running PHP as a cgi script. It really doesn’t work as well. How do you tell?

phpinfo
Upload a little file containing this code:

<? phpinfo(); ?>

Name the file “phpinfo.php” and then view that page online in your web browser. This is a php script that returns all the information about your server environment. In the first table of information, you will find “Server API.” This should be “Apache.” If it says “CGI” you are in trouble. However some things will work fine in this setup, so it’s always worth a try.

Continue reading

OSX and .htaccess files

The other day, I was trying to install some script – and needed to edit an .htaccess file that was supposed to be inside the archive. I couldn’t find it – because it was invisible! I forgot that OSX is Unix based.

Here are some instructions to make those files visible on the local side, and still be able to test your site in local mode. (many thanks to Didier Laget for this tip!)

  • Open your httpd.conf file.
  • Look for the following expression : AccessFileName .htaccess
  • Remove the dot left of htaccess.
  • Save the file.
  • Restart the webserver.

Now you can edit htaccess, it will work, and it will NOT be invisible!

Continue reading