Jump to content

Recommended Posts

Ok i got all the files but the server still wont connect with the added line

Loadmodule php4_module C:/php/php4apache2.dll

can anyone tell me why it wont work?

if you are using PHP4 then you need to do this to the loadmodule line:

LoadModule php4_module C:/php/sapi/php4apache2.dll

As the php4apache2.dll file should be located in the sapi folder. Also note Loadmodule should have been LoadModule, you had lowercase M and not uppercase M.

I made it upper case and it still didnt work. The way I installed PHP was froma zip file where you have to place files where they need to be becuase the exe file for some reason wouldnt give me a sapi folder and the php4apache2.dll file. I may of not done it right. I put the php.ini file in the WINDOWS folder and some other file (i think it was a .dll file) in the WINDOWS/SYSTEM folder. and the rest of the files in in the hard drive root folder. Should i do anythign else?

 

 

EDIT: where does the code need to be? i put it here

# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
#
LoadModule php4_module C:/php/sapi/php4apache2.dll

the last line

All you need to do with the zip file is extract all contents to C:\php\ then just copy the php.ini file to C:\WINDOWS\ and that is it! No need ot copy extra .dll's.

 

NOTE: the php.ini file will be called php.ini-recommended when extract the contents form the zip file, rename it to just php.ini

 

Also the exe isn't intended to be used fr installing PHP with Apache, the zip file is much more better.

 

Go here for a good step by step tutotial on installing Apache and PHP. The site includes installation of MySQL and phpMyAdmin too.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.