depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Posts Tagged ‘Apache’

Run NoSQL (MongoDB) on OS X 10.8 with PHP support

Friday, June 1st, 2012



Wow it’s quite easy

1. Download Mongo from here

2. Grab the PHP drivers from here

3. Unzip 2. and move to /usr/lib/php/extensions/no-debug-non-zts-20090626/mongo.so

4. Edit php.ini and add extension=mongo.so then restart Apache

5. Start Mongo by extracting the files in 1. then fire up terminal and make a data directory with sudo mkdir -p /data/db for the data then run sudo mongod to run the server.

6. Head over to here for a basic Hello World

7. Download MongoHub for a nice, sexy GUI at http://mongohub.todayclose.com – and it’s even on github https://github.com/bububa/MongoHub-Mac – perfect.

Easy peasy….

Tags: Apache, Github, Mongo, Mongod, MongoHub, PHP
Posted in Computers, Interweb, NoSQL, OS X, Software Development | Comments Off

Adding a website in OSX for debugging or testing

Sunday, December 4th, 2011



1. First edit your host file so you have a quick URL to use in your browser

View Code TERMINAL
1
sudo nano /private/etc/hosts

2. Edit the Apache config file to add a virtual server

View Code TERMINAL
1
sudo nano /etc/apache2/httpd.conf

and add

View Code TERMINAL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Depicus Web Site
<VirtualHost *:80>
ServerAdmin anybody@example.com
DocumentRoot "/Library/WebServer/Depicus/"
DirectoryIndex index.php
<Directory "/Library/WebServer/Depicus/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ServerName Depicus
ErrorLog "/private/var/log/apache2/Depicus-error_log"
CustomLog "/private/var/log/apache2/Depicus-access_log" common
</VirtualHost>

3. Restart Apache and you are good to go.

Tags: Apache, Host
Posted in Apple, Interweb, OS X, Software Development, Wordpress | Comments Off

Stop Apache serving .DS_Store files – or any files

Thursday, May 19th, 2011



If you view or copy files from a Mac to a webserver it will place .DS_Store files in that directory. To fix add in your http.conf or .htaccess file

View Code TEXT
1
2
3
4
5
<Files .DS_Store>
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

Then restart Apache for this to kick in.

Tags: Apache, OSX
Posted in Interweb | Comments Off

Blank page when trying to install Joomla on OSX10.6

Friday, September 10th, 2010



If you get a blank page when you try and install Joomla check to make sure you have safe_mode turned off.

Now safe_mode is set in your php.ini file but also in httpd.conf. The php script below may help you debug a few errors.

View Code PHP
1
2
3
4
5
6
7
<?php
mysql_connect("localhost", "root", "SECRET") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("test") or die(mysql_error());
echo "Connected to Database";
phpinfo(); 
?>

Tags: Apache, Joomla, PHP
Posted in Interweb | Comments Off

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_4643 IMG_3118 IMG_3001 IMG_3439
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.