Sunday, June 12, 2011

Step to check Apache port 80 status

Please find the following command to check on the 80 status in Windows 7
netstat -o -n -a | findstr 0.0:80
You should able to see the port 80 being listened by the Apache server.

upon installed the PHP, there are two things that need to be inserted into the httpd.conf


LoadModule php5_module "c:/php/php5apache2_2.dll" under the module section

AddType application/x-httpd-php .php .php5 under the section

Insert the "index.php" into the DirectoryIndex section.

Monday, June 6, 2011

One of the busiest day in my life

yesterday was one of the busiest day in my life. The moment I walked in the office, there are tons of to do list printed on my mind. walking around and getting the status update, discuss and move on. a lot of emails for me to follow up. I pushed myself to cope with the high amount of works and juggle around it.

Some Tips on the Apache server setup, it shown as "Forbidden - permisson denied" upon changing the Root Directory from c:\apache\htdocs to c:\apache. Upon browsing the internet and found out that this can be due to that the setup in the httpd.conf for the DirectoryIndex set to index.php since the PHP/wordpress is using this index file.

you also need to change this part to c:\apache as below

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#


Restart Apache using administrator user id and now, when you type http://localhost
you will see the text of the index.php instead of the page
Next step, is to configure the PHP to be workable with apache.

Sunday, June 5, 2011

Re-install Apache and re-configure it to use the existing wordpress

I had uninstalled the previous Apache when playing with the BigBlueButton on my PC. However, as I try to upgrade and enhance my wordpress, I noticed that I need a test web server for me to trial and error any new wordpress plugin. With this, I decided to re-install the Apache Server and notice that there is another a newer version for Windows 7. I tried several attempt due to that the 80 was used by another Apache Server by default. Login to Administrator with you need its permission to stop the 80 service and restart the Apache server. I also chosen the custom install of the apache so that I can change the default apache director to c:\apache. there is a command which allow you to identify which process is holding up the port but later I also found that I can also check this through the task manager.

Upon several attempts, I managed to install and configure the apache. It shown as "It works!" by http:/localhost. the next step is to make the apache server to start up the wordpress page.