sjaakdelul
IS-IT--Management
Hey,
I've installed apache and php.
Apache is working very good, but php not ...
I hope you can help me to configure it to a good way.
I've done the follow steps:
In apache:
ServernameAdmin = themarti_m@hotmail.com
ServerName = 213.93.xxx.xx (my ip-adress)
Added/changed the lines:
DocumentRoot "C:\WebServer\test"
Added/changed the lines:
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/WebServer/Apache Group/Apache2/cgi-bin/"
ScriptAlias /php/ "C:/php-4.2.2-win32/"
Added/changed the lines:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Added/changed the lines:
#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
Action application/x-httpd-php /php/php.exe
That's what I've changed in httpd.conf.
In php.ini, I've changed the follow lines:
-In the PHP installation directory, find the php.ini-dist file and rename it to php.ini.
-Move the php.ini file to C:\WINDOWS\.
-Move the php4ts.dll file to C:\WINDOWS\SYSTEM\32
-register_globals = On
-doc_root = "C:\WebServer\test"
-extension_dir = "C:\WebServer\php-4.2.2-Win32\extensions"
-cgi.force_redirect = 0
What can be wrong?
Why does php don't work?
Thx
I've installed apache and php.
Apache is working very good, but php not ...
I hope you can help me to configure it to a good way.
I've done the follow steps:
In apache:
ServernameAdmin = themarti_m@hotmail.com
ServerName = 213.93.xxx.xx (my ip-adress)
Added/changed the lines:
DocumentRoot "C:\WebServer\test"
Added/changed the lines:
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/WebServer/Apache Group/Apache2/cgi-bin/"
ScriptAlias /php/ "C:/php-4.2.2-win32/"
Added/changed the lines:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Added/changed the lines:
#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
Action application/x-httpd-php /php/php.exe
That's what I've changed in httpd.conf.
In php.ini, I've changed the follow lines:
-In the PHP installation directory, find the php.ini-dist file and rename it to php.ini.
-Move the php.ini file to C:\WINDOWS\.
-Move the php4ts.dll file to C:\WINDOWS\SYSTEM\32
-register_globals = On
-doc_root = "C:\WebServer\test"
-extension_dir = "C:\WebServer\php-4.2.2-Win32\extensions"
-cgi.force_redirect = 0
What can be wrong?
Why does php don't work?
Thx