Dec 04

After you’ve installed apach2, php5, mysql, etc, you test it with http://localhost and all you get is this “It Works!” crap.  You can actually create an index.php page that looks like:

<?php
  phpinfo();
?>

and you can actually type in http://localhost/index.php and get your phpinfo page coming out.  But it seems nowhere in the docs can you find out how to get apache2 to recognize index.php as the first page to deliver.

So, I found out where, finally.  In your WAMP environment there’s only the http.conf file, you look for the DirectoryIndex, and move index.php or insert “index.php” to the front of the line.  In this ubuntu 9.10 LAMP setup, where the hell is the file?

/etc/apache2/mods-available/dir.conf

That’s where it is.  open the file, it looks like this after your normal lamp setup in this environment

<ifmodule mod_dir.c>
 DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</ifmodule>

Notice the “index.php” somewhere in the DirectoryIndex list … move that to the front of the list as in

<ifmodule mod_dir.c>
 DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</ifmodule>
  • Facebook
  • Share/Bookmark
Tagged with:
Nov 26

So I've cranked up the linux box for sandbox development of wordpress themes and plugins.  Sounds interesting, doesn't it? Well, for a hard-core java programmer moving back into PHP doesn't immediately seem like a step up, but here we are, eh dear reader?  And this may be where the business is in Bulgaria these days …. WordPress is a perfectly good Content Management System (CMS), and It's likely that skills in this CMS will prove useful in this country at this time. I installed NetBeans, the latest version.  Installed apache2, php, all that good stuff with apt-get and aptitutude.  And finally I went to http://netbeans.org/kb/docs/php/wordpress-screencast.html for a quick tutorial on how to setup a wordpress plugin project. Good stuff, eh?  Let's see where this goes. If you're interested, I can write a post on the setup procedures which got me here.  Just try and get XDebug and all this running on windows, pee-yew.

  • Facebook
  • Share/Bookmark
Tagged with:
preload preload preload