Dear sir,
After installing the apache server I need to install the php server also. i downloaded the php server version : php-7.0.8-nts-Win32-VC14-x64 for my pc. How can I make it workable with the apache. while I command as localhost the codes are showing (<?php $var='hello world!'; echo $var; ?>) instead of result (hello world!)!
I already added the command in apache/conf/httpd as follows:
Dear sir,
I modified the instruction as you stated. still now I am facing trouble.
I tried to restart the httpd manually(httpd -k restart in cmd) , the command prompt states the message as below:
httpd: Syntax error on liine 520 of c:/apache24/conf/httpd.conf: canât locate API module structure âphp7 moduleâ in file c:/PHP/php7: no error
how can I solve this problem?
If your installation is in C:/PHP/, then youâll have to use C:/PHP/ as the destination folder, it canât just be C:/PHP/php7/ where the destination folder doesnât exist. You have to point to where your php.ini files are like what @Mittineague said.
I tried to restart the httpd manually(httpd -k restart in cmd) , the command prompt states one new message as below:
AH00558: httpd: could not reliably determine the servers fully qualified domain name , using fe80::a92a:8482:7a625d9e. set the âServernameâ directive globally to suppress this message
Go to the httpd.conf file and look for the following line.
# ServerName gives the name and port that the server uses to identify itself.
A few lines after that, it should say something like
ServerName {www.example.com}:80
Where {www.example.com} is your respective domain name. You can use localhost if you want or any domain that you want, but youâll also have to change the hosts file in C:/Windows/System32/drivers/etc/hosts if you want to use something other then localhost. If you havenât changed the domain name in the httpd.conf file yet, you will have to do so. If that line has a # meaning it has been commented out, you will have to remove that # to uncomment it.
Ah, I missed that as being a possible problem because mine is commented out.
Looking again more carefully, I must be in the "often"s
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
Dear Oddz,
Actually, I want to have a deep knowledge about server. that is why I am working from the basic. The matter of sorrw is that, still now I could not fix it.
I can suggest you to install Wamp server package instead of trying to install and configure Apache,PHP and MySQL yourself. It can be hard if youâre novice.