10 May 2017 @ 12:47 AM 

I have built an Android app which uses php web service to update my data in my shared hosting mysql database. The app was working fine all the while until recently it suddenly show an error “forbidden”. I tried to debug the error and found that the error was showing I do not have permission to execute one of my php scripts. I found this is very strange since other php scripts have no issue. I started looking into the code and search on php post and json. I can’t find any working solution. Before I shoot a support email to my hosting company, I decided to try again the next day. Then I tried to look into the Cpanel and found there is a ModSecurity setting which can apply to all my sub domains. I tried to disabled the setting for the sub domain which stored the php scripts and it has backed to normal.

Posted By: Aeric
Last Edit: 10 May 2017 @ 12:48 AM

EmailPermalinkComments (0)
Tags
 08 Nov 2015 @ 12:09 AM 

laravel5

I decided to give laravel a go. I am not expert in php development but I hope this php framework can help me learn how to build a php website in a rapid way.

First, I was trying to use Vagrant or Homestead in windows as suggested but end up I gave up due to big file download and failed at the end.

Then I found Laragon. It is a very good software for windows. I was able to install it easily in Windows 10 and follow a few chapters in tutorial.

A few days ago, my iPro Livepad volume rocker has problem so I decided to use my old Asus laptop as my development machine. I re-formatted the Ubuntu 9.10 to 14.04 and try to install all the requirements to get laravel 5.1 to work.

Learning laravel 5 is not an easy journey for VB programmer like me who spend most of time with windows platform. I have little knowledge in ubuntu and document structure in linux environment.

I found some challenges in running laravel in linux system. First I need to understand how to use sudo command and deal with file permission. However, typing these commands in terminal is not a problem for me. Then I found not much tutorial on setting up laravel in ubuntu lamp. Instead, I found it is quite strange that there are more tutorials using vagrant, wamp or xamp.

Then I found tutorial that lead me to install ‘laravelnew’ in /var/www/html/laravelnew. I tried to change the web browser URL to http://localhost/laravelnew but this is not working. The correct laravel welcome page is accessible by browsing http://localhost/laravelnew/public. I search through the internet and found many people like me struggle to get it work by changing the .htaccess file, server.php, /etc/apache2/apache2.conf file and setting up virtual host in order to remove the public folder from the path. I searched for whole day but I can’t find a good solution. The basic routing is not working with the steps mentioned.

Then I try to follow steps in this page to reinstall laravel. What I learned in this page is to install laravel in /var/www/laravel instead of /var/www/html/laravel. The URL is now accessible without the public path and basic routing is working.

I hope a beginner like me found this blog and help him getting away from this frustration.

Installing laravel 5: http://blog.luutaa.com/cloud/setting-up-laravel-5-on-digital-ocean-ubuntu-on-apache/

Recommended tutorial: http://www.tutorials.kode-blog.com/laravel-hello-world

Posted By: Aeric
Last Edit: 08 Nov 2015 @ 12:42 AM

EmailPermalinkComments (0)
Tags
 18 Jul 2010 @ 3:22 AM 

Microsoft just announced  a new lightweight web development IDE call WebMatrix. It is a good news for web developer who started to develop website or web application using ASP.Net. It includes IIS Developer Express (a development Web server), ASP.NET (a Web framework), and SQL Server Compact (an embedded database). The feature that most interested me is the ability to start developing from popular open source application such as Joomla, WordPress or Drupal. Microsoft also enable developer to install PHP in Windows and IIS through an easy installer call Web Platform Installer (Web PI). However, it seems MS is trying to promote its own SQL Server instead of using MySQL or other database system. For me, I already decided to switch my OS and development to Linux and using all open source tools. It is left to you to decide.

Source:

Microsoft announces WebMatrix

IIS Express announced

PHP on Windows

Posted By: Aeric
Last Edit: 18 Jul 2010 @ 03:22 AM

EmailPermalinkComments (2)
Tags

 Last 50 Posts
 Back
Change Theme...
  • Users » 2
  • Posts/Pages » 129
  • Comments » 197
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight