Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 126

PostPosted: Sun Feb 21, 2010 11:04 am Reply with quote

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?
 
View user's profile Send private message
Palbin
Newbie
Newbie



Joined: Nov 26, 2007
Posts: 25

PostPosted: Sun Feb 21, 2010 11:50 am Reply with quote

Is your .htacess file set up properly? This does work in 5.3 so I think it is something with your local setup.
 
View user's profile Send private message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 126

PostPosted: Sun Feb 21, 2010 1:27 pm Reply with quote

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.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Feb 21, 2010 11:37 pm Reply with quote

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 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 126

PostPosted: Tue Feb 23, 2010 2:54 am Reply with quote

It seems that .htaccess is not recognized, so I must try to find out how I can enable it.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Feb 23, 2010 7:47 am Reply with quote

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 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 126

PostPosted: Tue Feb 23, 2010 11:38 am Reply with quote

Many thanks!

I changed all instances of AllowOverride None to AllowOverride All in httpd.conf and now .htaccess and also Shortlinks is working.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Feb 23, 2010 12:25 pm Reply with quote

That is great news! Thanks for letting us know. Have fun. Smile
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch