Alias, alias, who the F##k is alias

Wow …setting up this cms has been a long tough road for me. …


I have gone through the entire installation (abeilt a few atempts) and i have found my self stumped with the alias code.



I can access my directories when viewing http://localhos. But when i throw in the alias code…for me it is…



Alias “/__data” “C:/web/mysource_matrix_3-4-4/data/public”

Alias “/__lib” “C:/web/mysource_matrix_3-4-4/core/lib”

Alias “/__fudge” “C:/web/mysource_matrix_3-4-4/fudge”

Alias “/” “C:/web/mysource_matrix_3-4-4/core/web/index.php/”





…i receive the good ol page can not be displayed. HTTP 500 - Internal server error . I checked my apache error log and receive this:



[Wed Jan 04 16:19:22 2006] [error] [client 127.0.0.1] Request exceeded the limit of 20 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.





Iam not an expert on server actitvity. Would really appreciate some help on this.

Could it be my apache settings or my httpd settings?



thanks in advance

Try pulling the trailing / out of the final line in your Alias definitions - thus:


Alias "/" "C:/web/mysource_matrix_3-4-4/core/web/index.php"



And see if that makes a difference.

[quote]Try pulling the trailing / out of the final line in your Alias definitions - thus:


Alias “/”              “C:/web/mysource_matrix_3-4-4/core/web/index.php”



And see if that makes a difference.

[right][post=“8182”]<{POST_SNAPBACK}>[/post][/right][/quote]





Thanks Edward.



I gave this a go but still no success. When ever i insert the alias code into the httpd file, i cant view any pages. With out the alias code, i can dial up http://localhos and i can view the index directory.



the error log might have a few hints here…



[Wed Jan 11 16:15:27 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.php_admin



[Wed Jan 11 16:15:37 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.phpphp/php.exe/



Really appreciate your help!

How are you trying to access your system?


Should be something like



http://localhost/_admin

[quote]How are you trying to access your system?


Should be something like



http://localhost/_admin

[right][post=“8184”]<{POST_SNAPBACK}>[/post][/right][/quote]





Thats the one! this is the error log from http://localhost/_admin



[Wed Jan 11 16:43:13 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.php_admin

[quote]Thats the one! this is the error log from http://localhost/_admin


[Wed Jan 11 16:43:13 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.php_admin

[right][post=“8185”]<{POST_SNAPBACK}>[/post][/right][/quote]



To add further.



the error log from accessing http://localhost/_admin once threw this error



[Wed Jan 11 16:52:07 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.phpphp/php.exe/

[Wed Jan 11 16:52:37 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.phpphp/php.exe/

[Wed Jan 11 16:52:45 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.php_admin

[Wed Jan 11 16:53:07 2006] [error] [client 127.0.0.1] File does not exist: c:/web/mysource_matrix_3-4-4/core/web/index.phpphp/php.exe/



this looks a bit odd - index.phpphp/php.exe/



Is that correct?

[quote]this looks a bit odd - index.phpphp/php.exe/


Is that correct?

[right][post=“8186”]<{POST_SNAPBACK}>[/post][/right][/quote]



Are you sure PHP is actually running?



Looks like Apache doesn’t know what to do with a PHP file.



Create a file test.php with the contents being:

    <?php phpinfo(); ?>


Remove your apache alias definitions again and put this in your web root.

Try accessing it from a browser... you should get back your PHP info.

[quote]Are you sure PHP is actually running?


Looks like Apache doesn't know what to do with a PHP file.



Create a file test.php with the contents being:

    <?php phpinfo(); ?>


Remove your apache alias definitions again and put this in your web root.

Try accessing it from a browser... you should get back your PHP info.
[right][post="8195"]<{POST_SNAPBACK}>[/post][/right][/quote]


Yes PHP is responding.
I might be barking up the wrong tree, but i did notice when viewing this page that within the enironment table, the variable 'path' is set to:

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Adobe\AGL

Similarly within the PHP variable table

the variable '_SERVER["PATH"]' is also set to

C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\Microsoft SQL Server\\80\\Tools\\BINN;C:\\Program Files\\Common Files\\Adobe\\AGL


I do have sql server on the machine but it is turned off

Actually, you do need the trailing slash on the Alias path, because otherwise it won't put it in itself when it translates the path, giving you the problems you were getting earlier in the thread. If there's a trailing slash on the local path, there should be one on the alias, and vice versa.


I see that you have PHP running as a CGI module. I should ask at this point, have you considered using PHP as an Apache module instead? (I know that you might have your reasons not to, but just in case you haven't looked into it yet. :slight_smile: )



Failing that, I wonder whether the CGI installation is set up correctly - or whether the Alias settings of Matrix are having trouble living together with the ScriptAlias settings of PHP. Could you PM me the section of your httpd.conf that configures PHP if possible (look for a line similar to "AddType application/x-httpd-php .php" and there should be a block of PHP-related settings around it)? I'm not an expert with PHP-as-a-CGI, but I might be able to figure out what's going on.

[quote]Actually, you do need the trailing slash on the Alias path, because otherwise it won’t put it in itself when it translates the path, giving you the problems you were getting earlier in the thread. If there’s a trailing slash on the local path, there should be one on the alias, and vice versa.


I see that you have PHP running as a CGI module. I should ask at this point, have you considered using PHP as an Apache module instead? (I know that you might have your reasons not to, but just in case you haven’t looked into it yet. :slight_smile: )



Failing that, I wonder whether the CGI installation is set up correctly - or whether the Alias settings of Matrix are having trouble living together with the ScriptAlias settings of PHP. Could you PM me the section of your httpd.conf that configures PHP if possible (look for a line similar to “AddType application/x-httpd-php .php” and there should be a block of PHP-related settings around it)? I’m not an expert with PHP-as-a-CGI, but I might be able to figure out what’s going on.

[right][post=“8198”]<{POST_SNAPBACK}>[/post][/right][/quote]





Luke you are a champion!



I reconfigured php as an apache module and iam now in the admin page



Thanks a mighty heap!



A grown man wont go to bed crying tonight :smiley: