How can I install php5-fpm and apache and configure the apache vhost?

Multi tool use
I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName webpage.com
ServerAlias www.webpage.com
DocumentRoot /home/userdir/webpage.com
Alias /php5-fcgi /usr/lib/cgi-bin
#Alias /php-fpm /home/userdir/webpage.com/php-fpm
FastCgiExternalServer /home/userdir/webpage.com/php5-fcgi -flush -pass-header HTTP_AUTHORIZATION -host 127.0.0.1:11000
#AddType application/x-httpd-fastphp5 .php
#Action appication/x-httpd-fastphp5 /php-fpm
Action php5-fcgi /php5-fcgi
AddHandler php5-fcgi .php
ScriptAlias php5-fcgi /home/userdir/webpage.com/
#DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks +ExecCGI +SymLinksIfOwnerMatch
#DirectoryIndex index.php
AllowOverride None
</Directory>
<Directory /home/userdir/webpage.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
#DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
And the output in the browser:
Not Found
The requested URL /php5-fcgi/index.php was not found on this server.
And the apache error log:
File does not exist: /usr/lib/cgi-bin/index.php
apache2 php cgi
add a comment |
I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName webpage.com
ServerAlias www.webpage.com
DocumentRoot /home/userdir/webpage.com
Alias /php5-fcgi /usr/lib/cgi-bin
#Alias /php-fpm /home/userdir/webpage.com/php-fpm
FastCgiExternalServer /home/userdir/webpage.com/php5-fcgi -flush -pass-header HTTP_AUTHORIZATION -host 127.0.0.1:11000
#AddType application/x-httpd-fastphp5 .php
#Action appication/x-httpd-fastphp5 /php-fpm
Action php5-fcgi /php5-fcgi
AddHandler php5-fcgi .php
ScriptAlias php5-fcgi /home/userdir/webpage.com/
#DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks +ExecCGI +SymLinksIfOwnerMatch
#DirectoryIndex index.php
AllowOverride None
</Directory>
<Directory /home/userdir/webpage.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
#DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
And the output in the browser:
Not Found
The requested URL /php5-fcgi/index.php was not found on this server.
And the apache error log:
File does not exist: /usr/lib/cgi-bin/index.php
apache2 php cgi
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49
add a comment |
I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName webpage.com
ServerAlias www.webpage.com
DocumentRoot /home/userdir/webpage.com
Alias /php5-fcgi /usr/lib/cgi-bin
#Alias /php-fpm /home/userdir/webpage.com/php-fpm
FastCgiExternalServer /home/userdir/webpage.com/php5-fcgi -flush -pass-header HTTP_AUTHORIZATION -host 127.0.0.1:11000
#AddType application/x-httpd-fastphp5 .php
#Action appication/x-httpd-fastphp5 /php-fpm
Action php5-fcgi /php5-fcgi
AddHandler php5-fcgi .php
ScriptAlias php5-fcgi /home/userdir/webpage.com/
#DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks +ExecCGI +SymLinksIfOwnerMatch
#DirectoryIndex index.php
AllowOverride None
</Directory>
<Directory /home/userdir/webpage.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
#DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
And the output in the browser:
Not Found
The requested URL /php5-fcgi/index.php was not found on this server.
And the apache error log:
File does not exist: /usr/lib/cgi-bin/index.php
apache2 php cgi
I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName webpage.com
ServerAlias www.webpage.com
DocumentRoot /home/userdir/webpage.com
Alias /php5-fcgi /usr/lib/cgi-bin
#Alias /php-fpm /home/userdir/webpage.com/php-fpm
FastCgiExternalServer /home/userdir/webpage.com/php5-fcgi -flush -pass-header HTTP_AUTHORIZATION -host 127.0.0.1:11000
#AddType application/x-httpd-fastphp5 .php
#Action appication/x-httpd-fastphp5 /php-fpm
Action php5-fcgi /php5-fcgi
AddHandler php5-fcgi .php
ScriptAlias php5-fcgi /home/userdir/webpage.com/
#DirectoryIndex index.php index.html
<Directory />
Options FollowSymLinks +ExecCGI +SymLinksIfOwnerMatch
#DirectoryIndex index.php
AllowOverride None
</Directory>
<Directory /home/userdir/webpage.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
#DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
And the output in the browser:
Not Found
The requested URL /php5-fcgi/index.php was not found on this server.
And the apache error log:
File does not exist: /usr/lib/cgi-bin/index.php
apache2 php cgi
apache2 php cgi
edited Jun 26 '13 at 8:20
turbod
asked Jun 26 '13 at 8:07
turbodturbod
11827
11827
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49
add a comment |
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49
add a comment |
1 Answer
1
active
oldest
votes
Create the file /usr/lib/cgi-bin/index.php
and put some text in it like "test", then save it. Try again. Furthermore I don't think that you should use a url path like /php5-fcgi. Just http://localhost/index.php
(or .html) should do.
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f312837%2fhow-can-i-install-php5-fpm-and-apache-and-configure-the-apache-vhost%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Create the file /usr/lib/cgi-bin/index.php
and put some text in it like "test", then save it. Try again. Furthermore I don't think that you should use a url path like /php5-fcgi. Just http://localhost/index.php
(or .html) should do.
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
add a comment |
Create the file /usr/lib/cgi-bin/index.php
and put some text in it like "test", then save it. Try again. Furthermore I don't think that you should use a url path like /php5-fcgi. Just http://localhost/index.php
(or .html) should do.
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
add a comment |
Create the file /usr/lib/cgi-bin/index.php
and put some text in it like "test", then save it. Try again. Furthermore I don't think that you should use a url path like /php5-fcgi. Just http://localhost/index.php
(or .html) should do.
Create the file /usr/lib/cgi-bin/index.php
and put some text in it like "test", then save it. Try again. Furthermore I don't think that you should use a url path like /php5-fcgi. Just http://localhost/index.php
(or .html) should do.
answered Jun 26 '13 at 8:46
SPRBRNSPRBRN
1,58711930
1,58711930
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
add a comment |
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I use the webpage.com
– turbod
Jun 26 '13 at 9:10
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
I don't understand what you mean.
– SPRBRN
Jun 26 '13 at 9:15
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
In don't use the /php5-fcgi in the url.
– turbod
Jun 26 '13 at 9:23
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f312837%2fhow-can-i-install-php5-fpm-and-apache-and-configure-the-apache-vhost%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
snjlqZAzu57 rpDEqDSy5TTlBaC uelnuKLd8,g4jZP0 Dz
First make clear what you have tried. Then explain what the problem is - installing php5-fpm and apache, or configuring the vhost.
– SPRBRN
Jun 26 '13 at 8:14
The problem I can't configure properly the vhost.
– turbod
Jun 26 '13 at 8:18
This is a lot better! If you start out like this, it saves us from trying to explain stuff that you already have working. That's a waste of our/my time, and for me a reason not to put more effort in it.
– SPRBRN
Jun 26 '13 at 8:49