PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0
Showing posts with label shared-hosting. Show all posts
Showing posts with label shared-hosting. Show all posts

Sunday, November 13, 2022

[FIXED] How to install Django on shared hosting server with Plesk?

 November 13, 2022     django, plesk, python, shared-hosting     No comments   

Issue

My question is: how can I install DJANGO on a shared hosting account?

My hosting supports PYTHON 2.4. After copying the files to the ftp server, what is the next step? On Django site it says you need to to this:

tar xzvf Django-1.3.tar.gz
cd Django-1.3
sudo python setup.py install

But I dont see any command shell on my plesk account admin page. Now, there is an option on my hosting provider that gives what they call "SSH chrooted shell access with a limited command set" for €60 euros more.

Do I need to get that shell access upgrade for Django/PYTHON development?
Thanks very much!


Solution

You could use a "django ready" hoster (eg google apps)!

here's an collection of links https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts



Answered By - enthus1ast
Answer Checked By - Mary Flores (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Thursday, July 21, 2022

[FIXED] How can I use Prettify with Blogger/BlogSpot?

 July 21, 2022     blogger, javascript, prettify, shared-hosting     No comments   

Issue

I'm using blogger.com to host some texts on programming, and I'd like to use Prettify (same as Stack Overflow) to nicely colour the code samples.

How do I install the Prettify scripts into the blog domain? Would it be better (if indeed it's possible) to link to a shared copy somewhere? I have webspace on a different domain. Would that help?


Solution

When you make a new entry in Blogger, you get the option to use HTML in your entry and to edit your blog entries.

So type http://blogger.com, log in, and navigate to Posting → Edit Posts → Edit. In there put this at the top:

<script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
<script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/lang-css.min.js"></script>
<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(function() {
    prettyPrint();
});
</script>
<style type="text/css">
/* Pretty printing styles. Used with prettify.js. */

.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
.typ { color: #606; }
.lit { color: #066; }
.pun { color: #660; }
.pln { color: #000; }
.tag { color: #008; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
pre.prettyprint { padding: 2px; border: 1px solid #888; }

@media print {
  .str { color: #060; }
  .kwd { color: #006; font-weight: bold; }
  .com { color: #600; font-style: italic; }
  .typ { color: #404; font-weight: bold; }
  .lit { color: #044; }
  .pun { color: #440; }
  .pln { color: #000; }
  .tag { color: #006; font-weight: bold; }
  .atn { color: #404; }
  .atv { color: #060; }
}
</style>

Note that you shouldn't use prettyPrint directly as an event handler. It confuses it (see the readme for details). Which is why we're passing addLoadEvent a function that then turns around and calls prettyPrint.

In this case, because Blogger does not allow us to link to the stylesheet, we just embed the prettify.css contents.

Then add a <code></code> tag or a <pre></pre> tag with the class name of "prettyprint". You can even specify the language like "prettyprint lang-html".

So it can look like this:

<pre class="prettyprint lang-html">
<!-- your code here-->
</pre>

Or like this:

<code class="prettyprint lang-html">
<!-- your code here-->
</code>

The code that you put in needs to have its HTML cleaned from < and >. To do this, just paste your code in here: https://www.freeformatter.com/html-escape.html

You can put the top code in your HTML layout, so that it’s included for all pages by default if you like.

As of 2012, you can link CSS files in Blogger, so adding this to the <head> should be enough:

<link href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
<script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/lang-css.min.js"></script>
<script type="text/javascript">
    document.addEventListener('DOMContentLoaded',function() {
        prettyPrint();
    });
</script>

I chose not to replace the body onload event on purpose. Instead, I'm using the new DOMContentLoaded event that the old browsers don't support. If you need old browser support, you can use any other load event to initiate prettyPrint, for example jQuery:

jQuery(function($){
    prettyPrint();
});

Or the supposedly smallest domready ever

And you're done :)

As Lim H pointed out in the comments, in case where you use the Blogger dynamic views (Ajax templates) then you need to use the method described here to bind custom JavaScript code: prettyPrint() doesn't get called on page load

Use the guide at GitHub: https://github.com/google/code-prettify

Basically just use this :)

<script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/run_prettify.min.js"></script>
<pre class="prettyprint"><code class="language-css">...</code></pre>


Answered By - Timo Huovinen
Answer Checked By - Robin (PHPFixing Admin)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to point bookstack (Laravel) application's public folder on a mydomain.com/bookstack

 July 21, 2022     .htaccess, laravel, shared-hosting     No comments   

Issue

Hi I am trying to host bookstack application which is basically a larvel application on a shared hosting, After uploading database dump from local and uploading all the files to public_html/bookstack folder.

Now I am able to visit the webapp at https://example.com/bookstack/public , but I want to host the site at example.com/bookstack only and don't want the "public" in url.

I have two questions,

1) How to achieve it using .htaccess file?

2) Inside the .env file there is an option

# Application URL
# Remove the hash below and set a URL if using BookStack behind
# a proxy, if using a third-party authentication option.
# This must be the root URL that you want to host BookStack on.
# All URL's in BookStack will be generated using this value.

#APP_URL=https://example.com

So if here I put APP_URL as https://example.com/bookstack , and remove the comment, its first giving "403 Forbidden - You don't have permission to access this resource." error and if I visit to https://example.com/bookstack/public it works fine.

Update : So I found this subdirectory setup page in bookstack documentation but it only describe how to setup if I have access of apache, which is not possible in case of shared hosting


Solution

  1. Move the .htaccess file in /public to root.
  2. Rename server.php file in root to index.php.


Answered By - user379888
Answer Checked By - Clifford M. (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to store images on shared hosting provider with node api

 July 21, 2022     api, hosting, image, node.js, shared-hosting     No comments   

Issue

I have a Node JS API currently hosted on Heroku free tier and I am using Postgres Database and used Heroku's free Dyno. I recently added multer to store images but I guess Heroku doesn't allow that in its free tier, so I am hoping is there any way I can store the images on shared hosting? I have like 20GB of SSD space there. Can I route my images and store the path of the images on my database? I tried to search a lot on the internet but couldn't find anything about it.


Solution

First of all great question.

You're correct Heroku's free tier doesn't save local files, because apps hosted on free tier sleep, that means that the server stops running after inactivity, after that happens the next time the app is visited it restarts the server from scratch, it refers to the latest git commit or version which doesn't include the images.

Anyways you're gonna need a storage service for your files or images. I would recommend using cloudinary https://cloudinary.com/ Cloudinary offers you a free tier, no credit card needed and 25gb of storage for files. You can check out the docs there for uploading and managing your files or you could research tutorials. You could also use the package multer-storage-cloudinary to make it a bit easier to upload files but you could always use the original approach seen on the docs.

I would suggest checking out AWS s3(simple storage service) as well https://aws.amazon.com/s3/ However, this will require your credit card info to signup there is a free tier which lasts for a year I think.

I hope this helped, have a good day!



Answered By - Florian Saqipi
Answer Checked By - Willingham (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] What is causing to have the "load spike" issue on my server?

 July 21, 2022     shared-hosting     No comments   

Issue

I have list of websites (around 50 +) on my nearer hosting provider hosting package. recently many of the sites being said the below "note that your account has been suspended due to higher resource usage which causes load spikes in the server and lets the other sites gets down"

All these sites build with Joomla and regular PHP coding. Not sure What I have to do as per the hosting side? any thoughts.,


Solution

I think you should change your hosting provider, consult the problems with your current provider, or, if you have a lot of traffic comming to your site, change to better hosting solution



Answered By - genesis
Answer Checked By - Willingham (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to Connect mongodb to cpanel shared server

 July 21, 2022     cpanel, database, mongodb, shared-hosting     No comments   

Issue

Dears, I recently got my hands on a shared server ran by cpanel, and I want to host a mern stack app on it, is it possible to configure mongodb using it?


Solution

 Currently cPanel does not support mongodb so you should read this thread.

In order to deploy an application with these characteristics it is recommended to use Node.js since it has the necessary compatibility (mongodb driver).

Read this article (optional): How to Configure and Deploy CloudLinux’s Node.js.



Answered By - ellhe-blaster
Answer Checked By - Willingham (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How can I get my Hostinger shared hosting server to execute .htaccess file in hidden /.well-known folder?

 July 21, 2022     .htaccess, apache, server, shared-hosting     No comments   

Issue

I am on a Hostinger shared plan, trying to set a CORS header on a single TOML file that MUST reside in the public_html/.well-known folder. I have an .htaccess file in the ".well-known" folder but the Apache server will not process it.

However, if I rename the ".well-known" folder to "well-known" (just removing the period), the .htaccess file works and I can set whatever headers I want for files in that folder.

At this point I have deleted my entire site and replaced it with an extremely simple one in order to try and make this work.

The current file structure is as follows:

public_html
  /.well-known
    .htaccess
    test.toml
  /well-known
    .htaccess
    test.toml
  index.html

index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Apache Header Test</title>
  </head>
  <body>
    Apache Header Test
  </body>
</html>

.htaccess (identical in the ".well-known" and "well-known" folders)

<IfModule mod_headers.c>
  Header set Access-Control-Allow-Origin "*"
</IfModule>

test.toml (identical in the ".well-known" and "well-known" folders)

Apache Header Test

When I navigate to /well-known/test.toml, the response is served with the CORS header set and a content-type of "text-plain", and the toml file contents show as plain text in Chrome, which is the desired and expected behavior for both folders.

However when I navigate to /.well-known/test.toml (with the period), there is no CORS header, it shows a content-type of "application/octet-stream", and the toml file downloads instead of showing in the browser.

What exactly is happening here and how can I fix it? Thank you!


Solution

After finally asking the right question to Hostinger (thank you MrWhite!), they confirmed that making changes to the /.well-known folder is not possible on a shared hosting plan. Here is the official response I received:

The .well-known directory is server-default, so that is why overriding and making changes to it is not possible on a shared hosting plan, as important data/information is stored there. To make meaningful changes in this directory, you would need root access, which is only available on our VPS plans.



Answered By - kipadip0001
Answer Checked By - Katrina (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Thursday, February 17, 2022

[FIXED] Displaying laravel stored images on shared hosting

 February 17, 2022     blade, laravel, laravel-5, laravel-blade, shared-hosting     No comments   

Issue

I have successfully deployed my first laravel application on a live server. Everything looks great except the fact that I am unable to display the images that are being uploaded to the /myproject_src/storage/app/public/myfolder1 folder.

Here is my folder hierarchy on HostGator:

/myproject_src/

Here are all the laravel source files (except the public folder)

/public_html/mydomain.com/

Here goes all my contents of the public directory

I am storing the file path into the database in the following manner:

public/myfolder1/FxEj1V1neYrc7CVUYjlcYZCUf4YnC84Z3cwaMjVX.png

This path is associated with the image that has been uploaded to storage/app/public/myfolder1/ this folder and is generated from store('public/myfolder1'); method of laravel.

What should I do in order to display the images properly in a img tag:

<img src="{{ how to point to the uploaded image here }}">

Solution

Well, you can create symbolic link using

php artisan storage:link

and access files using

<img src="{{ asset('public/myfolder1/image.jpg') }}" />

But sometime you can't create symbolic link if you're on shared hosting. You want to protect some files behind some access control logic, there is the alternative of having a special route that reads and serves the image. For example.

Route::get('storage/{filename}', function ($filename)
{
    $path = storage_path($filename);

    if (!File::exists($path)) {
        abort(404);
    }

    $file = File::get($path);
    $type = File::mimeType($path);

    $response = Response::make($file, 200);
    $response->header("Content-Type", $type);

    return $response;
});

Now you can access your files like this.

http://example.com/storage/public/myfolder1/image.jpg
<img src="{{ asset('storage/public/myfolder1/image.jpg') }} />

Note: I'd suggest to not store paths in the db for flexibility. Please just store file name and do the following thing in the code.

Route::get('storage/{filename}', function ($filename)
{
    // Add folder path here instead of storing in the database.
    $path = storage_path('public/myfolder1' . $filename);

    if (!File::exists($path)) {
        abort(404);
    }

    $file = File::get($path);
    $type = File::mimeType($path);

    $response = Response::make($file, 200);
    $response->header("Content-Type", $type);

    return $response;
});

and access it using

http://example.com/storage/image.jpg

Hope that helps :)



Answered By - imrealashu
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Monday, February 14, 2022

[FIXED] Laravel smlink not found

 February 14, 2022     composer-php, laravel, php, shared-hosting     No comments   

Issue

I upload my laravel website to shared hosting ". Every things work except i am not able to retrieve images stored in the storage/public folder. I ran

 "php artisan storage:link" 

but it says not found. I also tried

rm storage

but the getthe message rm: cannot remove. Is directory php artisan storage:link output from ssh command


Solution

Note, I'm not addressing the original answer because it doesn't sound like it can be done. This is an alternate solution.

Solution

In your config/filesystems.php file, you'll see the following code (or something similar).

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'endpoint' => env('AWS_ENDPOINT'),
        ],

    ],

To link your public disk to a public directory without using OS symlinks, change the disks['public']['path'] to the public path of your choosing. For example,

    'disks' => [
        /** -- skipped code **/
        'public' => [
            'driver' => 'local',
            'root' => __DIR__ . '../public/images/`,
            'url' => env('APP_URL').'/images',
            'visibility' => 'public',
        ],
        /** -- skipped code **/
    ],

Another Solution

You can totally use the S3 storage as well. That will connect you with an AWS bucket that you can use.

Personal Anecdote

Shared hosting can be tricky with Laravel. I would transition away as soon as I could. I use Laravel Forge to deploy servers and Digital Ocean or AWS for hosting.



Answered By - Jacob
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Thursday, January 20, 2022

[FIXED] setting up server on bluehost for laravel application and having issue with php -v

 January 20, 2022     composer-php, laravel, php, server, shared-hosting     No comments   

Issue

I am setting up a fresh server for laravel application. I have installed composer and chosen php5.6.15 from my cpanel. But when I run php -v command in terminal it shows my current version as php5.2.19.

Here is my php.ini file on my server it show 5.6 version

enter image description here

I have uploaded my code to server using git. When I run command composer install it gives me this error.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement.
    - laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement.
    - Installation request for laravel/framework v5.1.28 -> satisfiable by laravel/framework[v5.1.28].

I am using laravel 5.1. If I downgrade it to 5.0 it gives dependency errors with other packages. Here is my composer.json file.

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.4.43",
        "laravel/framework": "5.1.*",
        "bestmomo/scafold": "dev-master",
        "illuminate/html": "5.*",
        "barryvdh/laravel-debugbar": "^2.0",
        "intervention/image": "^2.3",
        "doctrine/dbal": "^2.5",
        "davejamesmiller/laravel-breadcrumbs": "^3.0",
        "yajra/laravel-datatables-oracle": "^5.11",
        "zizaco/entrust": "dev-laravel-5"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist",
    }
}

I have php56 available under /usr/php/php56 and I can run it by making alias to it or just typing complete path. I also made an alias to it and after that php -v shows me 5.6.15 but when I run composer install it still gives the same above output.

I may be unable to set default version of php cli to 5.6 or it is something with laravel framework support on bluehost servers. I think bluehost support is less concerned because I have composer which can do rest piece of work. Your help to sort out this issue is very much appreciated.


Solution

You should execute it like the following:

/usr/php/php56 composer.phar

I have to do something similar at HostGator for composer to work.

To grab composer.phar just run php -r "readfile('https://getcomposer.org/installer');" | php.



Answered By - user2094178
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Tuesday, January 18, 2022

[FIXED] installation of composer on shared hosting

 January 18, 2022     composer-php, laravel-5.2, shared-hosting     No comments   

Issue

I have installed composer on shared hosting. It's successfully installed on my shared hosting. I have followed this tutorial for installation.

Link :- https://www.globo.tech/learning-center/laravel-under-cpanel/

Screenshot after installation.

enter image description here

I have used below command and it's working fine for me.

php composer.phar

But when I tried to install laravel in my public_html directory using below command,

composer create-project --prefer-dist laravel/laravel borrowpet "5.2.*"

It's not working. It shows composer command not please find below screenshot for error.

enter image description here

Please let me know what I'm missing while installing composer.


Solution

Use the command php composer.phar create-project --prefer-dist laravel/laravel borrowpet "5.2.*" and make sure you execute the command from the directory where compser.phar exists.



Answered By - Shakti Phartiyal
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Tuesday, January 11, 2022

[FIXED] Run Symfony app on shared hosting not working

 January 11, 2022     cpanel, php, shared-hosting, symfony     No comments   

Issue

I want to run my Symfony5 app on shared hosting (cpanel). On the shared hosting I have the following folder structure:

/
/public_html
/symfony

When I put the whole project in the public_html folder, it works from https://domain.abc/public but that is not the way it should work as the the other symfony folder shouldn't be visible.

I've put the file from symfony/public folder to the public_html folder The index.php (with 755 rights) in the /public_html folder is like this:

<?php

use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

require dirname(__DIR__).'/../symfony/vendor/autoload.php';

(new Dotenv())->bootEnv(dirname(__DIR__).'/../symfony/.env');

if ($_SERVER['APP_DEBUG']) {
    umask(0000);

    Debug::enable();
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

But i get a blank screen when going to https://domain.abc

Any ideas what i'm doing wrong?


Solution

In this situation it is best to have /public_html be a symlink pointing to /symfony/public.

Alternatively, if your hosting provider allows it, you may be able to re-configure the root directory for your domain to be /symfony/public.

In either case, start by removing /public_html and undo any changes made in /symfony/public/index.php.
If you have made no changes within /symfony/*, then you only need to run the commands below to create a symlink:

rm -r -f /public_html/
ln -s /symfony/public /public_html


Answered By - Arleigh Hix
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Sunday, January 9, 2022

[FIXED] CakePHP 3 on Bluehost Console Commands Do Not Function

 January 09, 2022     bluehost, cakephp, cakephp-3.0, shared-hosting     No comments   

Issue

I'm attempting to get a CakePHP 3 app setup on a shared hosting solution provided by Bluehost. When I attempt to bin/cake bake from a console (or any cake commands, really) I get the following output:

    ################################################################################
#
# Bake is a shell script for running CakePHP bake script
#
# CakePHP(tm) :  Rapid Development Framework (http://cakephp.org)
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
#
# Licensed under The MIT License
# For full copyright and license information, please see the LICENSE.txt
# Redistributions of files must retain the above copyright notice.
#
# @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
# @link          http://cakephp.org CakePHP(tm) Project
# @since         1.2.0
# @license       http://www.opensource.org/licenses/mit-license.php MIT License
#
################################################################################

# Canonicalize by following every symlink of the given name recursively
canonicalize() {
        NAME="$1"
        if [ -f "$NAME" ]
        then
                DIR=$(dirname -- "$NAME")
                NAME=$(cd -P "$DIR" > /dev/null && pwd -P)/$(basename -- "$NAME")
        fi
        while [ -h "$NAME" ]; do
                DIR=$(dirname -- "$NAME")
                SYM=$(readlink "$NAME")
                NAME=$(cd "$DIR" > /dev/null && cd $(dirname -- "$SYM") > /dev/null && pwd)/$(basename -- "$SYM")
        done
        echo "$NAME"
}

CONSOLE=$(dirname -- "$(canonicalize "$0")")
APP=$(dirname "$CONSOLE")

exec php "$CONSOLE"/cake.php "$@"
exit

My folder structure is currently set as :

/public_html
    /app
        /cakestuff

Generated with the code:

php composer.phar create-project --prefer-dist cakephp/app app

I've also attempted to set up the app outside of public_html, but I have no idea where to look for other potential issues.

It looks like my cake commands aren't actually being run.


Solution

I had same problem on Hostmonster server, which is same or similar to Bluehost. The following appears to work:

php-cli bin/cake.php bake

This is same as suggestion from Arak Tai'Roth above, but with "php-cli".



Answered By - weehawker
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Older Posts Home

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Copyright © PHPFixing