Unable to Configure Laravel Project on the Live Apache Server. Here is the version of Apache Server on shared hosting:
Server:Apache/2.4.18
You can view more details by visiting:
www.pawras.com
Go to the inspect element, and then in the network tab. There you can get detailed information.
Project is successfully running on the Local Server having Apache Version:
Server:Apache/2.4.17
And I am not sure how to configure the .env when uploading the project on the live server. Or whether to edit the .htaccess file. Lots of confusion and I have already tried various solutions, but got no success.
Someone told me to ask my Hosting Service Provider to update the Apache Server. But I don't know what to do. Whether to ask for the Apache Server Update or to configure multiple file according to the live server.
I suggest you first of all check whether the path to public folder is readable by others.
Secondly I suggest checking out this page as it covers everything you need to set up Apache.
Without seeing your folder setup properly, I'm guessing its because you are on a shared host.
Did you restructure the laravel folder? If so have you updated your paths.php.
See the solution in this thread.
http://laravel.io/forum/03-06-2015-how-to-setup-laravel-5-in-shared-hosting
make sure you gave the sufficient permission to public, storage and bootstrap folder .
Related
I am setting up an IIS server in readiness to host multiple PHP web apps. These will be used within our local network so no need internet access. I have read a lot of stuff on how to go about it but am getting lost even more. someone please help.
You can refer to this document for detailed steps about deploy php application on IIS.
Here are some main important points:
Install IIS in control pannel(windows) or server manager(windows server).
Configure php. Youcan download it from php official website or Web PI(more recommand). The version over php8 may not work on IIS.
Make the physical path of site points to root folder of application. It will auto generate web.config. Set the permission of root folder to avoid 500 error.
If you have multiples version of php, you can isntall php manager to configure them.
I have installed Wampserwer on my computer, and I have access to files on hosting via WinSCP.
Website is running on CakePHP
Can anyone, please, explain what steps do I need to do, to make a copy of my website on localhost. I cant find any usefull instructions
Thanks!
localhost is working
access via winscp to files
Copy the files to your computer
If your site uses a database, you have import that one, too + create a user/password
You have to configure your webserver for Cake. Find instructions here: http://book.cakephp.org/3.0/en/installation.html#installing-cakephp (in your case, search for Apache)
I have a LAMP application that works. I can deploy this in 15 minutes on a Linux server. I was handed a VPS to deploy it. All I get is WHM. I created an account and that got me a login to cPanel and to the box. cPanel ran some wizard that told me to put my "web source files" in /public_html There is an /cgi-bin inside of that. I cannot get any web assets to be visible from any of those folders. All I get is 404 not found. chmod 777. 404 not found.
My simple question is this: how could I get a simple hello world PHP script to run on a cPanel server? I've been building web pages since before we called them web pages. I do not need to know anything about PHP itself I want to know how to get the cPanel managed server to run PHP scripts. All the documentation I can find on cPanel assumes you've been using it forever. I just need some basic information. Where do I put my PHP code ?????
This is the way cPanel works. If you host your website on shared IP address (main IP address of your server), you cannot access your website using IP address directly. You will always redirect to "http://IP/cgi-sys/defaultwebpage.cgi URL.
To access your website without pointing our domain to your server, you can use temporary URL. By default, it is enabled on the cPanel server. You can access the temporary URL using the following URL:
http://IP/~cpanel_user
Please note that the temporary URL does not work under the following configuration:
If you have enabled mod_userdir tweak and didn't exclude default host
If your server is configured to use mod_ruid2
Hope this information will help you with future use.
Good day!
I've searched for many sites on how I could deploy my PHP projet in the internet but I don't know how to do it because I am confused with some of the technical terms.
You see, I am using xampp for my local web server. Now I want to put it in the internet. I found some free web hosting sites so i've decided to upload all my htdocs files inside it.. But how can I put the xampp (apache server) and my mysql database on it? I'm confused. Please help. A step-by-step procedure of what should i do could be really helpful. Thank you in advance.
Get a hosting account (try www.bluehost.com for instance).They will set you up with a Linux server and MySQL. You don't have to install Apache or MySQL, you will use whatever they've got. All you need to do is upload your PHP files to the right folder, setup your database on their server and you should be good to go.
If you buy a domain-name and space, connect them using the NS settings
If you are using a free, then the settings are already okay.
Export the database from your XAMP.
Login to the remote server. There you'll find PHPMyAdmin. Import the database.
Upload the file.
Make sure file listing is off. That is if a user goes to any directory he can not see the file list!
Done :)
Simplifying a bit, there are two ways you can get your site online.
First, you could purchase or rent a server that is yours and yours alone. This is commonly called "dedicated hosting" and costs somewhere around $100 / month. If you choose this option, you have your own server housed in a datacenter somewhere, and you must install Apache, MySQL, and any other server software you care to use.
I doubt, given what you've described, you have chosen this option.
Second, you could rent "shared hosting" from any one of the dozens of hosting providers out there. If you do this, with a typical cost of $2 to $10 per month, the hosting provider is administering the server. You have no direct access at all. Your only access is through the tools they provide.
Given that, how specifically you can upload files is up to them (is it FTP? SSH? a horrifying web-based upload tool of some kind?) Similarly, how you access your MySQL databases (assuming they offer MySQL databases) is entirely up to them as well.
Many providers now use a tool called cPanel for this administration, so you may try browsing to www.example.com/cPanel (using your domain) on the off chance that works. If not, though, follow the instructions your host provides. Only they can correctly describe how their setup works.
The hosting will be already having apache and mysql installed you only have to put your files thats it
I suggest you contact your webhosting site. The web hosting needs to host php, and mysql. Then you can upload your files to their web server, and copy your mysql database to their mysql server.
You do not need to transfer xampp to your host: apache and mysql are running on nearly every server
Upload all your files in your htdocs directory via ftp to your server
To transfer your database, use phpMyAdmin. It is installed with xampp and alos installed on nearly every server. In phpMyAdmin, use the export/import functionality
In your php file where you connect to the db change the login settings to the settings the hoster gave you
That should work...
Hosting Company already have setup for apache,php, mysql. All you need to uploads all your
files from xampp htdocs to a right folder like public_html using a ftp software like
filezilla. They also provide a control panel like using which you can manage your mysql
database and all others settings like directory permission.
so I've been using Zend framework to develop the site locally and everything works just fine....but then after I upload everything into a remote server, zend framework did not work even though I changed none of the source code.....
so here's what I know...
the remote server supports PHP, MySQL, etc just fine and they are of the latest versions
remote server supports .htaccess and mod rewrite just fine and they are enabled and I've tested them
I did not change any of the source code and the source code works perfectly on the local server...
Zend Framework is not boostrapping properly...whenever I go to a controller page such as http://mysite.com/controller/action <---not a real url, it would instead display a 404 error....so I know that it's not being redirected to index.php as it should....
any idea on what could possibly be wrong and on how and where I should start to tackle solving this problem?
thanks in advance
Is the server you're connecting to a shared hosting account? If so, that ended up being an issue for me. If you don't have access to your hosting root (godaddy or like hosting), you may need to just restructure your directory layout to work completely within the public_html. Not quite as secure unless you do some extra work here an there, but the 404 error reminded me of why I dropped hosting for my own actual server.
You could tell us the error but... here are some issues that can make it not to work:
mod_rewrite is off
.htaccess file still points you to localhost (or wherever you hosted it first)
incorrect configuration for php.ini file (if you have a static include you should change it so it sends to the correct include folder)
directory/file rights
If you send the error maybe we can help you more
I'd start by checking the error logs. If its a Linux server you'd be checking somewhere in /var/log, probably even /var/log/apache2/.
Check the access and the error logs.
Possible causes
Directory/file read/write rights.
PHP version difference
User (apache? the user running the script) rights.
Path troubles -> different path, maybe using some absolute paths still?