Error 500 when accessing deployed Symfony2 project - php

I was developing Symfony2 website on my local machine and after i finished, i uploaded it to our company's remote test server via FTP.
When I try to access it by typing either:
www.project_name.company_website.cz/
www.project_name.company_website.cz/web/
www.project_name.company_website.cz/web/app.php
I get error 500.
This app runs well on my local machine but I don't know what is wrong on remote server. My thought is that there is no index file in project's root or .htaccess but I am new to web development so I don't have enough information about this.

Related

How do I remove error code 403 on locally made website running in linux xampp from windows wampp server?

I created a web-application running on Wampp server, transferred all the files to a linux machine running Xampp but after inserting the web-app files in the htdocs folder, and starting the server I ran the web-app and ran into an error 403
"Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster."
I tried connecting the machine to the internet because I had embedded bootstrap into my code.
I also imported the necessary database in phpmyadmin and this was successful but still I had no access to my web-app.

Working Laravel in CPanel but not in localhost without Artisan

I've installed in my remote server, via Softaculous, Laravel 8.
In order to access directly to the APP, just like when running php artisan serve in my local machine, in CPanel i defined the document root to the folder Laravel\public.
Everything works exactly as it should! I type the address (ex: myDomain.com) and the App runs perfectly...
However i don't want to being always typing php artisan serve while developing, so i tried to replicate the cpanel struture in my local machine.
To achive thar, i've created a virtualhost in XAMPP httpd-vhosts.conf pointing to the folder Laravel\public, and created the host file in windows system, like always.
When accessing the location in my local machine the first page renders perfectly, but as soon as i make a request for a new view, by example:
Route::get('/posts', function () {
return view('posts.index');
});
I get a "Not Found The requested URL was not found on this server" error! I'm sure is not a coding error because the same code runs flawlessly in remote server.
Which technique is used by cpanel to allow laravel to work directly from \public folder without necessity to initiate anything and how to replicate that in local development machine?
Well...
After much reading, backs and forwards, i believe this behavior depends on the way Apache its served by XAMPP.
So, the solution i adopted was change my local development tool to LARAGON.
Everything worked just fine with a lot of new features that donĀ“t exist in XAMPP.

Running Symfony 3.2 on the Server

I have Symfony 3.2 working dev application in my laptop, however, I needed to upload it on my server (cpanel).
The CPanel has PHP 5.5+ version running. I uses FTP to upload files from local computer to my server.
And when I try to access it in the browser www.domain.com, I only see the file directories, I mean, the page only shows the folders and files. But its not running the configuration, route, etc.
Any ideas? Please be inform that this is my first time to work in Symfony and upload it on the server.

yii2: How do I deploy my application to live server?

I just copied all my files which are working ok on localhost to my server here.
Here I receive a 403:
Forbidden - Access to this resource on the server is denied!
I believe this is due to the fact that I have deployed the application as local application. I cannot find information about changing main and main-local config files.
Both of these files are the same ones that come with the advanced application.
What is it I am doing wrong?

Flex to remote server

I am trying to get a Flex/PHP application set up and am having problems connecting to my server. The database/PHP isn't going to be hosted on a local server, it will be hosted on a remote server along side the PHP. When I am trying to set up the project, I am asked for the web root but when I put in the ftp or URL to the remote server it throws the "The web server document root is not a valid directory". All information I have found seem to be pointing to having a locally hosted version of the server, but that isn't possible. Is there any other way?

Categories