既存のWindows10ベースで動いているシステムに作成したWebサービスを乗せようと思っています。
新規に作成したサービスはPHPでCodeigniterを使っています。
Windows10にはすでにApache(ver2.2)とPHP(ver5.2)がインストールされており、それを使って新サービスを動かそうとしたところページ遷移で遷移先がNot Foundになってしまいます。
同様にZend Frameworkで作ったシステムを載せて試してみましたが、同じようにページ遷移ができません。
なので、既存のApacheを無効にし、Windows10上にxampp(Apache(ver2.4)とPHP(ver7.1))を配置してそこへ設置するときちんと動きました。
ところが、今度は既存のシステムが動かなくなってしまいました。
見てみると、旧ApacheにPerlなどの設定が加えられていました。
その設定を抜き出してxamppのapacheへ移植してやったのですが、Apacheが立ち上がりません。
また、旧Apacheの参照しているディレクトリへxamppのPHPを置いてみたのですが、Apache用のdllがver2.4用のphp7apache2_4.dllなのでやはり立ち上がりません。
xamppのApacheへ移植するのがベストと思いますが、どこが問題なのでしょうか?
移植した部分のソースを以下へ記載します。
よろしくお願いします。
LoadFile "C:/Perl/bin/perl526.dll"
LoadModule perl_module modules/mod_perl.so
Alias /webconfig "C:/ABCFiles/httpd/htdocs/webconfig/" Alias /PrinterConfigurationPage "C:/ABCFiles/httpd/htdocs/webconfig/" <Directory "C:/ABCFiles/httpd/htdocs/webconfig/"> AllowOverride All DirectoryIndex index.cgi AddHandler image/gif .gif Options +ExecCGI Satisfy Any Order allow,deny Allow from all </Directory> Alias /licenses "C:/ABCFiles/httpd/htdocs/licenses/" <Directory "C:/ABCFiles/httpd/htdocs/licenses/"> DirectoryIndex index.html Allow from all </Directory> Alias /ABC_eposdevice "C:/ABCFiles/httpd/htdocs/ABC_eposdevice/" <Directory "C:/ABCFiles/httpd/htdocs/ABC_eposdevice/"> AllowOverride All Options +ExecCGI Satisfy Any Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "C:/ABCFiles/httpd/cgi-bin/"
Alias /cgi-bin "C:/ABCFiles/httpd/cgi-bin"
<Directory "C:/ABCFiles/httpd/cgi-bin">
Header append Access-Control-Allow-Origin: *
Header append Access-Control-Allow-Methods: POST,GET,OPTIONS,HEADER
Header append Access-Control-Allow-Headers: Content-Type,Content-Length,If-Modified-Since,SOAPAction
<Limit GET POST OPTIONS HEADER>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS HEADER>
Order deny,allow
Deny from all
</LimitExcept>
AllowOverride None
Options +ExecCGI +FollowSymLinks
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
PerlInterpMax 20
<FilesMatch ".cgi$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
</FilesMatch>
<FilesMatch ".(pl)|(pm)|(ini)$">
Order deny,allow
Deny from all
</FilesMatch>
</IfModule>
PerlPostConfigRequire "C:/ABCFiles/httpd/startup.pl"
あなたの回答
tips
プレビュー