How to make old code to 2.4 compatible?
Posted: 09. February 2013 08:52
Hi,
I am trying to teach myself php and MySQL. I am following a book that suggests using XAMPP but the version of XAMPP they use is 1.64 and things have moved on.
My instructions are
"The default place used by Apache (in XAMPP setup) to serve client requests from is C:\xampp\htdocs.
This location is defined by the DocumentRoot directive in the Apache configuration file, which is located in
C:\xampp\apache\conf\httpd.conf.
Because we want to use our folder instead of the default folder mentioned by DocumentRoot, we need to
create an alias named tshirtshop that points to the tshirtshop physical folder you created in Step 1.
Open the Apache configuration file (httpd.conf), find the aliases section (which is defined by the
<IfModule alias_module> configuration tag), and add the following lines:
<IfModule alias_module>
# ...
# Configure the tshirtshop alias
Alias /tshirtshop/ "C:/tshirtshop/"
Alias /tshirtshop "C:/tshirtshop"
</IfModule>
<Directory "C:/tshirtshop">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
After adding these lines and restarting the Apache web server, a request for http://localhost/tshirtshop
or http://localhost/tshirtshop/ will load the application in the tshirtshop folder (once it exists)."
When I do this I get "access forbidden" error message in my browser (Firefox). Having researched a little it seems that the highlighted code has now changed under Apache 2.4. Can anyone have a look at the above and suggest what I need to do to get it working.
Thanks in anticipation
I am trying to teach myself php and MySQL. I am following a book that suggests using XAMPP but the version of XAMPP they use is 1.64 and things have moved on.
My instructions are
"The default place used by Apache (in XAMPP setup) to serve client requests from is C:\xampp\htdocs.
This location is defined by the DocumentRoot directive in the Apache configuration file, which is located in
C:\xampp\apache\conf\httpd.conf.
Because we want to use our folder instead of the default folder mentioned by DocumentRoot, we need to
create an alias named tshirtshop that points to the tshirtshop physical folder you created in Step 1.
Open the Apache configuration file (httpd.conf), find the aliases section (which is defined by the
<IfModule alias_module> configuration tag), and add the following lines:
<IfModule alias_module>
# ...
# Configure the tshirtshop alias
Alias /tshirtshop/ "C:/tshirtshop/"
Alias /tshirtshop "C:/tshirtshop"
</IfModule>
<Directory "C:/tshirtshop">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
After adding these lines and restarting the Apache web server, a request for http://localhost/tshirtshop
or http://localhost/tshirtshop/ will load the application in the tshirtshop folder (once it exists)."
When I do this I get "access forbidden" error message in my browser (Firefox). Having researched a little it seems that the highlighted code has now changed under Apache 2.4. Can anyone have a look at the above and suggest what I need to do to get it working.
Thanks in anticipation