New answers tagged

0

I believe the main point you're missing is: scripts (php or any other) do NOT connect to db liek to text files, they connect to db engine which is listening either on a tcp port (3306 for MySQL by default) or listening a socket. It means, it doesn't matter where your and db files are. Some hints: I believe /etc/mysql is a place for mysql config files ...


1

Configure your apache to run cgi scripts. You can use any executable file as cgi (C, Perl, shell - whatsoever). Make sure you add proper 'execute' permissions so apache can run the file, then include on your page something like <img src="/cgi-bin/myfile.sh"> and you're done! If you do not have access to apache configuration: <?php .... system(...


0

PHP is trying to use different socket then the one on which MySQL is listening. To see on which socket is MySQL listening, run: mysqld --verbose --help|grep ^socket socket /var/run/mysqld/mysqld.sock To see what socket PHP tries to use, you can check output of script <?php phpinfo(); ?>, it is variable mysqli.default_socket. You can ...


0

combining the answer for tail: tail -f file | sed 's/\\n/\n/g' with the -l option in multitail: multitail -l "tail -f file | sed 's/\\\n/\\n/g'" note: the additional escape on the \n extra hint: (will color all files and merge them into one multitail window): multitail -C fileUNfiltered -L "tail -f file | sed 's/\\\n/\\n/g'"


1

This is normal if you see it. Since it is the first virtual host entry it will show local host. but still you can set that up in httpd.conf, <VirtualHost localhost:80> ServerAdmin localhost DocumentRoot /path/to/htdocs/ ServerName localhost </VirtualHost> To run projects like http://yourwebsite.com locally <VirtualHost ...


1

I believe the default DocumentRoot for apache is /var/www/html, so try moving your php file there by doing: sudo mv /var/www/info.php /var/www/html/ If apache then complains that it cannot read the file, try sudo chmod a+r /var/www/html/info.php.


0

Before you begin your compilation you should need additional header files and libraries required, please use the following code to install pre-requisities, don’t delete them as you would definitely need them when you upgrade to new releases also : yum install make gcc automake zlib-devel bison cmake libtool wget gcc-c++ unzip ncurses-devel openssl-devel ...


1

I suddenly started getting this same error a few days ago on a Wordpress 4 site running on PHP 5.3.3 that's been hosted at Rackspace on a virtual server for a couple of years. It's now running CentOS 6.8 and has survived many OS and Wordpress updates -- I think we started on CentOS 5.x! Anyway I tried upgrading PHP first (which is held by CentOS 6.x at 5....


0

php7 is not available in the repositories for Debian Jessie. This could be because php7 is not yet considered stable. You would need to have Debian Sid (unstable) to install php7 from the repositories. If you still want php for Debian Jessie, you can install php5 with apt-get install php5 If you have Debian Sid, you can install php7 with apt-get install ...


1

tigerlite's PPA includes an updated dpkg (presumably for valid reasons), but it doesn't include updates to other packages which that updated dpkg breaks. These broken packages include libapache2-mod-php5... So ideally you should ask tigerlite to add the relevant, updated packages to his PPA. Alternatively, if you're feeling adventurous you could try ...


0

Some things you could try: 1) check out the output from testparm on the linux machine. 2) run copy sometextfile.txt //192.168.1.9/epsonlx in cmd on windows 3) adding guest ok = yes and/or force user = guest to smb.conf 4) Do 1) and 2) again If that does not show you your error, post the output of the above, and I'll refine this answer



Top 50 recent answers are included