How to run PHP with Apache in El Capitan

I’m assuming you like to install PHP 5.6 with MySQL and want something more than MAMP. Good news is that Mac OS X El Capitan comes with Apache so you simply have to configure it.

To begin, you will need Homebrew, if you don’t already have that, install it here.

Installing MySQL and PHP 5.6

After which, install the following packages:

Updating Apache httpd configuration

Next you will need to edit your Apache configuration. Open /private/etc/apache2/httpd.conf for that.

Search for rewrite_module and php5_module.

You have to uncomment them and change them to the following:

Notice that php5_module is referencing the Homebrew version.

Starting the servers

Start MySQL this way:

Start Apache this way (you will need sudo):

Using VirtualHost

If you’re using VirtualHost, you will need to uncomment the following line in /private/etc/apache2/httpd.conf. Search and uncomment this:

Next is to take a look at your VirtualHost file here /private/etc/apache2/extra/httpd-vhosts.conf.

To do that, you will have to do:

This is a sample of my VirtualHost:

Things to note in the above is the directory permissions. It may be different in your use case so be sure to set them properly. My project is using CakePHP is has the DocumentRoot in /Users/kahwee/projects/mcs-portal/web/

Driveless taxi, soon in Japan

Japan’s cabinet office, Kanagawa prefecture and Robot Taxi Inc. on Thursday said they will start experimenting with unmanned taxi service beginning in 2016. The service will be offered for approximately 50 people in Kanagawa prefecture, just south of Tokyo, with the auto-driving car carrying them from their homes to local grocery stores.

According to the project organizers, the cabs will drive a distance of about three kilometers (two miles), and part of the course will be on major avenues in the city. Crew members will be aboard the car during the experiment in case there is a need to avoid accidents.

Source: RoboCab: Driverless Taxi Experiment to Start in Japan – Japan Real Time – WSJ

Malaysian Prime Minister admits US$700 million in his account

This is an embarrassment for Malaysia:

“Then I asked why was it transferred to your accounts?… Why did it enter Najib Razak’s accounts? How much money? US$700 million.

“If you multiply that by three point something…2.6 billion goes into his personal account. He said this, he admitted,” Muhyiddin said in the leaked video.

The video ends abruptly after Muhyiddin says, “so I said why did you put into your personal account”.

Source: In leaked video, Muhyiddin says Najib admitted RM2.6 billion in his accounts – The Malaysian Insider

AP uploads historical videos on YouTube

This is totally welcomed:

The Associated Press and British Movietone, one of the world’s most comprehensive newsreel archives, are together bringing more than 1 million minutes of digitized film footage to YouTube. Showcasing the moments, people and events that shape the world, it will be the largest upload of historical news content on the video-sharing platform to date.

The two channels will act as a view-on-demand visual encyclopedia, offering a unique perspective on the most significant moments of modern history. Available for all to explore, the channels will also be powerful educational tools and a source of inspiration for history enthusiasts and documentary filmmakers.

The YouTube channels will include more than 550,000 video stories dating from 1895 to the present day. For example, viewers can see video from the San Francisco earthquake in 1906, exclusive footage of the bombing of Pearl Harbor in 1941, Marilyn Monroe captured on film in London in the 1950s and Twiggy modeling the fashions of the 1960s.

Source: AP makes one million minutes of historical footage available on YouTube

We look into books and pictures to tell stories of the 20th century when you have many videos which quality is just insulting sometimes.

Singapore must plan for 10M population: Ex-HDB chief

More people? Yes, says ex-HDB chief. I can’t imagine how we can have more people in Singapore but if it is coming we definitely need to plan ahead.

Singapore must start planning for a population that could possibly hit 10 million, Liu Thai Ker, the man often credited as the architect of modern Singapore, told CNBC.

“One fundamental thing about urban planning is, don’t try to stop or control or curb population growth,” Liu, who is now chairman at the Centre for Liveable Cities and senior director at RSP Architects Planners and Engineering, said.

“We should allow Singapore to grow and plan for a much bigger population… like 10 million people. We should ask ourselves: How long do we want Singapore to remain as a sovereign country? Even at 10 million people and assuming a population growth rate of 1 percent, we will only last slightly over 100 years and that’s not a long time,” he added.

Source: Singapore must plan for 10M population: Ex-HDB chief

New Horizons survives Pluto encounter

This is really exciting:

Data in its first call home since Tuesday’s flyby suggest the spacecraft experienced no upsets as it hurtled past the icy world at 14km/s,The signal came through a giant dish in Madrid, Spain – part of a Nasa network of communications antennas.The message took four hours and 25 minutes to traverse 4.7 billion km of space.

Source: New Horizons: Spacecraft survives Pluto encounter – BBC News

Flash blocked by Firefox

In an interesting turn of events, Firefox has blocked Flash until Adobe plug the securities vulnerabilities. This means most advertisements wouldn’t be able to run in Firefox.

The mob is turning against Flash. Mozilla has blocked every version of Adobe’s Flash plugin from running within its Firefox browser, while Facebook’s head of security has called for Adobe to kill it off.The moves come following a series of vulnerabilities in Flash being actively exploited, including those exposed by the Hacking Team compromise.Firefox users seeking to view Flash-based content, such as videos, adverts or more complex web tools for uploading images and other actions, will need to click again and accept a warning that “Flash is known to be vulnerable. Use with caution”.That means users of Firefox cannot use Flash by default and will not be able to until Adobe patches the security bugs and updates the plugin. Adobe has struggled to keep up with the number of bugs and vulnerabilities being exposed within Flash.

Source: Facebook calls for end to Flash as Firefox blocks it over hacking holes | Technology | The Guardian