Thank you to anyone that can provide real assistance to my problem with Craft and installing it on a local server. Your help and assistance are truly appreciated!! :-)
I need 100% confirmation that Craft can be installed on a server that is NOT a hosted server!! Everything I read for assistance with my problem all talk about their instance of Craft that is on a hosted server....not a single person (so far) has installed and configured Craft on their local server, only on a hosted server.
SO.....does Craft need be installed on a hosted server or can it actually be installed on a local server inside my network? If Craft can be installed locally, someone who has installed Craft on a local server, please tell me why I get the following when trying to access 192.168.10.101/admin (example IP address, though here locally I am using my IP address before making the DNS change over to point to my domain):
Not Found
The requested URL /admin was not found on this server. Apache/2.4.18 (Ubuntu) Server at 192.168.10.11 Port 80
Yes, I have updated the virtual host within the sites-available folder in apache, error still the same. Now before anyone says anything about if I have done the following, Yes, I have, error is still present:
Did you rename htaccess to .htaccess? <-- Yes
----------------------------------------------
http://192.168.10.11/index.php?p=admin <--Nothing happens;same error
http://192.168.10.11/index.php/admin <--Nothing happens;same error
----------------------------------------------
'craft' folder is sitting in at 'var/www' and index.php at /var/www/html
Question: Do I need to create new folder(s) called 'public_html'?
If so, only under /html?
OR does /var/www/html/AllCraftPublicFilesLivesUnderHTML work for apache?
-----------------------------------------------
$craftPath = './craft'; AS WELL AS $craftPath = '../craft'; <-- No Change
This is now my third build for this program and I am getting sick of hearing "It should just work" as it clearly does not 'just work'. I am more than happy to show you anything you may want to view, though this is my thrid build, so I might not have it right away, but will!
Updated 03/02/2017:
Followed the answer suggested below and started completely fresh. This time I decided to follow the suggestion of Craft, and went with a LEMP configuration -- see below for all environment details, everything should be included for your review, so a smarter Admin should be able to see what I am doing wrong or forgot; let me know if I did miss something and I will get it up here. This is a brand new VM and only myself has access to this VM...never been introduced to my network yet.
OracleBox Virtualization software
Ubuntu 16.10 server iso
'PlymouthWeb' is the name of the VM
Standard install
openssh server installed
manage package selection
ssh root login enabled
Ran apt-get update
Ran apt-get upgrade - 16.10 ‘yakkety’
Ran apt-get dist-upgrade
Ran apt-get auto remove
Nginx install (mediatemple.net/community/products/developer/204405534/install-nginx-on-ubuntu; tecmint.com/install-nginx-mysql-php-lemp-in-ubuntu-16-10-ubuntu-16-04/)
MariaDB install (websiteforstudents.com/students-tutorial-install-mariadb-ubuntu-16-10/; tecmint.com/install-nginx-mysql-php-lemp-in-ubuntu-16-10-ubuntu-16-04/)
PHP (tecmint.com/install-nginx-mysql-php-lemp-in-ubuntu-16-10-ubuntu-16-04/)
db.php
return array(
' => array(
'server' => 'localhost',
'user' => 'root',
'password' => 'plymouth1',
'database' => 'plymouth',
'tablePrefix' => 'craft',
),
'192.168.10.19' => array(
'server' => 'localhost',
'user' => 'root',
'password' => 'root',
'database' => 'plymouth',
),
);
general.php
<?php
return array(
' => array(
'omitScriptNameInUrls' => true,
'generateTransformsBeforePageLoad' => true,
'environmentVariables' => array(
'basePath' => '/var/www/www.plymouthinc.com/public',
'baseUrl' => 'http://plymouthinc.com/',
)
),
'.local' => array(
'devMode' => 'true',
'generateTransformsBeforePageLoad' => true,
'environmentVariables' => array(
'basePath' => '/var/www/www.plymouthinc.com/public',
'baseUrl' => 'http://plymouth.local/',
)
),
);
Virtual Host - /etc/nginx/sites-available/www.plymouthinc.com
server {
listen 80;
server_name www.plymouthinc.com;
rewrite ^/(. http://plymouthinc.com/$1 permanent;
}
server {
listen 80;
server_name www.plymouthinc.com;
access_log /var/www/www.plymouthinc.com/logs/access.log;
error_log /var/www/www.plymouthinc.com/logs/error.log;
location / {
root /var/www/www.plymouthinc.com/public/;
index index.html;
}
}
index.php - /var/www/www.plymouthinc.com/public
// Path to your craft/ folder
$craftPath = '../craft';
// Do not edit below this line
$path = rtrim($craftPath, '/').'/app/index.php';
if (!is_file($path))
{
if (function_exists('http_response_code'))
{
http_response_code(503);
}
exit('Could not find your craft/ folder. Please ensure that <strong><code>$craftPath</code></strong> is set correctly in '.__FILE__);
}
require_once $path;
Now when I go to 192.168.10.19/admin, I get a 404 Not Found; please review my notes here and let me know what I missed to get this to work for me locally. At this point in time, I need very specific examples in any answers provided please (like the answer below, he provided excellent details in his reply). I ask for specifics as all documentation I have read in the wilds of the internet, everyone provides
Yes, I am using the VM's ip address on my mac when attempting to access my Craft site in a browser; all the server name locations where the IP address (nothing worked), changed to the soon to be domain name, and still nothing works.
I have been working on this project for three weeks and have been stuck trying to get the Craft Installer to run so I can finish building this website.
If you truly have been successful in the past with Craft, please help me out..to include sending emails/screenshots back and forth, to possibly even jump on a screen share if you can confirm you have been successful with installing and configuring craft...I really don't need another person to respond with "It should just work, especially if you follow the install guide".
Thank you,
Frustrated System Administrator