I need some tech help. I'm a total noob with the linux/aws environment. I'm trying to install the LAMP stack on and Ubuntu 14.04 aws image and when I try and access phpMyAdmin via the public IP it times out.
I added phpMyAdmin to the /usr/share/ folder and added and alias pointing to the phpadmin file in the share folder to the 000-default.conf file in the apache2 folder.
I haven't been able to find any answers online so I'm turning to you all. I'm using phpMyAdmin 4.6/php 7.0/mysql 5.7.8/Apache 2.4.7. port 80 is open and subnets have been added and mapped.
Any suggestions. Thanks
Related
I have thoroughly checked for an answer to this question but it seems like not one off the countless answers has helped me.
I would appreciate some guidance.
I have a website that I am accessing remotely via the clients public IP address. I have installed and configured WAMP Server with Apache 2.4.27. The machine is also running PHP 5.6.31.
What I am trying to do is allow a tax payer to upload supporting documentation to a folder using a script that I wrote called upload.php. I have tested the program on my local environment and it works. I should add that the bulk of the code for the website is written in a compiled dBASE executable that resides in the cgi-bin.
I am able to navigate to the page in which I allow the user to select a file and upload it, but when I click the upload button, I get an error message that states.
You don't have permission to access /upload.php on this server.
Apache/2.4.27 (Win64) PHP/5.6.31 Server at 24.148.115.174 Port 8000
I have configured my virtual host to allow access to the Wamp64/www directory.
I have no idea why this is not working. If you need to see the httpd.conf file, let me know. Thank you in advance.
try use: chmod 777 upload.php maybe your apache user don't have permission to access upload.php.
I feel foolish. My vhost.conf file was still set to
VirtualHost *:80.
I changed it to
VirtualHost *:8000
and that fixed the problem. Thank you to everyone for their advice.
I have developed a MVC project with Laravel 5.4. Whenever I want to develop it on localhost, I use php artisan serve command to access it via localhost:8000 on browser. Now I have uploaded the project on a linux server with centos 6 and I run php artisan serve --host 0.0.0.0 --port 8080 to access it via x.x.x.x:8080 on browser but it is a temporary way to access project from browser. What is the permanent way to access a laravel project by clients via public IP?
I have apache,php and ... separately installed on my server. I can not see x.x.x.x/projectname/public or x.x.x.x/projectname. The project is in /var/www/html directory.
You can access the laravel project with yoursite.com/projectname/public if you upload your project on web root.
If you want to access it directly with yoursite.com you need to map the public folder in your virtual host configuration.
# The location of our projects public directory.
DocumentRoot /path/to/your/public
On your linux server install the LAMP or XAMP that include the apache server and Mysql and some other related tools into it. Upload the code on web root. Now try to access it with the IP or the domain name like:
XXX.XXX.XXX.XXX/projectname/public
or
or domain/projectname/public
Note: You can remove that public by making a symlink to the public directory or by making a virtual host entry.
Here are the steps you need to do [assuming you are using apache, but its not very different for nginx]:
install PHP, MySQL and apache in your server
place your project in /var/www/ folder
give permission to storage folder of your project chmod -R 777 your/project/storage
edit /etc/apache2/sites-available/000-default.conf file e.g. DocumentRoot /path/to/your/public
restart apache
Please check other answers. They are very good and give you a clear starting point. Just do little research and you will get it.
I am using Wamp64 with text.php file in android_connect within www in wamp64 folder on a Windows 7 system (64-bit). However, on typing localhost/android_connect/text.php in both Chrome and Internet Explorer, it states that localhost refused to connect. Have tried 127.0.0.1 as well and existing alternatives as mentioned in WAMP: Cannot Connect To Localhost, and changing port 80 to 8080 with no avail. Please help.
Take a look at the error.log and access.log files;
Also, open the console, run the command:
netstat -nao
And check that port 80 is being used by another application.
I recently ran into the same issue in WAMP64 3.1.9 - my site's directory name inside of the www folder included an underscore as yours does. Renaming the site directory and removing the underscore did the trick for me.
Try using the specific Ip address of your device.
I've installed EasyPHP and Virtual Host Manager - got it up and running, created a virtual host, pointed it to the directory to where i have my website stored. It's on the D Drive however when i click on the virtual host that i've created it points to a directory inside where the installation took place for EasyPHP as shown below;
Browsing the localhost development URL shows this;
So the only way i got it working was to dump the site folder inside the projects folder and it worked. Strange. Anyone know how i can get it to load from the virtual host URL and directory?
I have a vagrant box setup running my dev code which is a nginx/php setup.
(Quick info on vagrant - its a virtualbox wrapper: http://www.vagrantup.com/).
In the vagrant/virtualbox setup, it is using linux guest additions to mount a shared folder on my host computer (MAC OSX).
linux guest path: /var/www/local
OSX host path: ~/src/
On multiple occasions, I find that php can't seem to write anything through any command (file_put_contents, fwrite.. etc) to any path location on the mounted shared folder, However it is able to write outside of the /var/www/local (for example /var/www/not-mounted/..).
I find this very difficult to work with, as I am using a cache system and it keeps failing to write any of the cache javascript/css files to (/var/www/local/public/root/cache/) which I need to be in the root folder of my website which is (/var/www/local/public/root/index.php).
I have done a lot of research on this topic:
it seems, the folder mount has the right permissions:
When I type mount command in the linux guest, I get this:
/var/www/local on /var/www/local/ type vboxsf (uid=1000,gid=1000,rw)
Clarify:
This happens all the time, it is a known problem I encounter which I try to workaround.
From cat /etc/passwd:
vagrant:x:1000:1000:vagrant,,,:/home/vagrant:/bin/bash
Can anyone help me on this?
I have figured out the problem.
I have forgot to give PHP the correct user-privileges and permissions to write to the folder. Basically, my PHP user/user-group was www-data/www-data however, vagrant has its own user/group (vagrant/vagrant) which mounts the folder /local/.
Since I did not want to mess with my vagrant mounting behaviour, I just simply changed my php config to start PHP with the user/group - vagrant/vagrant.
This fixed the issue for me.
Thanks for the help!