Tuesday 10 December 2013

Running Skype And Xampp/Apache Server Together

Usually it is observed that people fail to run both the applications (Xampp and Skype) so while developing people used to close Skype and then start development. So today i thought to share with you how to run bot applications at a time and not any disturbance in development and no need to close Skype.



There are two ways to handle this problem. So today i will share both solutions with you.

First Solution

  • Open Xampp Server First , And start Apache Server or if you are using independent of xampp server then start Apache server using cmd.
  • Then , Start Skype 
  • Now both applications will run together.


---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
Second Solution
  • Open skype.
  • Then , go to Tools ==> Options
  • Then Advanced ==> Connection
  • Uncheck  use port 80 and 443 as alternatives for incoming connections.

  • Save settings and restart Skype.
Now you Can Use Both applications together.

Third Solution

You can goto XAMPP and find httpd.conf. Find the default port and change it to 81 or any other free port.Make sure that apache is not running when you change this port. And Start apache after saving httpd.conf  so that it loads the new modified initialization file. Next time to access your scripts in your browser you must use



Conclusion : 
I prefer to use first solution because its more easier than the second one.

If still any question you are welcomed please comment here , i will answer soon.

Wednesday 4 December 2013

Creating Virtual Directory in the Apache Server

There are multiple ways of doing this task but i am showing the one that i used to prefer


I'm running Apache Server on Windows 7, and could use help configuring my virtual directory or Changing from default Directory To my Defined Directory. 
I want my source files to live outside of the Apache Server htdocs directory


SOLUTION
Here's what i have done for configuration:
I've done it by editing the C:/xampp/apache/conf/httpd.conf file
Changings that I have done in httpd.conf file
Added this script right after
ScriptAlias /cgi-bin/ "C:/xampp/apache)/"


Alias /projectXYZ "C:/pathtomyproject"
<Directory "C:/pathtomyproject">
  Options Indexes FollowSymLinks MultiViews ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all


</Directory>

Pathtomyproject = Complete path of project

And changed the url of Document Root
DocumentRoot " C:/pathtomyproject "

Now restart the Apache Server by stopping the server.
I have stopped Apache server


And then again started the Apache Server. 




Now your http://localhost point to your defined directory.

Tuesday 3 December 2013

Creating Virtual Directory in the IBM HTTP Server

There are multiple ways of doing this task but i am showing the one that i used to prefer


I'm running IBM HTTP Server 7.0 on Windows Server 2008, and could use help configuring my virtual directory or Changing from default Directory To my Defined Directory. 
I want my source files to live outside of the IBM HTTP Server htdocs directory


SOLUTION
Here's what i have done for configuration:
I've done it by editing the C:\Program Files (x86)\IBM\HTTPServer\conf\httpd.conf file
Changings that I have done in httpd.conf file
Added this script right after
ScriptAlias /cgi-bin/ "C:/Program Files (x86)/IBM/HTTPServer/cgi-bin/"


Alias /projectXYZ "C:/pathtomyproject"
<Directory "C:/pathtomyproject">
  Options Indexes FollowSymLinks MultiViews ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all

</Directory>

Pathtomyproject = Complete path of project

And changed the url of Document Root
DocumentRoot " C:/pathtomyproject "

Now restart the IBM HTTP Server by stopping the server.
I have stopped Admin Server And HTTP server
And then again started the Admin server And HTTP Server. 


Now your http://localhost point to your defined directory.