Jump to content
Sign in to follow this  
POWERPLAY27

Apache 2 Installation Need Help

Recommended Posts

Hi guys I'm now trying to install Apache 2 for the first time on my Windows 7 PC, I have installed it, but I got errors The Apache service named reported the following error:>>> Unable to open logs . The Apache service named reported the following error:>>> no listening sockets available, shutting down . The Apache service named reported the following error:>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 I haven't got PHP or Mysql installed yet, but will do that after I get Apache 2 working properly or do I need to have PHP installed as well for it to work? EDIT: Ok I went into the configuration file httpd.conf and edited the file, I changed the listen port from 80 to 8888 and also Listen: 12.34.56.78:8888, also changed the serverName localhost: 8888Reason is because other services use the default 80 port, so I either needed to shutdown any programs or services using port 80 or just simply change the port range. That seems to have got rid of most of the previous error messages, but now I'm getting just one more and not sure how to correct it: Cannot Load C:/Apache2/modules/mod_access.so into server: The specified module could not be found.

Edited by POWERPLAY27

Share this post


Link to post
Share on other sites

It sounds like you're asking it to load a file that isn't there. .so files are normally for Linux though, I'm not sure how Apache for Windows ships but I would imagine you should be loading .dll files, not .so files.

Share this post


Link to post
Share on other sites

Nah, recent ApacheLounge binaries use ".so" files indeed.The first error message appeared because you have another program running on port 80. This could be another Apache installation or it could be Skype. If you have Skype, shut it down, and then start Apache with port 80, or (as you've already done) make Apache use a different port.As for the error about loading the module... How does your httpd.conf file look like? I don't mean the whole... just... how does the line where "mod_access" appears look like?

Share this post


Link to post
Share on other sites

Ok I installed another version of Apache with a different folder: httpd-2.4.4-win32.zip when I extract I have the folder Apache24 (and all the files within) I placed the folder in C:/Apache24 I configured the conf.httpd file to change the ports to be listened to (as mentioned before), I also added the following line to the bottom of the fileLoadModule php5_module "c:/php/php5apache2_4.dll"AddHandler application/x-httpd-php .php# configure the path to php.iniPHPIniDir "C:/php"As instructed. I also installed PHP 5.4.12, moved the folder to c:/php I went into my system environment variables and added this in path: ;c:\php;c:\apache24;c:\apache24\bin; Apache 2.4 now starts and at the bottom I see Apache/2.4.4(Win32)PHP/5.4.12, not sure if that means its working properly now, as when I go into the test configuration I'm now getting the same three errors I was initially getting, also when I try to test it having created a php file with phpinfo(); to display in browser, when I try it #http://localhost/info.php no information about PHP appears in my browser.

Edited by POWERPLAY27

Share this post


Link to post
Share on other sites

Make sure the user Apache is running as has privileges for C:\PHP.To be absolutely sure, you can right click on "C:\PHP", go to the "Security" tab, and add "Everyone" with "Full rights". Then reset Apache.

Share this post


Link to post
Share on other sites

Have you considered installing things like XAMPP? It's much easier to install, and comes with MySQL, phpMyAdmin, Apache, etc...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...