| Author |
Message |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 127
|
Posted:
Sun Feb 21, 2010 11:04 am |
|
My webhost will change to PHP 5.3 in 3 weeks. I have tested my site on a local server with PHP 5.3 (Linux Mandriva 2010) and everything seems to work allright. Unfortunately, I can't get Shortlinks to work on this server, when I click on a link like forums.html I get a 404 error.
I have thus been unable to test Shortlinks with PHP 5.3. Does anyone else have any experiences with PHP 5.3? |
| |
|
|
 |
Palbin
Newbie


Joined: Nov 26, 2007
Posts: 22
|
Posted:
Sun Feb 21, 2010 11:50 am |
|
Is your .htacess file set up properly? This does work in 5.3 so I think it is something with your local setup. |
| |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 127
|
Posted:
Sun Feb 21, 2010 1:27 pm |
|
Glad to hear that Shortlinks is PHP 5.3 compliant. My local Linux web server must be wrongly configured then. It is not .htaccess, because an .htaccess working locally in Windows Xampp did not work in Linux. The mod_rewrite module is active in Linux also. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Feb 21, 2010 11:37 pm |
|
I have it working just fine using XAMPP on linux, so not sure what is wrong??? In fact, with the straight XAMPP, I didn't have to change anything from the base install to get it to work. Have you set up NukeSentinel and the .htaccess admin.php protection? Does that work? Also, check your PHP as well as Apache logs to see if you can find any additional errors. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 127
|
Posted:
Tue Feb 23, 2010 2:54 am |
|
It seems that .htaccess is not recognized, so I must try to find out how I can enable it. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Tue Feb 23, 2010 7:47 am |
|
Take a look in your httpd.conf file and see if this section looks the same:
| Code: |
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride All
#XAMPP
#Order deny,allow
#Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/opt/lampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
#Options Indexes FollowSymLinks
# XAMPP
Options Indexes FollowSymLinks ExecCGI Includes
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
#AllowOverride None
# since XAMPP 1.4:
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
#DirectoryIndex index.html
# XAMPP
DirectoryIndex index.html index.html.var index.php index.php3 index.php4
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
|
|
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 127
|
Posted:
Tue Feb 23, 2010 11:38 am |
|
Many thanks!
I changed all instances of AllowOverride None to AllowOverride All in httpd.conf and now .htaccess and also Shortlinks is working. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Tue Feb 23, 2010 12:25 pm |
|
That is great news! Thanks for letting us know. Have fun.  |
| |
|
|
 |
|
|