depicus

  just another nerd on the interweb…



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

Posts Tagged ‘PHP’

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 | No Comments »

Using Eclipse for php development on OSX

Saturday, September 4th, 2010



I am starting to hate Visual Studio more and more as it gets slower and slower so it was about time I set up a new dev environment on my Mac so I didn’t need to start a VM to run the only app I now ever use on Windows.

Enter Eclipse which I use for Java development for a payment system on AS400 and a bit of Android stuff but never really for PHP

I downloaded the latest version with PHP support which is now 64bit and was ready to go. But not so fast. Having created a test site in the default location (/Users/Brian/Documents/workspace) I ran the site up in the local window. Bum 404 not found.

Ok this was easy to solve. Go to /etc/apache/httpd.conf and add an alias

View Code TEXT
1
Alias /myBMI /Users/Brian/Documents/workspace/myBMI

and a directory listing

View Code TEXT
1
2
3
4
5
6
<Directory "/Users/Brian/Documents/workspace/myBMI"> 
Options All MultiViews 
AllowOverride None 
Order allow,deny 
Allow from all 
</Directory>

then save and restart Apache sudo /usr/sbin/apachectl restart

Great it finds the page but I now get a permission denied 403. This one took a little longer and it is a bit of a fudge. Now this is a development machine so I don’t really need to worry about security as it will never be on the web. While in httpd.conf look for User and you will see it is set to _www. Now OSX doesn’t make it easy to change permissions and what I really should have done is given _www permissions to my workspace folder but it was quicker to just change the user to me.

View Code TEXT
1
2
User Brian
Group _www

Save and restart Apache and we are go for PHP development. Thanks to Suburbia for the pointers.

Tags: Eclipse, PHP
Posted in Computers, Interweb, Software Development | No Comments »

  • how i pay the bills

  • google rank getter

    Android Apache Aperture Apple App Store bbPress Bike Bug Canon 7D Code Dell DotNet Dropbox Fail Firefox forum Frustration Golf iPad iPhone iPod Touch Java Kenya Linksys Macbook Pro Netgear Objective C Open Source OSX PHP Rejected Safari Server Skype Support Ubuntu Update WakeOnLan Wake On Lan Wifi Windows Windows 7 Phone Wireshark Wordpress XCode
  • depicus in africa

    depicus in africa
  • friends

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

    IMG_2249 IMG_0287 IMG_3432 IMG_2815
  • videos

    Vimeo

    YouTube
  • twitter

    • Holy geekness batman we have an Arduino doing Wake on Lan forwarding programmed in less than 4 hours… amazing - #iamanubergeektoday view
    • Arduino WoLF app coming along nicely view
    • RT @pasm69: On the one hand we are in a #drought says #thameswater, on the other £4.1B to throw rainwater down the #supersewer #itisjust ... view
  • recent comments

    • Sef: Yo, thats 720p @ 60fps. Huge Difference… in file size, processing, everything. DSLRs aren’t there...
    • Finson: Worked..!! Replaced all the InstallOnLHS and InstallOnWinXP with value 0 and the installation completed...
    • Geux: Terminal command didn’t work, but editing the plist manually did the trick. Thanks !!!
    • Nebras Alattar: Hi The code that you posted is very useful, but i faced a problem when i run the app i got the...
    • leon: how can I get the ImageIO.framework ? I’ve read that it doesn’t exist for iphone!!!! Can anyone...
  • archives

    • May 2012 (2)
    • April 2012 (4)
    • February 2012 (8)
    • January 2012 (6)
    • December 2011 (7)
    • November 2011 (1)
    • October 2011 (2)
    • September 2011 (2)
    • August 2011 (4)
    • July 2011 (6)
    • June 2011 (9)
    • May 2011 (8)
    • April 2011 (2)
    • February 2011 (6)
    • January 2011 (14)
    • December 2010 (9)
    • November 2010 (8)
    • October 2010 (14)
    • September 2010 (6)
    • August 2010 (9)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (2)
    • April 2010 (2)
    • March 2010 (11)
    • February 2010 (3)

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

WordPress theme butchered and amended by me.